[AHK Test Build - 5th Nov 2015] Scrollbars, GuiControl Auto-Position+Size system, and more!

Post a reply

Confirmation code
Enter the code exactly as it appears. All letters are case insensitive.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: [AHK Test Build - 5th Nov 2015] Scrollbars, GuiControl Auto-Position+Size system, and more!

Re: [AHK Test Build - 5th Nov 2015] Scrollbars, GuiControl Auto-Position+Size system, and more!

Post by evilC » 29 Aug 2018, 06:57

I don't think there would be anything stopping you from manipulating it after you added it, not sure how the autosize code in the parent Gui would behave to it being popped out though.

Re: [AHK Test Build - 5th Nov 2015] Scrollbars, GuiControl Auto-Position+Size system, and more!

Post by hughman » 29 Aug 2018, 06:30

evilC wrote:
Child Guis as GuiControls
Syntax: Gui, Add, Gui, <control options>, <hwnd or name/number of existing Gui>
This adds an existing Gui, as if it were a GuiControl.
You can use the guicontrol options to apply autopositioning values to the child Gui.


Can the child guis be seprated and popped up from the parent after it is added?

Re: [AHK Test Build - 5th Nov 2015] Scrollbars, GuiControl Auto-Position+Size system, and more!

Post by evilC » 09 Sep 2016, 19:31

Well, it was maybe more a "I have some ideas" kind of statement, but to me it indicated that it was one of those things that was planned, but was just a matter of time / priorities.

If you think you will never get around to it, then maybe it would be worth folding HotkeyIt & I's code into L? It seems to work, and while it can be done in AHK script, it's noticeably smoother when done in C.

Re: [AHK Test Build - 5th Nov 2015] Scrollbars, GuiControl Auto-Position+Size system, and more!

Post by lexikos » 09 Sep 2016, 18:35

evilC wrote:Lexikos has said that he will implement his own system at some point,
Can you point me to where I wrote that? It might give me some idea of what I was thinking. :eh:

It's pretty unlikely at this point.

Re: [AHK Test Build - 5th Nov 2015] Scrollbars, GuiControl Auto-Position+Size system, and more!

Post by HotKeyIt » 09 Sep 2016, 13:43

The script works fine for me as it is, with the new feature there is no need for Anchor:

Code: [Select all] [Expand]GeSHi © Codebox Plus



These features are also included in AHK_H v2!

Re: [AHK Test Build - 5th Nov 2015] Scrollbars, GuiControl Auto-Position+Size system, and more!

Post by joedf » 09 Sep 2016, 08:21

Yes, I would switch to AutoXYWH()
Since it is still being supported.

Re: [AHK Test Build - 5th Nov 2015] Scrollbars, GuiControl Auto-Position+Size system, and more!

Post by jNizM » 09 Sep 2016, 07:54

Dont forget AutoXYWH()

Re: [AHK Test Build - 5th Nov 2015] Scrollbars, GuiControl Auto-Position+Size system, and more!

Post by joedf » 09 Sep 2016, 07:28

Here is the latest compatible version I have of anchor
https://github.com/ahkscript/ASPDM/blob ... Anchor.ahk

Re: [AHK Test Build - 5th Nov 2015] Scrollbars, GuiControl Auto-Position+Size system, and more!

Post by evilC » 09 Sep 2016, 06:53

Port what to V2? Not sure how V2 is gonna help you, it doesn't have an Anchor equivalent in it either AFAIK.

No plans as of yet to merge this into AHK_L properly - Lexikos has said that he will implement his own system at some point, so for now if you want to take advantage of this in a recent AHK build, your only option is to use AHK_H.

Re: [AHK Test Build - 5th Nov 2015] Scrollbars, GuiControl Auto-Position+Size system, and more!

Post by lmstearn » 09 Sep 2016, 02:06

Looks very useful. :) Noticed that Anchor got nuked (?) as the last script on this page doesn't work on 112401. Time to port over to V2 at this stage?

