Modify ↓
Opened 15 years ago
Closed 15 years ago
#1449 closed Bug (Fixed)
GUICtrlDelete(), GUICtrlCreateDummy()
Reported by: | anonymous | Owned by: | Jon |
---|---|---|---|
Milestone: | 3.3.5.3 | Component: | AutoIt |
Version: | 3.3.4.0 | Severity: | None |
Keywords: | GUICtrlDelete GUICtrlCreateDummy | Cc: |
Description
Not sure If GUICtrlDelete() should delete a GUICtrlCreateDummy() created control. If not, its at leased documented this way.
;; AutoIt(3.3.4.0)&(3.3.5.1). ;; Environment(Language:0409 Keyboard:00000409 OS:WIN_XP/Service Pack 3 CPU:X86 OS:X86) #cs - local output. GUICtrlCreateDummy = 3 GUICtrlDelete = 0 GUICtrlCreateDummy = 4 GUICtrlDelete = 0 #ce Global $iResult GUICreate('test') $iResult = GUICtrlCreateDummy() ConsoleWrite('GUICtrlCreateDummy = ' & $iResult & @CRLF) $iResult = GUICtrlDelete($iResult) ConsoleWrite('GUICtrlDelete = ' & $iResult & @CRLF) $iResult = GUICtrlCreateDummy() ConsoleWrite('GUICtrlCreateDummy = ' & $iResult & @CRLF) $iResult = GUICtrlDelete($iResult) ConsoleWrite('GUICtrlDelete = ' & $iResult & @CRLF)
Attachments (0)
Change History (4)
comment:1 Changed 15 years ago by Valik
comment:2 Changed 15 years ago by Jon
Found this comment in the source code:
case AUT_GUI_DUMMY: return 0; // Can't delete these yet
Not sure why...
comment:3 Changed 15 years ago by Jon
Can't see any reason this code needed to be there. Maybe it was supposed to be "break" rather than "return". Removing and marking as fixed.
comment:4 Changed 15 years ago by Jon
- Milestone set to 3.3.5.3
- Owner set to Jon
- Resolution set to Fixed
- Status changed from new to closed
Fixed by revision [5663] in version: 3.3.5.3
Guidelines for posting comments:
- You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
- In-depth discussions should take place on the forum.
For more information see the full version of the ticket guidelines here.
Note: See
TracTickets for help on using
tickets.
I consider this a bug. The following script demonstrates that the dummy control is not deleted. I cannot think of any valid reason why the delete request should be ignored: