dabus Posted March 23, 2008 Posted March 23, 2008 (edited) Here's an example: $sGui = GUICreate('', 100, 100, 0, 0) $sButton1 = GUICtrlCreateButton('DE', 40, 40, 20, 20) GUICtrlSetTip($sButton1, 'Fault') GUISetState(@SW_SHOW, $sGui) _TestGui() GUIDelete($sGui) $sGui = GUICreate('', 100, 100, 0, 0) $sButton1 = GUICtrlCreateButton('DE', 40, 40, 20, 20) GUISetState(@SW_SHOW, $sGui) _TestGui() GUIDelete($sGui) Func _TestGui() $aGui = GUICreate('', 100, 100, 200, 0) $aCombo1 = GUICtrlCreateCombo('', 10, 10, 50, 300) $aButton1 = GUICtrlCreateButton ( 'exit', 10, 50, 50, 20) GUISetState(@SW_SHOW, $aGui) While 1 $aMsg = GUIGetMsg() Switch $aMsg Case $aButton1 GUIDelete($aGui) ExitLoop EndSwitch Sleep(10) WEnd EndFunc In the first run, I can't open the combobox. In the second run, it's possible. The only diff between the runs is the tip in the first one. Can anyone confirm? Is it a bug? I'm running the latest stable release. Edited March 24, 2008 by SmOke_N No need to erase the question for others sakes when searching
martin Posted March 23, 2008 Posted March 23, 2008 Hi there. Here's an example: $sGui = GUICreate('', 100, 100, 0, 0) $sButton1 = GUICtrlCreateButton('DE', 40, 40, 20, 20) GUICtrlSetTip($sButton1, 'Fault') GUISetState(@SW_SHOW, $sGui) _TestGui() GUIDelete($sGui) $sGui = GUICreate('', 100, 100, 0, 0) $sButton1 = GUICtrlCreateButton('DE', 40, 40, 20, 20) GUISetState(@SW_SHOW, $sGui) _TestGui() GUIDelete($sGui) Func _TestGui() $aGui = GUICreate('', 100, 100, 200, 0) $aCombo1 = GUICtrlCreateCombo('', 10, 10, 50, 300) $aButton1 = GUICtrlCreateButton ( 'exit', 10, 50, 50, 20) GUISetState(@SW_SHOW, $aGui) While 1 $aMsg = GUIGetMsg() Switch $aMsg Case $aButton1 GUIDelete($aGui) ExitLoop EndSwitch Sleep(10) WEnd EndFunc In the first run, I can't open the combobox. In the second run, it's possible. The only diff between the runs is the tip in the first one. Can anyone confirm? Is it a bug? I'm running the latest stable release. Having 2 controls with the same variable name is not a good idea, but other than that it works for me. What do you mean by "can't open the combobox"? I can type into them ok. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
Moderators SmOke_N Posted March 24, 2008 Moderators Posted March 24, 2008 Please don't erase your posts because it causes issues for people when they do a search and can't even tell if the original question has anything to do with an issue they are currently having. I don't know what the original thread title was so I improvised. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
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