Re: [AHK Test Build - 5th Nov 2015] Scrollbars, GuiControl Auto-Position+Size system, and more!

Post by HotKeyIt » 16 Aug 2016, 17:05

It is finalized so far and is included in AHK_H.
Documentation can be found here: Auto Positioning and Resizing of Controls.

Re: [AHK Test Build - 5th Nov 2015] Scrollbars, GuiControl Auto-Position+Size system, and more!

Post by kinnex » 16 Aug 2016, 15:50

I just stumbled onto this while trying to figure out if it is possible to increase the size of scroll bars for DropDownLists. This looks amazing. Have there been any updates since 12/2015?

Re: [AHK Test Build - 5th Nov 2015] Scrollbars, GuiControl Auto-Position+Size system, and more!

Post by guest3456 » 01 Dec 2015, 23:06

yeah hotkeyit has documented some of the changes here (with some broken links):
http://hotkeyit.github.io/v2/docs/AHKH_Features.htm

Re: [AHK Test Build - 5th Nov 2015] Scrollbars, GuiControl Auto-Position+Size system, and more!

Post by lexikos » 01 Dec 2015, 22:32

Off topic: No, AHK_H is not 100% compatible. There is at least one script which won't load because of a conflict with the new "null" constant. #NoEnv is the default behaviour, and I think any script containing the directive won't load (but I could be wrong). There are probably other minor issues.

Re: [AHK Test Build - 5th Nov 2015] Scrollbars, GuiControl Auto-Position+Size system, and more!

Post by evilC » 01 Dec 2015, 14:20

I wouldn't hold your breath for too long, we have not even approached lexikos yet about incorporating these additions, and we are still finding bugs and issues with it, so until we have a stable build that we are happy with, it's not gonna happen.
If you wish to keep up-to-date with the latest AHK_L changes whilst taking advantage of these new additions, then you can just use the AHK_H v1 executable. HotkeyIt pulls the changes in from AHK_L as they happen, so you get the best of both worlds. AHK_H is a superset of AHK_L, and should be 100% compatible.

Regarding the drag question - no, not at the moment. This is, however, something that I may want to be doing in my own project (It would be nice if you could drag reorder plugins), so there is hope for you yet :)

Re: [AHK Test Build - 5th Nov 2015] Scrollbars, GuiControl Auto-Position+Size system, and more!

Post by Heezea » 01 Dec 2015, 08:58

Guys, amazing job. I'm holding out finishing a script until this makes it into the mainstream AHK version. Thanks so much for the effort, it's looking sweet.

Is it possible to use this so that when you are holding down the left mouse button (as if dragging an icon) and you move towards the edge of the GUI, that it would automatically scroll? Perhaps if you mouse over the "margin"? I'm envisioning this the same way windows explorer allows you to drag a file around in a directory.

Re: [AHK Test Build - 5th Nov 2015] Scrollbars, GuiControl Auto-Position+Size system, and more!

Post by evilC » 29 Nov 2015, 13:52

Updated download to build 44f439f.
Numerous enhancements and fixes to problems that we encountered while using the code in projects.

Re: [AHK Test Build - 17th Oct 2015] Scrollbars, GuiControl Auto-Position+Size system, and more!

Post by evilC » 05 Nov 2015, 17:20

Switched to DropBox for the download, as I cannot seem to attach any more.
New version uploaded with some fixes.

Re: [AHK Test Build - 17th Oct 2015] Scrollbars, GuiControl Auto-Position+Size system, and more!

Post by evilC » 17 Oct 2015, 13:54

New build, updated zip.

If the scrollbars of a control reach their limits, scrolling in that direction passes the scroll to the parent.

eg if scrollbar is at top and you scroll the wheel up, the parent gets scrolled.

Test script: Same as last post.
Place mouse + focus in Test1 - when the scrollbars reach the end, the parent is scrolled.

Top