Jump to content

Prevent an Edit control from being manually edited


Khryus
 Share

Recommended Posts

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

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...