#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 , 5 years ago
| Version: | 3.3.14.5 |
|---|
comment:2 by , 5 years ago
| 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 , 5 years ago
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.