Jump to content

GUIFrame UDF - Melba23 version - 19 May 14


Melba23
 Share

Recommended Posts

  • Moderators

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
WEnd
M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

  • 2 years later...

Hi, Sorry for bump posting but I had a really crazy coincidence :blink:... 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? :P. 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 :shocked:

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...