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 

GUI, Text Scrolling

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Fri Jul 18, 2008 12:37 am    Post subject: GUI, Text Scrolling Reply with quote

Okay, I'm making a GUI that displays the status of what it's doing.
I'm going for something like a command prompt look, so I have the colors done, but now I'm having problems getting a scroll bar onto it, so you can scroll up and view earlier status messages.
Here is my code so far:
Code:

Gui, Font, S8 CWhite, Lucida Console
Gui, Add, Text, VScroll x32 y12 w420 h380 , Text`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`nText`n
Gui, Color, 000000
Gui, Show, x408 y156 h408 w479, New GUI Window
Return

GuiClose:
ExitApp


See what I am trying to do? But the scroll seems to not want to do its job lol.
I am hoping what I am trying to do is possible.

Also, I am wondering, when I change the status, I'm just adding more, so would I want to use:
Code:

Gui, Add, Text, (coordanates), Text No.1`nText No.3
SLEEP 500
Gui, Add, Text, (Same coords), Text No.1`nText No.3`nText No.4

??
Because I don't want to keep adding texts until it starts to get slow and unstable. Is there a way to delete one, and then add another.. or maybe just add onto the already existent one?

Thank you all, you guys are great.
Back to top
SpiderGames



Joined: 09 Jun 2008
Posts: 332
Location: Canada

PostPosted: Fri Jul 18, 2008 1:00 am    Post subject: Reply with quote

would openin it in a "ListBox" be better than a text?
_________________
"I reject your ReAlItY and Substitute with my Own"
_______________________________________
Pie Is exactly 3!
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Guest






PostPosted: Fri Jul 18, 2008 3:42 am    Post subject: Re Reply with quote

No, see I need the option of changing colors. Listbox doesn't change colors. (Text/Background)
Thanks for the reply though.
Back to top
SpiderGames



Joined: 09 Jun 2008
Posts: 332
Location: Canada

PostPosted: Fri Jul 18, 2008 3:23 pm    Post subject: Reply with quote

not sure then srry
_________________
"I reject your ReAlItY and Substitute with my Own"
_______________________________________
Pie Is exactly 3!
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
BoBo²
Guest





PostPosted: Fri Jul 18, 2008 3:59 pm    Post subject: Reply with quote

@ SpiderGames
think about to shrink/rescale your signatures "spider-image" because it blows up the thread unnecessarily. Thanks for listening. Cool
Back to top
aka_bigred
Guest





PostPosted: Sat Jul 19, 2008 3:29 pm    Post subject: Reply with quote

I am having the same issue, vScroll displays a scroll bar, but it won't actually scroll my text gui. It's like the scroll bar is locked into the default position.

My gui setup code is nearly identical to SpiderGams'

I'm using the latest build of AHK too, version 1.0.47.06
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help 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