Modify ↓
#1329 closed Bug (Wont Fix)
GUICtrlCreatePic width=height=0.
| Reported by: | anonymous | Owned by: | |
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | 3.3.1.6 | Severity: | None |
| Keywords: | Cc: |
Description
If minimize and restore GUI, with using GUICtrlCreatePic with width=height=0 for displaying as original picture size, the picture will resize to the previous element in the controls declaration, not its own original size.
AutoIt:3.3.1.6 (and v3.3.0.0) (Os:WIN_XP/X86/Service Pack 3 Language:0409 Keyboard:00000409 Cpu:X64)
Test code:
#include <GUIConstantsEx.au3>
Local $gui = GUICreate("GUICtrlCreatePic ", 500, 280)
Local $Label1=GUICtrlCreateLabel("Label", 210, 200, 80, 20)
GUICtrlCreatePic(".\picture.jpg", 10, 10, 0, 0)
GUISetState()
While 1
$msg = GUIGetMsg()
If $msg = $GUI_EVENT_CLOSE Then ExitLoop
Sleep(50)
WEnd
Attachments (0)
Change History (2)
comment:1 by , 16 years ago
| Resolution: | → Wont Fix |
|---|---|
| Status: | new → closed |
comment:2 by , 16 years ago
Then please delete the related section from the help file too, to won't use developers that "feature" in the future! Thanks!
Note:
See TracTickets
for help on using tickets.

I'm closing this as "Won't fix". It's definitely a bug but it's the exact sort of bug that reminds me why the current GUI implementation is absolute garbage and why it needs ripped out and written by somebody who knows what they are doing.
I'm afraid you're going to have to live with this one for a very long time.