Jump to content
Sign in to follow this  
hunt

Resizing control before resizing GUI Window

Recommended Posts

hunt

How to avoid this bug?

#include <GuiConstantsEx.au3>
#Include <WinAPI.au3>

Opt("GUIResizeMode", $GUI_DOCKALL)

$Form = GUICreate("Form", 300, 300, 0, 0)
GUISetState()

$hListView = GUICtrlCreateListView("ListView", 8, 8, 10, 10)

Sleep(1000)

; --------------- Resizing Listview ------------------
;ControlMove($Form, "", $hListView, 8, 8, 200, 200)
;_WinAPI_MoveWindow(GUICtrlGetHandle($hListView), 8, 8, 200, 200)
WinMove(GUICtrlGetHandle($hListView), "", 8, 8, 200, 200)
; ----------------------------------------------------

Sleep(1000)

; ------- Resizing Form  -----------
WinMove($Form, "", 0, 0, 600, 600)
;_WinAPI_MoveWindow(HWnd($Form), 0, 0, 600, 600, False)
; ----------------------------------

; After WinMove sizes of ListView returned to the initial values

Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE
Edited by hunt

Share this post


Link to post
Share on other sites
trancexx

GUICtrlSetPos($hListView, 8, 8, 200, 200)

Still it's interesting.


♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites
hunt

GUICtrlSetPos($hListView, 8, 8, 200, 200)

Still it's interesting.

Thank you! This works! :blink:

So this bug or not?

Share this post


Link to post
Share on other sites
trancexx

So this bug or not?

Can be debated.

♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×