Moderators Melba23 Posted December 14, 2014 Author Moderators Share Posted December 14, 2014 sycam0inc,Just divide one of the halves into two - then you have 3 sections: #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include "GUIFrame.au3" $hGUI = GUICreate("GUI_Frame 3 Sections", 600, 500, -1, -1, BitOR($WS_MINIMIZEBOX, $WS_MAXIMIZEBOX, $WS_SIZEBOX)) GUISetState() ; Create a 1st level frame $iFrame_A = _GUIFrame_Create($hGUI) _GUIFrame_SetSepPos($iFrame_A, 400) GUISetBkColor(0xFF0000, _GUIFrame_GetHandle($iFrame_A, 2)) ; Create a 2nd level frame $iFrame_B = _GUIFrame_Create(_GUIFrame_GetHandle($iFrame_A, 1)) GUISetBkColor(0x0000FF, _GUIFrame_GetHandle($iFrame_B, 1)) ; Set resizing flag for all created frames _GUIFrame_ResizeSet(0) ; Register the $WM_SIZE handler to permit resizing _GUIFrame_ResizeReg() While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE ; The UDF does all the tidying up as you exit Exit EndSwitch WEndM23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
TheDcoder Posted April 20, 2017 Share Posted April 20, 2017 Hi, Sorry for bump posting but I had a really crazy coincidence ... Long story short, I made an UDF with the exact same name, file name and UDF naming scheme of _GUIFrame_*! I swear that I did not copy the idea of the name from this UDF. My GUIFrame UDF has a different goal that this one though, I wanted to create a GUI framework which can take care of stuff "out of the box". I was planning to make most of the parameters which define the size and position of a control optional by using a "layout" engine thing... crazy idea right? . That is when I found this UDF, I was looking for M23's excellent StringSize UDF which can give me the size of the rectangle required for a given piece of text... I was surprised to see my UDF's name listed in @Melba23's signature My UDF is just a crazy idea at this stage and the script has a lot of room for improvement, you can find it at GitHub where I published it under an open source licence: https://github.com/AutoIt4Life/GUIFrame Time to think of a new name for the UDF! EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time) DcodingTheWeb Forum - Follow for updates and Join for discussion Link to comment Share on other sites More sharing options...
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