FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveMac / FivePhone (iPhone, iPad) enable and disable a button with image
Posts: 166
Joined: Wed Nov 25, 2015 07:13 PM
enable and disable a button with image
Posted: Fri May 25, 2018 05:47 PM
Hello,
If I have a button with only text I can Enable() or Disable(0 it. However, if i put an image on the button the enable/disable gives an error. How can i enable/disable a butoon with image?
This works:
Code (fw): Select all Collapse
    @ 10,  10 BUTTON oBtnAanteken PROMPT 'Aantekeningen' OF oDlg ACTION RK_RichNotes(cAanteken) SIZE 120, 30
        oBtnAanteken:Disable()


This gives an error
Code (fw): Select all Collapse
        @ 10,  10  BTNBMP oBtn2 OF oWndMain FILENAME 'New.png';
    ACTION MsgInfo('button click') SIZE 35, 35 STYLE 4 TOOLTIP 'Click me'
                oBtn2:Disable()
Kind regards,



René Koot
Posts: 1516
Joined: Thu May 27, 2010 02:06 PM
Re: enable and disable a button with image
Posted: Tue May 29, 2018 07:04 PM

Ok. I implement enable() and disable methods in btnbmp .

Saludos.

:D

Posts: 166
Joined: Wed Nov 25, 2015 07:13 PM
Re: enable and disable a button with image
Posted: Tue May 29, 2018 09:05 PM

OK< thank you, Looking forward to it

Kind regards,



René Koot

Continue the discussion