modernes Posted January 31, 2005 Posted January 31, 2005 Hello, I can't seem to figure out why my combobox control won't populate. I'm using version 3.0.103.149 and it looks like that I have everything right in my code. The text file reference is a 1 line txt file with the data separated with '|'. Maybe I'm doing something wrong? $file = FileOpen("C:\some dir here\notes.txt",0) $temp = FileReadLine($file,1) $cboNotes01 = GuiCtrlCreateCombo("Please select an item...", 100, 10, 160, 21) GUICtrlSetData($cboNotes01,$temp) Is there something missing here from populating the comboBox? Thanks is advance, Modernes
skafreak_510 Posted January 31, 2005 Posted January 31, 2005 (edited) add this to the begining #include <GUIConstants.au3> Edited January 31, 2005 by skafreak_510
modernes Posted January 31, 2005 Author Posted January 31, 2005 I've added that statement already. Still can't figure it out...
CyberSlug Posted January 31, 2005 Posted January 31, 2005 Make sure $temp contains the data you think it contains..... MsgBox(4096,"debug", $temp) Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
modernes Posted January 31, 2005 Author Posted January 31, 2005 I've done the msgbox for the temp value and it is reading what it is supposed to. I decided to try and rollback my version to 3.0.102 and now it isn't recognizing the "GUIcreate" function. Arrgh!
Andre Posted January 31, 2005 Posted January 31, 2005 Hi, the 3.0.102 version does not have any GUI functions..... Andre What about Windows without using AutoIt ?It would be the same as driving a car without an steering Wheel!
modernes Posted January 31, 2005 Author Posted January 31, 2005 Hi,the 3.0.102 version does not have any GUI functions.....Andre<{POST_SNAPBACK}>Yeah...sorry about that. I just found that out. However, the temp value does in fact read the value from the text file. I checked it out with the messagebox, but it's still not populating. I'm out of ideas...
modernes Posted January 31, 2005 Author Posted January 31, 2005 Oops ...found the problem. The dropdown list/combo box, when it was clicked on, was being hidden by other controls in the gui. How do I make it so the dropdown list goes on top of the other controls?
CyberSlug Posted February 1, 2005 Posted February 1, 2005 See here: http://www.autoitscript.com/forum/index.ph...wtopic=8141&hl= Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
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