| View previous topic :: View next topic |
| Author |
Message |
invidious
Joined: 03 Sep 2004 Posts: 13
|
Posted: Sun Mar 20, 2005 6:48 am Post subject: (Gui, Text) +Vscroll doesn't work |
|
|
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 |
|
 |
Invalid User
Joined: 14 Feb 2005 Posts: 442 Location: Texas, Usa
|
Posted: Sun Mar 20, 2005 8:25 am Post subject: |
|
|
try this one.... | Code: |
Gui, Add, ListBox, w100 h100 HScroll VScroll, text
Gui, Show |
_________________ my lame sig  |
|
| Back to top |
|
 |
invidious
Joined: 03 Sep 2004 Posts: 13
|
Posted: Mon Mar 21, 2005 1:56 am Post subject: |
|
|
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
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
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
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  |
|
| Back to top |
|
 |
corrupt
Joined: 29 Dec 2004 Posts: 2436
|
Posted: Mon Mar 21, 2005 4:40 am Post subject: |
|
|
| invidious wrote: | - although it seem's like I'm talking to myself  | ...but it seems like you're making progress ... |
|
| Back to top |
|
 |
invidious
Joined: 03 Sep 2004 Posts: 13
|
Posted: Mon Mar 21, 2005 9:35 pm Post subject: |
|
|
yeah I am making progress!
I think it's pretty good for a first try
FYI: (Who cares? )
-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  |
|
| Back to top |
|
 |
WarrenFaith
Joined: 11 Jul 2006 Posts: 11
|
Posted: Thu Jul 13, 2006 1:27 pm Post subject: |
|
|
hm... so there is no way to make a normal text with working VScroll?
thats to bad... |
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
Posted: Thu Jul 13, 2006 1:39 pm Post subject: |
|
|
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 |
|
 |
|