legend Posted July 1, 2019 Share Posted July 1, 2019 (edited) I'm struggling to remove the white border around the editbox, I tried -1, but can't get it to work when i'm using bitor as well. #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <EditConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 615, 437, 192, 124) GUISetBkColor(0x222222) $Edit1 = GUICtrlCreateEdit("", 10, 10, 480, 300, BitOR($ES_AUTOVSCROLL, $ES_WANTRETURN)) GUICtrlSetBkColor($Edit1, 0x222222) GUICtrlSetData(-1, "Edit1") GUICtrlSetFont(-1, 17, 800, 0, "MS Sans Serif") GUICtrlSetColor(-1, 0x00FF00) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd What would be even better were if I could change the color of the scrollbars, to completely match the background Edited July 1, 2019 by legend Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted July 1, 2019 Moderators Share Posted July 1, 2019 legend, As shown in the Helpfile page for GUICtrlCreateEdit, the $WS_EX_CLIENTEDGE style is an extended style - so you need to make sure that it does not get applied like this: $Edit1 = GUICtrlCreateEdit("", 10, 10, 480, 300, BitOR($ES_AUTOVSCROLL, $ES_WANTRETURN), 0) 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...
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