Jump to content

DateTimePicker limit time comboBox


lema

Recommended Posts

Hello,
Is there any way to limit the showing items in time portion of the uniDateTimePicker (eg. 09:00' - 15:00')?
Also, can we change the step ? (eg. 30 min instead of 15 min) ?

UniGUI v.1.90.0.1537 (Delphi 10.2)

TIA,
Lefteris

 

image.png.c1b9b043bb5f04179e40e288de6e2130.png

Link to comment
Share on other sites

3 hours ago, lema said:

Is there any way to limit the showing items in time portion of the uniDateTimePicker (eg. 09:00' - 15:00')?
Also, can we change the step ? (eg. 30 min instead of 15 min) ?

Hello,

This post may help you:

 

  • Like 2
Link to comment
Share on other sites

  • 7 months later...

 

Hello, I have a strange behavior with the UniDateTimePicker.

If you add the following code on uEdits of MegaDemo and play around for a while,

the error "The time in this field must equal to or after 09:00:00" will popup !

Delphi 10.2

uniGUI 1.90.0.1549

 

procedure TuEditsFrame.UniFrameCreate(Sender: TObject);
begin
  UniDateTimePicker2.ClientEvents.UniEvents.Values['beforeInit'] :=
    'function beforeInit(sender, config)' +
    '{' +
    '  config.minValue  = ''09:00''; ' +
    '  config.maxValue  = ''15:00''; ' +
    '}';
end;

 

UniDateTimePicker.jpg.9fa4977fd288f42e809f43463cce19e1.jpg

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...