Page 1 of 1

TTIME CONTROL

Posted: Wed Oct 25, 2017 3:11 pm
by Silvio.Falconi
Can we create this control on dialog ?


Image

where I can found an sample ?

I tried with @ 40, 115 TMPICKER aGet[4] VAR cTimeStart OF oDlg SIZE 50,10 PIXEL
but not run ok I cannot see AM or PM only the hour

Re: TTIME CONTROL

Posted: Thu Oct 26, 2017 4:28 am
by sreerajklm
Try This

Image

Code: Select all

#include "FiveWin.ch"
#include "dtpicker.ch"

Function Main()

Local oDlg,oGet,oGet1,tTime:=Time()
Local tTimeTwo:="12:30:00"
   
DEFINE DIALOG oDlg FROM 2, 2 TO 10, 50

 @ 10, 65 TMPicker oGet VAR tTime OF oDlg PIXEL SIZE 50,10
 
 @ 25, 65 TMPicker oGet1 VAR tTimeTwo OF oDlg PIXEL SIZE 50,10
    

ACTIVATE DIALOG oDlg CENTERED
Return Nil
Regards
Sreeraj

Re: TTIME CONTROL

Posted: Thu Oct 26, 2017 9:03 am
by Silvio.Falconi
thanks

but I must set

set date italian

Re: TTIME CONTROL

Posted: Fri Oct 27, 2017 8:05 am
by betoncu
Is it possible to remove the seconds and show only the hour and minutes?