| View previous topic :: View next topic |
| Author |
Message |
Fry
Joined: 01 Nov 2007 Posts: 689
|
Posted: Fri Nov 16, 2007 8:23 pm Post subject: Removing Scroll Bars On Edit Controls |
|
|
i wondering how to with a gui control
to remove the scroll bars on a edit menu
thx in advance |
|
| Back to top |
|
 |
BillyBoB6969
Joined: 12 Nov 2007 Posts: 10
|
Posted: Fri Nov 16, 2007 8:57 pm Post subject: Anwser |
|
|
Enter in -VScroll or -HScroll in options.
Like:
| Code: |
Gui, Add, Edit, x176 y180 w150 h40 -VScroll
|
|
|
| Back to top |
|
 |
Fry
Joined: 01 Nov 2007 Posts: 689
|
Posted: Fri Nov 16, 2007 9:25 pm Post subject: |
|
|
i want to remove the up and down ones so i used -HeightScroll
but it removed the whole edit box
what am i doing wrong |
|
| Back to top |
|
 |
BillyBoB6969
Joined: 12 Nov 2007 Posts: 10
|
Posted: Fri Nov 16, 2007 9:30 pm Post subject: |
|
|
The up and down scroll bar are vertical to the program so
-VScroll |
|
| Back to top |
|
 |
ahklerner
Joined: 26 Jun 2006 Posts: 1249 Location: USA
|
Posted: Fri Nov 16, 2007 9:32 pm Post subject: |
|
|
| Code: | Gui, Add, Edit, w100 r4 vMyEdit -VScroll, -`n-`n-`n-`n-`n-`n-`n-`n-`n-`n
Gui, Show
return
#z::
GuiControl, +VScroll, myEdit
return
Esc::ExitApp
|
The funny thing is, after you push #z, you don't get the scrollbars back..Well they are there, but they are 1 pixel wide, in the center. _________________
ʞɔпɟ əɥʇ ʇɐɥʍ |
|
| Back to top |
|
 |
ahklerner
Joined: 26 Jun 2006 Posts: 1249 Location: USA
|
Posted: Fri Nov 16, 2007 9:38 pm Post subject: |
|
|
 _________________
ʞɔпɟ əɥʇ ʇɐɥʍ |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 6847 Location: Pacific Northwest, US
|
Posted: Fri Nov 16, 2007 10:13 pm Post subject: |
|
|
you may have to have it in the control, then remove it before showing, then you can add again later? _________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM |
|
| Back to top |
|
 |
V@no
Joined: 13 Sep 2007 Posts: 37
|
Posted: Fri May 09, 2008 12:00 am Post subject: |
|
|
| ahklerner wrote: | | The funny thing is, after you push #z, you don't get the scrollbars back..Well they are there, but they are 1 pixel wide, in the center. | Isn't it a bug? in my case I don't even get the scroll bars... |
|
| Back to top |
|
 |
sinkfaze
Joined: 18 Mar 2008 Posts: 139
|
Posted: Fri May 09, 2008 4:13 am Post subject: |
|
|
| Something appears to be buggy, I can get rid of the scroll bar by specifying -VScroll in the GUI, Add, Edit line itself but I cannot create a hotkey with a GuiControl, -VScroll specification to make it go away. I can send text to the Edit box using GuiControl so the function is working, I just can't seem to send the attribute using it. I tried sending the command to the variable and to the ClassNN...nothing. Weird. |
|
| Back to top |
|
 |
V@no
Joined: 13 Sep 2007 Posts: 37
|
Posted: Fri May 09, 2008 4:28 am Post subject: |
|
|
| As a work around right now, I'm using two identical Edit fields, one with scrollbars hidden until number of text row doesn't reach the number of Edit field rows. Then I copy text from visible field into hidden, hide the visible and show the hidden with scrollbars. |
|
| Back to top |
|
 |
|