Antonio and friends,
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?
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?
FUNCTION setCaption( oObject, cCaption )
DEFAULT cCaption := ""
IF valType( oObject ) == "O"
setWindowText( oObject:hWnd, cCaption )
oObject:refresh()
ENDIF
RETURN( NIL )Peace and lighting!
Júlio César M. Ferreira
FWH 8.10 / xHB 1.1.0 / xDevStudio 0.72 / Pelles C 5.0.1 / SQLLIB 1.9
Júlio César M. Ferreira
FWH 8.10 / xHB 1.1.0 / xDevStudio 0.72 / Pelles C 5.0.1 / SQLLIB 1.9