Sign in to follow this  
Followers 0
lordicast

Disabling question

5 posts in this topic

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 :D


[Cheeky]Comment[/Cheeky]

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 :D

Edited 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

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Wow thank you! :D I feel dumb now

EDIT:

FTR , I went with BitOR($WS_VSCROLL,$ES_READONLY)

thanks

Edited by lordicast

[Cheeky]Comment[/Cheeky]

Share this post


Link to post
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
Sign in to follow this  
Followers 0