Porovnávané verzie
porovnané s
Kľúč
- Tento riadok sa pridal
- Riadok je odstránený.
- Formátovanie sa zmenilo.
%HI_SelectTimeDialog function
Function
The function %HI_SelectTimeDialog shows a dialog box for defining a time interval.
Declaration
Blok kódu | ||||
---|---|---|---|---|
| ||||
BOOL %HI_SelectTimeDialog( TIME in out StartTime, TIME in out EndTime := (invalid), BOOL in bStrongInequality := true, BOOL in bShowTimebShowHours := true, BOOL in bReadOnlyHours := false, INT in x := -1, INT in y := -1 ) |
Parameters
StartTime | Begin time of interval. |
EndTime | End time of interval. |
bStrongInequality | Possible values:
|
bShowHours | Allows to show time data (hours and minutes) in the dialog box:
|
bReadOnlyHours | Allows to change time data (to edit hours and minutes):
|
x, y | Position of the dialog box on monitor. |
Return value
TRUE - if user closed the dialog box by clicking the button OK.
FALSE - if user closed the dialog box by clicking the button Cancel.
FALSE - if user closed the dialog box by clicking the button Cancel.
Note
User selects e.g. the entire day of January 1st 2005:
- if bStrongInequality=TRUE, then StartTime=1.1.2005 00:00:00.000 and EndTime=1.1.2005 23:59:59.999
- if bStrongInequality=FALSE, then StartTime=1.1.2005 00:00:00.000 and EndTime=2.1.2005 00:00:00.000
Example
Image Added
Blok kódu | ||||
---|---|---|---|---|
| ||||
TIME _t1bt TIME _t2et BOOL _res INT _i _i := 1 _t1bt := _i\TIM _t2et := %AddTime(_t1bt, 3600*10) _res := %HI_SelectTimeDialog(_t1bt, _t2et, @FALSE, @TRUE, @FALSE) IF _res THEN _tmA := _t1bt _tmA2 := _t2et ENDIF |