enable and disable a button with image

Post Reply
User avatar
plantenkennis
Posts: 151
Joined: Wed Nov 25, 2015 7:13 pm
Location: the Netherlands
Contact:

enable and disable a button with image

Post by plantenkennis »

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

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

 


This gives an error

Code: Select all

        @ 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
mastintin
Posts: 1502
Joined: Thu May 27, 2010 2:06 pm

Re: enable and disable a button with image

Post by mastintin »

Ok. I implement enable() and disable methods in btnbmp .
:D
Saludos.
User avatar
plantenkennis
Posts: 151
Joined: Wed Nov 25, 2015 7:13 pm
Location: the Netherlands
Contact:

Re: enable and disable a button with image

Post by plantenkennis »

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

René Koot
Post Reply