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 

Removing Scroll Bars On Edit Controls

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



Joined: 01 Nov 2007
Posts: 689

PostPosted: Fri Nov 16, 2007 8:23 pm    Post subject: Removing Scroll Bars On Edit Controls Reply with quote

i wondering how to with a gui control
to remove the scroll bars on a edit menu

thx in advance
Back to top
View user's profile Send private message
BillyBoB6969



Joined: 12 Nov 2007
Posts: 10

PostPosted: Fri Nov 16, 2007 8:57 pm    Post subject: Anwser Reply with quote

Enter in -VScroll or -HScroll in options.
Like:
Code:

Gui, Add, Edit, x176 y180 w150 h40 -VScroll
Back to top
View user's profile Send private message
Fry



Joined: 01 Nov 2007
Posts: 689

PostPosted: Fri Nov 16, 2007 9:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
BillyBoB6969



Joined: 12 Nov 2007
Posts: 10

PostPosted: Fri Nov 16, 2007 9:30 pm    Post subject: Reply with quote

The up and down scroll bar are vertical to the program so
-VScroll
Back to top
View user's profile Send private message
ahklerner



Joined: 26 Jun 2006
Posts: 1249
Location: USA

PostPosted: Fri Nov 16, 2007 9:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
ahklerner



Joined: 26 Jun 2006
Posts: 1249
Location: USA

PostPosted: Fri Nov 16, 2007 9:38 pm    Post subject: Reply with quote


_________________

ʞɔпɟ əɥʇ ʇɐɥʍ
Back to top
View user's profile Send private message
engunneer



Joined: 30 Aug 2005
Posts: 6847
Location: Pacific Northwest, US

PostPosted: Fri Nov 16, 2007 10:13 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
V@no



Joined: 13 Sep 2007
Posts: 37

PostPosted: Fri May 09, 2008 12:00 am    Post subject: Reply with quote

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
View user's profile Send private message
sinkfaze



Joined: 18 Mar 2008
Posts: 139

PostPosted: Fri May 09, 2008 4:13 am    Post subject: Reply with quote

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
View user's profile Send private message
V@no



Joined: 13 Sep 2007
Posts: 37

PostPosted: Fri May 09, 2008 4:28 am    Post subject: Reply with quote

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
View user's profile Send private message
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