Jump to content

$ES_READONLY


Recommended Posts

Hi all

would someone know how i can use $ES_READONLY on a edit without looseing the scroll up and down

control

if i use $Edit2= GuiCtrlCreateEdit("", 0, 310, 450, 100,$ES_READONLY)

i loose the scroll up and down would there be a way around this ?

thank you

michael

Link to comment
Share on other sites

Have a look at GUICtrlCreateEdit in helpfile.

Remarks

To obtain the value of the control see GUICtrlRead.

To set or change information in the control see GUICtrlSet....

To combine styles to default style use BitOr($GUI_SS_DEFAULT_EDIT, newstyle,...).

BitOr() it.

You can combine the style with the default.

$Edit2= GuiCtrlCreateEdit("", 0, 10, 250, 100, BitOr($GUI_SS_DEFAULT_EDIT, $ES_READONLY))
Link to comment
Share on other sites

  • Moderators

This worked:

$Edit2= GuiCtrlCreateEdit("", 0, 310, 450, 100, BitOR($ES_READONLY, $WS_HSCROLL))

Edit: lol... well MHz beat me to an answer. His is probably better as I've not tried this before... and was just messing around to see if I could do it.

Edited by ronsrules

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

Have a look at GUICtrlCreateEdit in helpfile.

BitOr() it.

You can combine the style with the default.

$Edit2= GuiCtrlCreateEdit("", 0, 10, 250, 100, BitOr($GUI_SS_DEFAULT_EDIT, $ES_READONLY))
cool thank you i was looking in extended style

michael

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...