Michael36 Posted October 26, 2005 Share Posted October 26, 2005 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 More sharing options...
MHz Posted October 26, 2005 Share Posted October 26, 2005 Have a look at GUICtrlCreateEdit in helpfile.RemarksTo 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 More sharing options...
Moderators SmOke_N Posted October 26, 2005 Moderators Share Posted October 26, 2005 (edited) 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 October 26, 2005 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 More sharing options...
Michael36 Posted October 26, 2005 Author Share Posted October 26, 2005 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 More sharing options...
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