tTimePick

Post Reply
Franklin Demont
Posts: 166
Joined: Wed Aug 29, 2012 8:25 am

tTimePick

Post by Franklin Demont »

Hello ,

Trying to use tTimePick with oTime:nStyle := NOR( oTime:nStyle, DTS_SHOWNONE )

Code: Select all

tTime := nil
@ 30 , 50 TMPicker oTime VAR tTime OF oDlg PIXEL SIZE 60,12;
          VALID (MsgInfo(tTime) , .T.)
oTime:nStyle := NOR( oTime:nStyle, DTS_TIMEFORMAT)
oTime:nStyle := NOR( oTime:nStyle, DTS_SHOWNONE )
 
Starting with tTime nil , the control is disabled as expected , the checkbox must be checked . Msginfo shows current time

Disabling the checkbox : tTime has value 00:00:53

ALso oTime:Varget() shows this value when the dialog is closed.

How can we know that the time is checked or not ? 00:00:53 can be a real time !!!

Frank
test
Post Reply