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()