Opened 5 years ago

Last modified 5 years ago

#3095 closed Bug

Resizing GUI Controls before showing GUI — at Version 1

Reported by: DutchCoder Owned by:
Milestone: Component: AutoIt
Version: 3.3.14.0 Severity: None
Keywords: Cc:

Description (last modified by guinness)

A little change detected in Window handling since 3.3.12.0

ReSizing GUI Controls works only now after showing the GUI.
Work Around is simple: Show the Window first before WinMove(), but works different than before.

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

$GUI = GUICreate("Exapmle", 200, 200, -1, -1, BitOR($GUI_SS_DEFAULT_GUI, $WS_SIZEBOX, $WS_MAXIMIZEBOX))
$Edit = GUICtrlCreateEdit("Text", 5, 5, 190, 190)
GUICtrlSetResizing(-1, $GUI_DOCKBOTTOM + $GUI_DOCKTOP + $GUI_DOCKLEFT + $GUI_DOCKRIGHT)

WinMove($GUI, "", 100, 100, 300, 300)
GUISetState(@SW_SHOW)

While 1
	Switch GUIGetMsg()
		Case -3
			ExitLoop
	EndSwitch
WEnd

GUIDelete($GUI)
Exit

Change History (1)

comment:1 Changed 5 years ago by guinness

  • Description modified (diff)
Note: See TracTickets for help on using tickets.