Modify

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#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 Changed 10 years ago by Valik

  • Resolution set to Wont Fix
  • Status changed from new to closed

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.

comment:2 Changed 10 years ago by anonymous

Then please delete the related section from the help file too, to won't use developers that "feature" in the future! Thanks!

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.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.