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] Scroller 1.0

 
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: Wed Oct 07, 2009 7:39 pm    Post subject: [module] Scroller 1.0 Reply with quote


_________________
Back to top
View user's profile Send private message
majkinetor



Joined: 24 May 2006
Posts: 4511
Location: Belgrade

PostPosted: Wed Oct 07, 2009 7:46 pm    Post subject: Reply with quote

The changes over Lexikos code are as follows:

  • Properly calculates scrollable area, taking into account system and window specific settings (title height, border size, gui margin, scrollbar size)
  • Works within container control (Panel, or anything else) by simply calling Scroll_onScroll handler. This gives you option of multiple scrollable subwindows inside main window. You will be able to use it also as a handler for Scrollbar custom control for maximum customization of scrollbar appearance.
  • Documentation.
  • Modularized - easy to plug-in in your code.


Again, great thing Lexikos. Thx man.
_________________


Last edited by majkinetor on Wed Oct 07, 2009 7:49 pm; 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: Wed Oct 07, 2009 7:55 pm    Post subject: Reply with quote

This is the picture of scrollable Panel which will soon be available for usage.


_________________
Back to top
View user's profile Send private message
hughman



Joined: 11 Feb 2007
Posts: 166

PostPosted: Fri Oct 09, 2009 5:52 am    Post subject: Reply with quote

wow, you're my idol, man.
Back to top
View user's profile Send private message
Thrawn



Joined: 12 May 2008
Posts: 30
Location: Germany

PostPosted: Wed Oct 21, 2009 4:20 pm    Post subject: Reply with quote

Quote:
This is the picture of scrollable Panel which will soon be available for usage.
i'd love that feature. can't wait to use it.
Back to top
View user's profile Send private message
HotKeyIt



Joined: 18 Jun 2008
Posts: 4652
Location: AHK Forum

PostPosted: Wed Jan 20, 2010 3:09 pm    Post subject: Reply with quote

Hi majkinetor, can't believe I did not tell you many thanks for this and how great it is, thank you Smile

I've got one small problem, how would I exclude a ToolBar or any other controls from scrolling, is this possible at all without a second gui?
_________________
AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun Wink
Back to top
View user's profile Send private message
majkinetor



Joined: 24 May 2006
Posts: 4511
Location: Belgrade

PostPosted: Wed Jan 20, 2010 3:54 pm    Post subject: Reply with quote

You need to use Panels (see pic above). Try with Forms framework then copy the Forms modules u used to your inc folder (including _Forms.ahk so if you add more framework modules later, you don't have to mess with includes).

Toolbar on top, everything else in panel bellow. Then, you set the panel to be scrollable (see its scroll style).
_________________
Back to top
View user's profile Send private message
majkinetor



Joined: 24 May 2006
Posts: 4511
Location: Belgrade

PostPosted: Wed Jan 20, 2010 4:14 pm    Post subject: Reply with quote

The sample:

Code:
_()
    w := 500, h := 400
    hForm  := Form_New("Resize e3 w500 h400")

    hToolbar := Form_Add(hForm, "Toolbar", "cut`ncopy`npaste`nredo`nundo", "gOnToolbar style=flat il=3")
    hPanel   := Form_Add(hForm, "Panel", "", "x5 y50 w" w-15 " h" h-55, "Attach w h")

    Loop, 10
        Form_Add(hPanel, "Edit", "Edit " A_Index, "vscroll R5 H100 W200")

    Panel_SetStyle(hPanel, "scroll")
    Form_Show()
return

#include inc
#include _Forms.ahk

_________________
Back to top
View user's profile Send private message
luetkmeyer



Joined: 26 Feb 2010
Posts: 38

PostPosted: Sun Apr 18, 2010 3:17 pm    Post subject: Reply with quote

Thank you.
Back to top
View user's profile Send private message
Guest






PostPosted: Tue Sep 14, 2010 11:11 pm    Post subject: re: Intagration with GUi window Reply with quote

Firstly thanks for your work on creating this project.

I am a new user of AHK and I am trying to get a GUI windows that contains many fields to scroll up and down. i see you implementation is on the contents of the GUI windows such as the text boxes and forms. Is there any change someone can give me an example on how to apply this script to a basic GUI window?

If anyone can help it would be really appreciated!

Cheers from Australia!
Back to top
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