![]() | ![]() Products ![]() ![]() ![]() ![]() |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 1 to 5 of 5 total |
![]() |
Wed, Aug 31 2016 10:56 AM | Permanent Link |
Matthew Jones | Small issue with the TDateEditComboBox. My code is in this form:
szOption := GetValue(); if szOption <> '' then begin dateTo.SelectedDate := xml_X2DateTime(szOption); end else begin dateTo.SelectedDate := Date; end; Now, this is not working, because if I have a value, it shows the appropriate date in the display. If I default to the Date, the text that is set in the IDE is shown instead. This is because the default for the SelectedDate is Date, and the SetSelectedDate routine doesn't bother doing anything if it is not changing. I can't quite work out how the text of the TDateEditComboBox text display is updated, but it would be nice for either the default to be picked up on display, or it to not default to today. -- Matthew Jones |
Wed, Aug 31 2016 11:14 AM | Permanent Link |
Walter Matte Tactical Business Corporation | When you place the control on the form it puts todays date in the text value - you can just remove it.
Leave it blank. Walter "Matthew Jones" wrote: Small issue with the TDateEditComboBox. My code is in this form: szOption := GetValue(); if szOption <> '' then begin dateTo.SelectedDate := xml_X2DateTime(szOption); end else begin dateTo.SelectedDate := Date; end; Now, this is not working, because if I have a value, it shows the appropriate date in the display. If I default to the Date, the text that is set in the IDE is shown instead. This is because the default for the SelectedDate is Date, and the SetSelectedDate routine doesn't bother doing anything if it is not changing. I can't quite work out how the text of the TDateEditComboBox text display is updated, but it would be nice for either the default to be picked up on display, or it to not default to today. -- Matthew Jones |
Thu, Sep 1 2016 4:15 AM | Permanent Link |
Matthew Jones | Walter Matte wrote:
> When you place the control on the form it puts todays date in the > text value - you can just remove it. > > Leave it blank. Hmm, I guess I could do that. I'd rather it sorted itself properly though. I like to see something in the UI at design time so I know what it looks like. -- Matthew Jones |
Thu, Sep 1 2016 5:23 AM | Permanent Link |
Matthew Jones | Walter Matte wrote:
> Leave it blank. That doesn't fix it - it stays blank at runtime when I set the SelectedDate to Date. If I set the SelectedDate to Date - 10000 first, and then to Date, it shows properly. I will do that for now. -- Matthew Jones |
Tue, Sep 6 2016 8:07 AM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. ![]() | Matthew,
<< This is because the default for the SelectedDate is Date, and the SetSelectedDate routine doesn't bother doing anything if it is not changing. >> Noted. Tim Young Elevate Software www.elevatesoft.com |
This web page was last updated on Thursday, March 30, 2023 at 10:19 AM | Privacy Policy![]() © 2023 Elevate Software, Inc. All Rights Reserved Questions or comments ? ![]() |