Opened on Jul 7, 2021 at 12:50:50 PM
Closed on Jul 18, 2021 at 9:02:59 AM
Last modified on Dec 24, 2021 at 8:43:09 AM
#3839 closed Feature Request (Rejected)
User data in control
| Reported by: | anonymous | Owned by: | |
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | Severity: | None | |
| Keywords: | Cc: |
Description
I suggest adding functions to associate data (of any type) with the control. This will greatly simplify the development of scripts with a graphical interface that work with data.
GUISetParam($vData [, $hGui]) GUICtrlSetParam($idCtrl, $vData) TrayItemSetParam($idCtrl, $vData) GUIGetParam([$hGui]) GUICtrlSetParam($idCtrl) TrayItemSetParam($idCtrl)
Many UI frameworks for other programming languages provide this opportunity. For example the "Tag" field in C# WinForms, WPF, UWP...
WinAPI also has the ability to store a pointer to user data (!) and AutoIt uses this for its own purposes, but does not give users this opportunity.
Attachments (0)
Change History (3)
comment:1 by , on Jul 7, 2021 at 1:00:01 PM
| Version: | 3.3.14.5 |
|---|
comment:2 by , on Jul 18, 2021 at 9:02:59 AM
| Resolution: | → Rejected |
|---|---|
| Status: | new → closed |
As you mention AutoIt use it to its own handling so the sharing is complicated so we will not add them
Sorry
but thanks for trying to improve AutoIt
comment:3 by , on Jul 18, 2021 at 9:27:48 AM
It's a shame, I thought it was pretty easy to implement. Since AutoIt associates an element with some kind of its object (for example, to store a color?), Then adding a property there and giving it a getter/setter is quite simple :(

Automatic ticket cleanup.