It splits GUIs into different pieces, which can be resized.
Just like frames in HTML.
Screenshot of a splitted GUI: (In case you have no idea what i'm talking about)

If you still have no idea, just check it out.
Example:
#include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <WinAPI.au3> #include <GUIFrame.au3> $FR_CALLBACK = "FrameSizing"; Gets called when a frame is being resized $GUI = GUICreate("Splitted GUI",600,500) $iFrame_Vert = _GUIFrame_Create($GUI, $FR_VERT) _GUIFrame_SetMin($iFrame_Vert, 200, 250); The left frame can't be smaller than 200px, and the right frame can't be smaller than 250px _GUIFrame_First($iFrame_Vert); Switch to first frame GUICtrlCreateLabel("Left frame of the vertical frame control",10,10,200,32) $hSecondFrame = _GUIFrame_GetInfo($iFrame_Vert, $FR_SECOND); Get the handle of the second frame $iFrame_Horz = _GUIFrame_Create($hSecondFrame, $FR_HORZ); Create another frame control in a frame _GUIFrame_SetMin($iFrame_Horz, 100, 100) _GUIFrame_First($iFrame_Horz) GUICtrlCreateLabel("Upper frame of the horizontal frame control",10,10,200,32) _GUIFrame_Second($iFrame_Horz) GUISetBkColor(0x65d956) $Button = GUICtrlCreateButton("A regular button",10,10,120,23) GUISetState(@SW_SHOW, $GUI) While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit Case $Button MsgBox(0,"Test","See, just a regular button") EndSwitch WEnd Func FrameSizing($iFrame, $iFirstSize, $iSecondSize) If $iFrame = $iFrame_Vert Then _GUIFrame_Move($iFrame_Horz, 0, 0, $iSecondSize) EndIf EndFunc
More functions are coming.
Happy Framing
Attached Files
Edited by Kip, 14 July 2009 - 02:57 PM.











