Khryus Posted September 2, 2012 Posted September 2, 2012 I have tried disabling it (GUICtrlSetState(-1, $GUI_DISABLE) it), but I can't scroll down. What I want to do is make the user not able to edit it manually. He/she will just be able to copy the content and use the scrollbars. The content will be set from the script. How can I do this without disabling the control, or is there a way to enable scrolling while the control is disabled? "The story of a blade is linked in Blood." ―Yasuo
JohnOne Posted September 2, 2012 Posted September 2, 2012 Use the $ES_READONLY style. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
Khryus Posted September 2, 2012 Author Posted September 2, 2012 (edited) *facedesk* thanks lol Didn't even think about readonly lol Edited September 2, 2012 by megablox "The story of a blade is linked in Blood." ―Yasuo
Khryus Posted September 2, 2012 Author Posted September 2, 2012 Hm, I just noticed that when I use the $ES_READONLY style it disables the vertical scrollbar (does it matter having the horizontal scrollbar disabled?) "The story of a blade is linked in Blood." ―Yasuo
FireFox Posted September 2, 2012 Posted September 2, 2012 Hm, I just noticed that when I use the $ES_READONLY style it disables the vertical scrollbar (does it matter having the horizontal scrollbar disabled?) Maybe this? ;edit ctrl style BitOR($ES_READONLY, $ES_AUTOHSCROLL) ;scroll bar not visible BitOR($ES_READONLY, $WS_HSCROLL) ;scroll bar visible Br, FireFox.
Khryus Posted September 2, 2012 Author Posted September 2, 2012 I will check tomorrow, I can't try it right now. Thanks for the answer though! "The story of a blade is linked in Blood." ―Yasuo
Khryus Posted September 3, 2012 Author Posted September 3, 2012 Yeah it works, I used GUICtrlSetStyle(-1, BitOR($ES_READONLY, $WS_VSCROLL)) and it worked fine. Thanks! "The story of a blade is linked in Blood." ―Yasuo
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now