From: Itamar M. L. J. L. <ita...@gm...> - 2015-07-10 02:09:30
|
Hi! How to working with states of ownerbutton ? //-------------->8------------ #include "hwgui.ch" Function main LOCAL oDlg,oBtn INIT DIALOG oDlg AT 100,100 SIZE 200,120 @ 10,10 OwnerButton oBtn TEXT "My State" of oDlg Size 130,30 on click {||ShowMe(oBtn)} oDlg:Activate(,,,.T.) Function ShowMe(oBtn) hwg_msginfo(str(oBtn:state)) //Return OBTN_NORMAL=1 should be OBTN_PRESSED=3 If !oBtn:lPress hwg_MsgInfo("oBtn, not lPress := .F.") //should be lPress := .T. EndIf If !oBtn:lCheck hwg_MsgInfo("oBtn, not lCheck := .F.") //should be lCheck := .T. EndIf //--------------8<------------ So when these flags(lPress and lCheck) are activated ? Best regards, Itamar M. Lins Jr. |