Jump to content

Recommended Posts

Posted

Hello Melba23,

thank you for your reply. Please don’t worry about the timing — your health comes first. I really appreciate that you are even considering looking into the issue.

I wish you all the best for your treatment and a smooth recovery.

Posted (edited)

Hello Melba23,

just a quick update: I was able to solve the issue myself, thanks to the hint in this post:
https://www.autoitscript.com/forum/topic/198673-_guiscrollbars-question/#findComment-1425538
The solution works well, although it requires a small additional helper function in the base script.
I tried integrating it directly into your UDF, but I couldn’t get it to work there.
If you ever find a way to incorporate this cleanly into the UDF, I’d really appreciate it — it would
certainly help others who might run into the same problem.

Edited by Norm73
  • Moderators
Posted

Norm73,

Love it - managed to solve the problem without having to do anything! I will certainly look into incorporating the solution into the UDF in the future.

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

 

  • Moderators
Posted

Norm73,

Please try this Beta version: 

I am fairly confident that it will work, but please do try to break it!

M23

GUIScrollbars_Ex_Mod_Max.au3

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

 

Posted

I tested the file, and it actually works flawlessly. It can definitely be used as it is.
However, when comparing both approaches, I noticed that the variant with the helper function in the base script feels more refined overall.
In that version, both the window content and the ScrollBox positions remain stable even when the window is resized.
Additionally, you don’t need to scroll back to the desired position after changing the window size.
One thing I noticed in the beta version is that the known effect reappears when the window is resized by dragging its edges with the mouse instead of using the [–] [ ] [x] buttons to maximize or minimize it.

  • Moderators
Posted

Norm73,

Thanks for the testing - glad it seems to have partially resolved the [rob;lems you were having

Try adding the _GUIScrollbars_ReSizer function to your script after generating the scrollbars - that is designed to get the scrollbars correctly adjusted when using resizable GUIs. However, you may still find that the scrollbars return to the top left position as it was too complicated (at least for this coder) to get them to be in exactly the same place for every possible case.

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

 

Posted
On 2/26/2026 at 9:05 PM, Melba23 said:

Try adding the _GUIScrollbars_ReSizer function to your script after generating the scrollbars

Yes, I added the _GUIScrollbars_ReSizer function as you suggested, and now everything works exactly as it should.
Thank you very much for your help!

  • Moderators
Posted

Norm73, 

Great news!

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

 

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
×
×
  • Create New...