lordicast Posted February 11, 2010 Share Posted February 11, 2010 Hello people. Is there a way to disable a control but keep the scroll bar? $Test = GuiCtrlCreateEdit('',200,200) GUICtrlSetState(-1, $GUI_DISABLE) ;Works However I can not use the scroll bars to skim the text!? So I want them to see the text and scroll down and see all of it but not input I guess is where im going with this. thanks in advance [Cheeky]Comment[/Cheeky] Link to comment Share on other sites More sharing options...
Yashied Posted February 11, 2010 Share Posted February 11, 2010 Use $ES_READONLY and GUICtrlSetBkColor() / GUICtrlSetColor(). My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
somdcomputerguy Posted February 11, 2010 Share Posted February 11, 2010 The $ES_READONLY style for GuiCtrlCreateEdit does not fit the needs for this? I don't know if that style can be toggled, maybe that's a requirement here.. - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
ProgAndy Posted February 11, 2010 Share Posted February 11, 2010 (edited) Disable really disables the cntrol. I think the Style $ES_READONLY should do what you want. $edit = GUICtrlCreateEdit("", 10, 10, 380, 280, BitOr($GUI_SS_DEFAULT_EDIT, $ES_READONLY)) Edit: 3 answers in 1 minute and all with the same content Edited February 11, 2010 by ProgAndy *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes Link to comment Share on other sites More sharing options...
lordicast Posted February 11, 2010 Author Share Posted February 11, 2010 (edited) Wow thank you! I feel dumb now EDIT: FTR , I went with BitOR($WS_VSCROLL,$ES_READONLY) thanks Edited February 11, 2010 by lordicast [Cheeky]Comment[/Cheeky] 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