TTIME CONTROL

Post Reply
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

TTIME CONTROL

Post 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
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
sreerajklm
Posts: 5
Joined: Tue Sep 23, 2014 5:22 am
Location: Kochi, India

Re: TTIME CONTROL

Post 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
Last edited by sreerajklm on Tue Oct 31, 2017 3:47 am, edited 1 time in total.
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Re: TTIME CONTROL

Post by Silvio.Falconi »

thanks

but I must set

set date italian
Last edited by Silvio.Falconi on Sun Oct 29, 2017 2:24 pm, edited 1 time in total.
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
User avatar
betoncu
Posts: 120
Joined: Sat Oct 08, 2005 9:38 pm
Location: Cyprus (North)

Re: TTIME CONTROL

Post by betoncu »

Is it possible to remove the seconds and show only the hour and minutes?
Birol Betoncu
birol.betoncu@gmail.com
Using Harbour, FWH 19.05, BCC7
Post Reply