Jump to content

Disabling question


 Share

Recommended Posts

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]
Link to comment
Share on other sites

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

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