Sign in to follow this  
Followers 0
modernes

Populate ComboBox problem

9 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

add this to the begining

#include <GUIConstants.au3>
Edited by skafreak_510

Share this post


Link to post
Share on other sites

I've added that statement already. Still can't figure it out...

Share this post


Link to post
Share on other sites

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! :lmao:

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

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... :lmao:

Share this post


Link to post
Share on other sites

Oops :lmao: ...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?

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0