enable and disable a button with image

enable and disable a button with image

Postby plantenkennis » Fri May 25, 2018 5: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: Select all  Expand view

    @ 10,  10 BUTTON oBtnAanteken PROMPT 'Aantekeningen' OF oDlg ACTION RK_RichNotes(cAanteken) SIZE 120, 30
        oBtnAanteken:Disable()

 


This gives an error
Code: Select all  Expand view

        @ 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
User avatar
plantenkennis
 
Posts: 166
Joined: Wed Nov 25, 2015 7:13 pm
Location: the Netherlands

Re: enable and disable a button with image

Postby mastintin » Tue May 29, 2018 7:04 pm

Ok. I implement enable() and disable methods in btnbmp .
:D
Saludos.
User avatar
mastintin
 
Posts: 1516
Joined: Thu May 27, 2010 2:06 pm

Re: enable and disable a button with image

Postby plantenkennis » Tue May 29, 2018 9:05 pm

OK< thank you, Looking forward to it
Kind regards,

René Koot
User avatar
plantenkennis
 
Posts: 166
Joined: Wed Nov 25, 2015 7:13 pm
Location: the Netherlands


Return to FiveMac / FivePhone (iPhone, iPad)

Who is online

Users browsing this forum: No registered users and 4 guests