I created this function bellow to change the property "cCaption" of the buttons to reuse the same button to different tasks... I did not want to directly change the ownership cCaption, but this is the best solution even?
- Code: Select all Expand view
FUNCTION setCaption( oObject, cCaption )
DEFAULT cCaption := ""
IF valType( oObject ) == "O"
setWindowText( oObject:hWnd, cCaption )
oObject:refresh()
ENDIF
RETURN( NIL )