I'm trying to change the caption on a TbtnBmp, but so far -no luck.
- Code: Select all Expand view
LOCAL oBtn
LOCAL oSelf := SELF
...
::cText := "Some Initial Text"
REDEFINE BUTTONBMP ::oBtm /*BITMAP "dotgreen"*/ ID 501 OF ::oDlg TEXTLEFT PROMPT ::cText UPDATE
ACTIVATE DIALOG ::oDlg ON INIT oSelf:oBtn:Disable()
...
::cText := "Some Other Text"
oBtn:cCaption := ::cText
oBtn:Refresh()
I must add that the TbtnBmp object is disabled, still I wish to change the caption at some point. I even tried oBtn:Paint(), but nothing happens.
Can someone help?
Reinaldo.