OmYcroN Posted April 18, 2009 Share Posted April 18, 2009 Hi. I have an edit control set to readonly but i can't change it's background color to white or other color. It's seems the default color it's that of the window. How can i change it ? Link to comment Share on other sites More sharing options...
Developers Jos Posted April 18, 2009 Developers Share Posted April 18, 2009 Hi. I have an edit control set to readonly but i can't change it's background color to white or other color. It's seems the default color it's that of the window. How can i change it ?Show some code snippet of what your are doing and isn't working. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted April 18, 2009 Moderators Share Posted April 18, 2009 OmYcroN, This works fine for me - a bright red read-only edit control:#include <GUIConstantsEx.au3> #include <EditConstants.au3> $hGUI = GUICreate("Test", 500, 500) $hEdit = GUICtrlCreateEdit("Fred", 10, 10, 200, 200, $ES_READONLY) GUICtrlSetBkColor(-1, 0xFF0000) GUISetState() While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
OmYcroN Posted April 18, 2009 Author Share Posted April 18, 2009 OmYcroN, This works fine for me - a bright red read-only edit control:#include <GUIConstantsEx.au3> #include <EditConstants.au3> $hGUI = GUICreate("Test", 500, 500) $hEdit = GUICtrlCreateEdit("Fred", 10, 10, 200, 200, $ES_READONLY) GUICtrlSetBkColor(-1, 0xFF0000) GUISetState() While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd M23 Thanks. I was kinda stupid thinking KODA will update the color or something ... My mistake ! I have another problem so i ll not post a new one. How can i make the vertical scrollbar of an edit control go down every time i send it some text (without using buttons) ? Like when u install windows updates it goes down after the last installed update and no up like the default behavior of the scrollbar from Autoit ? Link to comment Share on other sites More sharing options...
ProgAndy Posted April 18, 2009 Share Posted April 18, 2009 (edited) How can i make the vertical scrollbar of an edit control go down every time i send it some text (without using buttons) ? Like when u install windows updates it goes down after the last installed update and no up like the default behavior of the scrollbar from Autoit ?just use _GUICtrlEdit_AppendText It appends text to the edit and scrolls to the end. Edited April 18, 2009 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...
OmYcroN Posted April 18, 2009 Author Share Posted April 18, 2009 just use _GUICtrlEdit_AppendText It appends text to the edit and scrolls to the end.Thank You ! 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