AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[module] Splitter 1.6

 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
majkinetor



Joined: 24 May 2006
Posts: 4511
Location: Belgrade

PostPosted: Thu Sep 17, 2009 6:52 pm    Post subject: [module] Splitter 1.6 Reply with quote


_________________


Last edited by majkinetor on Wed Dec 09, 2009 10:48 am; edited 3 times in total
Back to top
View user's profile Send private message
majkinetor



Joined: 24 May 2006
Posts: 4511
Location: Belgrade

PostPosted: Fri Oct 02, 2009 7:04 pm    Post subject: Reply with quote

*** 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.
_________________
Back to top
View user's profile Send private message
temp01



Joined: 09 Jul 2009
Posts: 120

PostPosted: Fri Oct 02, 2009 7:46 pm    Post subject: Reply with quote

Nice!
Btw, why the call to _("mo!") in _Multiple.ahk and the .svn folders?
Back to top
View user's profile Send private message
majkinetor



Joined: 24 May 2006
Posts: 4511
Location: Belgrade

PostPosted: Fri Oct 02, 2009 7:57 pm    Post subject: Reply with quote

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.
_________________
Back to top
View user's profile Send private message
skwire



Joined: 18 Jan 2006
Posts: 273
Location: Conway, Arkansas

PostPosted: Sat Nov 14, 2009 1:05 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
majkinetor



Joined: 24 May 2006
Posts: 4511
Location: Belgrade

PostPosted: Sat Nov 14, 2009 2:31 pm    Post subject: Reply with quote

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.
_________________
Back to top
View user's profile Send private message
skwire



Joined: 18 Jan 2006
Posts: 273
Location: Conway, Arkansas

PostPosted: Sat Nov 14, 2009 8:59 pm    Post subject: Reply with quote

majkinetor wrote:
Ye, it can be fixed.


Fantastic. Thank you very much. =]
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
TodWulff!
Guest





PostPosted: Sat Dec 05, 2009 7:41 am    Post subject: I too am seeing the menubar issue. Reply with quote

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
Back to top
majkinetor !
Guest





PostPosted: Sat Dec 05, 2009 6:26 pm    Post subject: Reply with quote

I guess Ill fix it during this month.
Back to top
TodWulff!
Guest





PostPosted: Mon Dec 07, 2009 3:10 am    Post subject: Reply with quote

Thanks a bunch, Majkinetor.

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

-t
Back to top
majkinetor



Joined: 24 May 2006
Posts: 4511
Location: Belgrade

PostPosted: Tue Dec 08, 2009 7:10 pm    Post subject: Reply with quote

*** 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.
_________________
Back to top
View user's profile Send private message
majkinetor



Joined: 24 May 2006
Posts: 4511
Location: Belgrade

PostPosted: Wed Dec 09, 2009 9:38 am    Post subject: Reply with quote

*** 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.
_________________
Back to top
View user's profile Send private message
Guest






PostPosted: Wed Jan 13, 2010 1:34 am    Post subject: Reply with quote

Is it possible to have the controls be resized on mouse move instead of on lbutton up is let go?
Back to top
majkinetor



Joined: 24 May 2006
Posts: 4511
Location: Belgrade

PostPosted: Wed Jan 13, 2010 6:41 am    Post subject: Reply with quote

Definitely could be 'fixed' like that.
It doesn't supports it now.
_________________
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group