cramaboule Posted February 8, 2009 Share Posted February 8, 2009 (edited) Hello,Here is a good one :I have to say first that my purpose is to have "flat" Input box or "flat" Edit box, that CAN be selected but not changed (that's why I use the $ES_READONLY). I found (by mistake !!!!) the 0x00100000 to make it flat!So to add some black surrounding I put a black background colour to the GUI, BUT (there is always a BUT !!!) I like to have some grey (looks nicer !) (made with the GUICtrlCreateLabel) on the bottom to put 1 button (Actually, in my bigger script I'll put 2 !)-> The Problem: well,... I cannot click on the button if there is the GUICtrlCreateLabel-> Question 1: How can I fix this ?(Either to add a black surrounding to the Edit ctrl or to fix the clicking problem or .....)-> Question 2: Do you think it's a bug ?Here is a picture:I spent some times to look on the problem can't figured out !expandcollapse popup#include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <EditConstants.au3> #include <ButtonConstants.au3> Example1() Func Example1() Local $msg ,$i , $j= 15 , $Esp=1 , $max = 7 GUICreate("My GUI",92, ($j* ($max - 1))+21) GUISetBkColor(0x000000) GUICtrlCreateLabel("", 0 , ($j*($max-1))+$Esp , ($j*($max-1))+21 , 200) GUICtrlSetBkColor(-1, 0xD4D0C8) For $i = 1 to $max -1 GUICtrlCreateInput ($i, 1,($j* ($i - 1))+$Esp , 90, $j-$Esp, $ES_READONLY, 0x00100000) GUICtrlSetBkColor(-1, 0xffff00) ; yellow Next $lp=GUICtrlCreateButton("lp", 20,($j* ($i - 1))+$Esp,20,20,-1,$WS_EX_TOPMOST ) GUISetState(@SW_SHOW) While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit Case $msg = $lp MsgBox(0,"test","test") EndSelect WEnd GUIDelete() EndFunc ;==>Example1 Cramaboule.Edit: Forgot to put the code !!! Edited February 8, 2009 by cramaboule My Autoit programs: MAC Address - - Delete Temp Files - - Ping Test - - Play Video with VLC full screen dual monitors - - Set IP - - Pics Converter - - AutoUpdater - - CPU Usage - - Ending Script Nicely - - GDI+ GUI crossfades (slide transitions) - - Beamer - - Search and Search in Files - - Silent Ninite Others: Export Icons into Dll - - My website Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted February 8, 2009 Moderators Share Posted February 8, 2009 cramaboule,Not a good one, but (yawn) a very old and often asked one!Disable the label using $GUI_DISABLE.AutoIt does not accept overlapping active controls. I assume that when it gets the mouse coordinates from a click it cannot decide upon which control to activate.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...
cramaboule Posted February 8, 2009 Author Share Posted February 8, 2009 cramaboule,Not a good one, but (yawn) a very old and often asked one!Disable the label using $GUI_DISABLE.AutoIt does not accept overlapping active controls. I assume that when it gets the mouse coordinates from a click it cannot decide upon which control to activate.M23Thanks, It works !!! My Autoit programs: MAC Address - - Delete Temp Files - - Ping Test - - Play Video with VLC full screen dual monitors - - Set IP - - Pics Converter - - AutoUpdater - - CPU Usage - - Ending Script Nicely - - GDI+ GUI crossfades (slide transitions) - - Beamer - - Search and Search in Files - - Silent Ninite Others: Export Icons into Dll - - My website 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