Jump to content

GUIExtender - Deprecated version


Melba23
 Share

Recommended Posts

  • Moderators

shai,

Please try this Beta version of the UDF (which is RTL sensitive) and see if it works for you as well as it does for me:

M23

Edited by Melba23
Beta code removed

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

  • 3 weeks later...
  • Moderators

[New version] - 28 Aug 16

Added: The UDF is now RTL sensitive.

Thanks to shai for the request.

New UDF and examples in first post.

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

  • 5 months later...

Hi Melba23,

thank you for this execllent udf, which makes modifying gui easier.

First use of it is a little bit complex (which somtimes leads to very funny windows :)) - due to that I had a look at your code and I decided to make a few changes which made (IMHO) using your UDF a little bit easier.

The main changes are:

  • automatically setting an end-tag by _GUIExtender_Section_Start if it's not found for the previous section
  • calculating next start point automatically (using -1 as value for $iSection_Coord in _GUIExtender_Section_Start, points to 0 if used in the first section)
  • calculating the remaining size for the last section (using -1 als value for $iSection_Size in _GUIExtender_Section_Start)
  • adding 3 Functions (a function for flipping a section's state and 2 functions only needed for debugging, but they may be useful)

For example:

; ==============================================================
; your UDF
; ==============================================================

$frmMain = GUICreate($title, 371, 278, 197, 129)
...
_GUIExtender_Init($frmMain, 0, 0)
...
_GUIExtender_Section_Start($frmMain, 134, 32)
...
_GUIExtender_Section_End($frmMain)
_GUIExtender_Section_Start($frmMain, 166, 88)
...
_GUIExtender_Section_End($frmMain)
_GUIExtender_Section_Start($frmMain, 254, 24)
...
_GUIExtender_Section_End($frmMain)

; ==============================================================
; my UDF
; ==============================================================

$frmMain = GUICreate($title, 371, 278, 197, 129)
...
_GUIExtender_Init($frmMain, 0, 0)
...
_GUIExtender_Section_Start($frmMain, 134, 32)
...
_GUIExtender_Section_Start($frmMain, -1, 88)    ; <--   end of previous section will be set automatically - next start 
                                                ;       coord will be calculated by the UDF-Function (134+32=166)
...
_GUIExtender_Section_Start($frmMain, -1, -1)    ; <--   end of previous section will be set automatically - next start 
                                                ;       coord and remainig size wil be calculated by the UDF-Function 
                                                ;       (166+88=254 / 278-254=24)
...
_GUIExtender_Section_End($frmMain)              ; <-- still needed

I tested my modified UDF with the scripts I made and your examples an I found no errors - but they may exist, because I'm sure to forgot and overlook something in your code.

You will find the changes well commented (hope so) attached to this post and I hope they are useful for others.

Greetings

kara2004

 

_GUIExtender_mod20170225.au3

Link to comment
Share on other sites

  • Moderators

kara2004,

Nice idea - I will look at how I might incorporate it.

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

  • Moderators

kara2004,

I have incorporated your suggestions into a new version of the UDF which can be found here.

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

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

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