It doesn't work for DateTime controls.GuiControlGet wrote:Note: To unconditionally retrieve any control's text/caption rather than its contents, specify the word Text for Param4.
GuiControlGet Param4 and DateTime
GuiControlGet Param4 and DateTime
Re: GuiControlGet Param4 and DateTime
I noticed this when I fixed it for the new API, but I wasn't inclined to touch the v1 Gui code.
It's one of several controls which ignore the "Text" flag, although I think all of the others don't have visible caption text. For MonthCal, UpDown, Slider, Progress, TreeView, ListView and ActiveX it's hidden, and can be retrieved/set with the Control commands. Hotkey too; even though it displays text, retrieving it seems to be impossible.
Did you know that GuiControl, Text sets the control's format, not its text? It doesn't seem to be possible to retrieve the custom format string afterward, nor to set an already-formatted time string. I suppose that format vs formatted text would be the lesser of several inconsistencies (like Text being a fourth parameter vs a sub-command).
It's one of several controls which ignore the "Text" flag, although I think all of the others don't have visible caption text. For MonthCal, UpDown, Slider, Progress, TreeView, ListView and ActiveX it's hidden, and can be retrieved/set with the Control commands. Hotkey too; even though it displays text, retrieving it seems to be impossible.
Did you know that GuiControl, Text sets the control's format, not its text? It doesn't seem to be possible to retrieve the custom format string afterward, nor to set an already-formatted time string. I suppose that format vs formatted text would be the lesser of several inconsistencies (like Text being a fourth parameter vs a sub-command).
Re: GuiControlGet Param4 and DateTime
Well, it's probably not important enough to be changed in v1.1. It might be sufficient to remove the quoted line from the docs. But I hope these 'inconsistencies' will be resolved in v2.
Re: GuiControlGet Param4 and DateTime
If the line was removed, there would be no explanation for what "Text" does for DropDownList and ComboBox. I will correct it.
Who is online
Users browsing this forum: No registered users and 82 guests