Sign in to follow this  
Followers 0
DjDeep00

Vertical Scroll Bar

2 posts in this topic

Please can someone help me with the following questions regarding my script?

1. I am unable to use the vertical scroll bar and view the two lists as the list gets larger.

2. I am unable to use the maximize, minimize, close button window.

3. Is there away I can scroll both of the lists at the same time?

Thanks in advance.

;----------------------------------------------------------------------

Script:

Opt("GuiNotifyMode",1)

GUICreate("Title", 240, 100,100,100,0x00200000)

$listbox1 = GuiSetControl ("list", "", 140,10,60,500)

GUISetControlData($listbox1,"Item1|Item2|Item3|Item4|Item5|Item6")

$listbox2 = GuiSetControl ("list", "", 80,10,60,500)

GUISetControlData($listbox2,"Item1|Item2|Item3|Item4|Item5|Item6")

$ADD = GUISetControl ("button", "ADD", 10,10,50,20)

GuiShow()

While GUIMsg() <> -3

$msg = GuiRead()

Select

case $msg = $ADD

GUISetControlData($listbox1,"Item7|Item8|Item9|Item10|Item11|Item12")

GUISetControlData($listbox2,"Item7|Item8|Item9|Item10|Item11|Item12")

EndSelect

Wend

;---------------------------------------------------------------

Share this post


Link to post
Share on other sites



The GUI is going through massive changes right now, and the function names are completely different....

You can try out AutoBuilder to generate a GUI in the old syntax, then you could try converting it to the new syntax

I have not seen a way to scroll list boxes at the same time, but http://www.autoitscript.com/fileman/users/public/CyberSlug/lb_wrappers_self-contained.au3...

To get the minimize/maximize/close buttons to appear, make sure you are using the right style in GUICreate. Try removing 0x00200000 and look at http://www.autoitscript.com/fileman/users/public/CyberSlug/WindowStyles.png and http://www.autoitscript.com/fileman/users/public/CyberSlug/WindowStyles.au3

Also, you will need to add the scrollbar style to the list box instead of to the window itself... I think the help file appendix had a list of control styles.

Hope that helps


Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0