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) +Vscroll doesn't work

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



Joined: 03 Sep 2004
Posts: 13

PostPosted: Sun Mar 20, 2005 6:48 am    Post subject: (Gui, Text) +Vscroll doesn't work Reply with quote

I'm very new to AutoHotkey so forgive me if this is a totally noob problem that proves my brain needs fixing and not the code!

I want to add a vertical scrollbar to the text (I don't want to use an Edit..even with ReadOnly), so I add +Vscroll; however, the scrollbar won't function...is there a purpose for this (maybe one isn't supposed to scroll Text)? Sorry if there isn't any bug present, but any help would be greatly appreciated! Thanks.

Code:
Gui, Add, Text, w200 h200 +Vscroll, Why won't this work?`n`nthe`nscrollbar`nlies D:`nit`nwont`nscroll`ndown`neven`nthough`nthere`nis`nenough`nTEXT:`nConfusing!
Gui, Show,, HELP!
Back to top
View user's profile Send private message
Invalid User



Joined: 14 Feb 2005
Posts: 442
Location: Texas, Usa

PostPosted: Sun Mar 20, 2005 8:25 am    Post subject: Reply with quote

try this one....
Code:

Gui, Add, ListBox, w100 h100 HScroll VScroll, text
Gui, Show

_________________
my lame sig Smile
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
invidious



Joined: 03 Sep 2004
Posts: 13

PostPosted: Mon Mar 21, 2005 1:56 am    Post subject: Reply with quote

Arrow Yeah that is a possible solution. I guess what I wanted to have was a non-selectable, non-editable, scrollable, and borderless text box. I found somewhat of a solution by using pictures to overlap the border of a readonly edit window and just settled with the fact that a user could select the text. What I might consider doing is focusing on another control when the edit is clicked (if possible).
I assume this isn't a bug because the text control can't really be edited so there is no need for the scrollbar; however, I think there shouldn't be the option (Vscroll) on the text control if it isn't available. Although this may just be redundant because it's possible that a fix would only add to the file size of scripts and further complicate things.
I guess I'm just used to a lot more design-related functionality! Sorry if I want my GUIs to look nice too Wink

Exclamation Note: I'm using a script written by a user on these forums to display a list of hotkeys and hoststrings with a comment - so I had to edit it and replace the `n with | because of the ListBox control

Idea EDIT: I found out an Edit control "shouldn't have a subroutine" so I changed it to a ListBox like you suggested (since one can assign a subroutine - which is what I'm using to focus on another control when clicking on the ReadOnly ListBox)
This isn't really an efficient way of doing things, but I'm trying to work with what I know Neutral

Idea EDIT2: Wow, I'm so noob! I keep running into more problems when I try to fix things the wrong way. Now since I have it focus on another control when I click on the ListBox, I can't use the mousewheel to scroll the text (I'm lazy). So now I'm going to make the mousewheel a hotkey that checks if the GUI is the active window and I guess postmessage to scroll the ListBox control?

Maybe this post should be moved to a different forum? (not the bug reports) - although it seem's like I'm talking to myself Rolling Eyes
Back to top
View user's profile Send private message
corrupt



Joined: 29 Dec 2004
Posts: 2436

PostPosted: Mon Mar 21, 2005 4:40 am    Post subject: Reply with quote

invidious wrote:
- although it seem's like I'm talking to myself Rolling Eyes
...but it seems like you're making progress Wink ...
Back to top
View user's profile Send private message Visit poster's website
invidious



Joined: 03 Sep 2004
Posts: 13

PostPosted: Mon Mar 21, 2005 9:35 pm    Post subject: Reply with quote

Laughing yeah I am making progress! Wink

I think it's pretty good for a first try Shocked

FYI: (Who cares? Rolling Eyes)
-I made a fullscreen window with custom graphics for the minimize/close buttons and a logo.
-I made custom animations for navigation buttons that are specific to the page shown.
-I only have two different pages to navigate so far (hotkey listing & script loader), but I'm working on more.
-Eventually I will attempt to make everything an executable (hopefully I can figure out all of the neccessary features needed to have a simple application) so I can make it available to people who would want to try it out Very Happy
Back to top
View user's profile Send private message
WarrenFaith



Joined: 11 Jul 2006
Posts: 11

PostPosted: Thu Jul 13, 2006 1:27 pm    Post subject: Reply with quote

hm... so there is no way to make a normal text with working VScroll?

thats to bad...
Back to top
View user's profile Send private message
PhiLho



Joined: 27 Dec 2005
Posts: 6721
Location: France (near Paris)

PostPosted: Thu Jul 13, 2006 1:39 pm    Post subject: Reply with quote

No, it is a limitation of Windows. Just put the text in a read-only edit box.
_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
Back to top
View user's profile Send private message Visit poster's website
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