AutoHotkey Community

It is currently May 26th, 2012, 10:46 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 14 posts ] 
Author Message
 Post subject: [module] Splitter 1.6
PostPosted: September 17th, 2009, 7:52 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade

_________________
Image


Last edited by majkinetor on December 9th, 2009, 11:48 am, edited 3 times in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 2nd, 2009, 8:04 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
*** version 1.1 ***
+ Added handler.
+ moving splitter by user improved (splitter can't go less then 0 and more then width of hosting control)
+ New sample with Panel.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 2nd, 2009, 8:46 pm 
Offline

Joined: July 9th, 2009, 9:25 pm
Posts: 120
Nice!
Btw, why the call to _("mo!") in _Multiple.ahk and the .svn folders?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 2nd, 2009, 8:57 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
Quote:
why the call to _("mo!")

_mo.
That should be commented if you don't have _. Its something I use in each script.

Quote:
and the .svn folders?

Accidentally included. Its subversion hidden folder.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 14th, 2009, 2:05 am 
Offline

Joined: January 18th, 2006, 7:39 am
Posts: 274
Location: Conway, Arkansas
Great library, majkinetor. I have found one issue with it, though. When a GUI has a menubar attached to it, all horizontal splitter rectangles are off by the height of the menu bar. To see what a I mean, just add a menubar to the _Multiple.ahk example and then move a horizontal splitter. I realise that it's mostly aesthetic but do you think anything could be done about this? Thanks, as always.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 14th, 2009, 3:31 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
Ah damn... I didn't thought about it.... I used menu bar perhaps once in a life time.

Ye, it can be fixed. The correct position of placement will be that of a mouse, not of a rectangle shown as you already noticed.

Ill fix it. Ty for reporting.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 14th, 2009, 9:59 pm 
Offline

Joined: January 18th, 2006, 7:39 am
Posts: 274
Location: Conway, Arkansas
majkinetor wrote:
Ye, it can be fixed.


Fantastic. Thank you very much. =]


Report this post
Top
 Profile  
Reply with quote  
PostPosted: December 5th, 2009, 8:41 am 
Please advise ETA on the resolution of the menu bar-induced offset?

Also, I am seeing an issue with a horizontal splitter, and the use of a statusbar control below it. It seems to be scaling the lower control offset by a porportionate amount, based on the initial size of the control/host container, when the window is resized.

I suspect that it is related to a similar issue as the menu bar.?.

Regardless of the issues, thanks a bunch, Majkinetor, for all of your fine scripts!

-t


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 5th, 2009, 7:26 pm 
I guess Ill fix it during this month.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 7th, 2009, 4:10 am 
Thanks a bunch, Majkinetor.

This is being used in an app I am building for UI Testing. Much appreciated!

-t


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 8th, 2009, 8:10 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
*** version 1.5 ***

+ Redesigned bunch of the things, please test throughly.
+ Added new events (doubleclick, right click).
+ Code simplified and improved.
! Bugfix: Focus Rect offset fixed.
! Bugfix: Handler was triggered when programmatically moving Splitter.
+ New APIs - GetMax, GetSize
* Dependency update: Win 1.23 (in the archive)

* Event handling changed. See Add.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 9th, 2009, 10:38 am 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
*** version 1.6 ***

+ Set now accepts Limit parameter that can be used to limit splitter movement.
+ SetPos/GetPos now accept procentage.
+ Sample _Horizontal.ahk changed to reflect recent changes (added menu and statusbar and limits, added handlers to double and right click)
+ Dependency updated.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 13th, 2010, 2:34 am 
Is it possible to have the controls be resized on mouse move instead of on lbutton up is let go?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 13th, 2010, 7:41 am 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
Definitely could be 'fixed' like that.
It doesn't supports it now.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: fragman, jrav, Yahoo [Bot] and 14 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group