Gene Posted October 17, 2005 Posted October 17, 2005 (edited) Edited typos in the problem statement and a sample INI. GeneIn this timer GUI I have provision for multple users, each user may have many projects. They track their times for the projects per user. The users enter all user names and projects. On the window are two ComboBoxes, one for users and one for projects. I wish to "remember" from one session to the next the last user name and the last project. I'm currently "remembering" those items in a common INI file along with the complete list of users. And I'm able to make both ComboBoxes (CB) come up wth the two items in focus. I'm also "remembering" the projects and other individual settings in an INI file named for that user, mine would be gene.ini.The problem is they're not the "real" listitems. When the downdelta of the names CB is clicked the "real" name and the rest of the listitems are shown with the unreal name. I call it an unreal name because while it is displayed, if you click the downdelta of the projects CB, there are no projects listed, if you reselect the same or a different name and then if you click the downdelta of the projects CB, whatevet projects are associated with that name appear. What I would like to have happen is that on startup the last user and last project are displayed in focus in the CBs as now happens, and if the user CB is clicked I would like to see no duplications in the name list, further if the projects CB is clicked I would like to see the projects of that user in the list.Here are sample contents of the common INI:[Names]NameList=Gene|Phil|Sue|Jane|Dan:[style_Location]LastName=GeneLastActivity=Reading 01==================Here are sample contents of the user INI:[Name]KeyName=Gene:[style_Location]SoundVol=96Style=2Location=T:[Reading 01]Trial00=Reading 01Trial01=5.2378Trial02=6.8921[Reading 02]Trial00=Reading 02Trial01=4.9534Trial02=7.0011============Some of this may be superflous and I'm positive it could be more elegant, but except for the things I complained about, it works. It's also my first GUI.Suggestions please...GeneI edited most of this out of existence. I don't know that I changed anything specific, but at some point the default part of GUICtrlSetData ( controlID, data [, default] ) began working. Edited October 24, 2005 by Gene [font="Verdana"]Thanks for the response.Gene[/font]Yes, I know the punctuation is not right...
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