OmYcroN 0 Report post 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 ? Share this post Link to post Share on other sites
Jos 1,291 Report post 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. Visit the SciTE4AutoIt3 Download page for the latest versions - Beta files How to post scriptsource Forum Rules Live for the present, Dream of the future, Learn from the past. Share this post Link to post Share on other sites
Melba23 2,628 Report post 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._______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 Share this post Link to post Share on other sites
OmYcroN 0 Report post 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 ? Share this post Link to post Share on other sites
ProgAndy 66 Report post 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 Share this post Link to post Share on other sites
OmYcroN 0 Report post Posted April 18, 2009 just use _GUICtrlEdit_AppendText It appends text to the edit and scrolls to the end.Thank You ! Share this post Link to post Share on other sites