TTIME CONTROL

TTIME CONTROL

Postby Silvio.Falconi » Wed Oct 25, 2017 3:11 pm

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
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7076
Joined: Thu Oct 18, 2012 7:17 pm

Re: TTIME CONTROL

Postby sreerajklm » Thu Oct 26, 2017 4:28 am

Try This

Image

Code: Select all  Expand view  RUN

#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.
sreerajklm
 
Posts: 6
Joined: Tue Sep 23, 2014 5:22 am
Location: Kochi, India

Re: TTIME CONTROL

Postby Silvio.Falconi » Thu Oct 26, 2017 9:03 am

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.
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7076
Joined: Thu Oct 18, 2012 7:17 pm

Re: TTIME CONTROL

Postby betoncu » Fri Oct 27, 2017 8:05 am

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
User avatar
betoncu
 
Posts: 126
Joined: Sat Oct 08, 2005 9:38 pm
Location: Cyprus (North)


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Surasak and 31 guests