Opened on Sep 16, 2014 at 7:52:07 PM
Closed on Jul 14, 2015 at 12:04:46 PM
Last modified on Dec 7, 2022 at 8:34:54 AM
#2892 closed Bug (Fixed)
GUICtrlSetData on dummy control - AutoIt bug or Document Incorrect?
| Reported by: | anonymous | Owned by: | Jon |
|---|---|---|---|
| Milestone: | 3.3.15.0 | Component: | AutoIt |
| Version: | 3.3.12.0 | Severity: | None |
| Keywords: | Cc: |
Description
In GUICtrlSetData:
It says that the function can set data for a dummy control.
In GUICtrlRead:
It says that you can read the data stored in a dummy control, which is set either by GUICtrlSetData or GUICtrlSendToDummy.
A quick test point out that GUICtrlRead can only read data which is set by GUICtrlSendToDummy.
GUICreate(@AutoItVersion) GUICtrlCreateDummy() GUICtrlSetData(-1, 100, 101) ConsoleWrite(@CRLF & GUICtrlRead(-1)) GUICtrlSendToDummy(-1, "Wow! It can store a string") ConsoleWrite(@CRLF & GUICtrlRead(-1))
I don't know it is autoit bug or documentation bug, but this is absolutely a bug. But I think it may be easy to fix. Hope it's fixed ASAP.
Attachments (0)
Change History (3)
comment:1 by , on Sep 17, 2014 at 7:59:50 PM
| Owner: | set to |
|---|---|
| Status: | new → assigned |
comment:2 by , on Oct 14, 2014 at 2:35:30 PM
In fact it is an AutoIt bug , I send a fix for integration to Jon
comment:3 by , on Jul 14, 2015 at 12:04:46 PM
| Milestone: | → 3.3.15.0 |
|---|---|
| Resolution: | → Fixed |
| Status: | assigned → closed |
Fixed by revision [11411] in version: 3.3.15.0

You are correct. I feel the response will be to alter the documentation - but I will leave that to the Devs to decide.
M23