FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour TTIME CONTROL
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM

TTIME CONTROL

Posted: Wed Oct 25, 2017 03:11 PM
Can we create this control on dialog ?




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 March-April 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
Posts: 6
Joined: Tue Sep 23, 2014 05:22 AM

Re: TTIME CONTROL

Posted: Thu Oct 26, 2017 04:28 AM
Try This



Code (fw): Select all Collapse
#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
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM

Re: TTIME CONTROL

Posted: Thu Oct 26, 2017 09:03 AM
thanks

but I must set

set date italian
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 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
Posts: 130
Joined: Sat Oct 08, 2005 09:38 PM

Re: TTIME CONTROL

Posted: Fri Oct 27, 2017 08: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

Continue the discussion