hunt Posted July 7, 2010 Posted July 7, 2010 (edited) 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 July 7, 2010 by hunt
trancexx Posted July 7, 2010 Posted July 7, 2010 GUICtrlSetPos($hListView, 8, 8, 200, 200) Still it's interesting. ♡♡♡ . eMyvnE
hunt Posted July 7, 2010 Author Posted July 7, 2010 GUICtrlSetPos($hListView, 8, 8, 200, 200) Still it's interesting. Thank you! This works! So this bug or not?
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now