AutoHotkey Community

It is currently May 27th, 2012, 5:56 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: [module] Scroller 1.0
PostPosted: October 7th, 2009, 8:39 pm 
Offline

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

_________________
Image


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

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
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.

_________________
Image


Last edited by majkinetor on October 7th, 2009, 8:49 pm, edited 3 times in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 7th, 2009, 8:55 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
This is the picture of scrollable Panel which will soon be available for usage.

Image

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 9th, 2009, 6:52 am 
Offline

Joined: February 11th, 2007, 4:10 pm
Posts: 185
wow, you're my idol, man.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 21st, 2009, 5:20 pm 
Offline

Joined: May 12th, 2008, 2:23 pm
Posts: 30
Location: Germany
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 20th, 2010, 4:09 pm 
Offline

Joined: June 18th, 2008, 8:36 am
Posts: 4923
Location: AHK Forum
Hi majkinetor, can't believe I did not tell you many thanks for this and how great it is, thank you :)

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:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 20th, 2010, 4:54 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
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).

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 20th, 2010, 5:14 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
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

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 18th, 2010, 4:17 pm 
Offline

Joined: February 26th, 2010, 1:11 am
Posts: 38
Thank you.


Report this post
Top
 Profile  
Reply with quote  
PostPosted: September 15th, 2010, 12:11 am 
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!


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Apollo, Exabot [Bot], Google Feedfetcher, JamixZol and 20 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