Page 1 of 1

enable and disable a button with image

PostPosted: Fri May 25, 2018 5:47 pm
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  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()

 

Re: enable and disable a button with image

PostPosted: Tue May 29, 2018 7:04 pm
by mastintin
Ok. I implement enable() and disable methods in btnbmp .
:D
Saludos.

Re: enable and disable a button with image

PostPosted: Tue May 29, 2018 9:05 pm
by plantenkennis
OK< thank you, Looking forward to it