|
-
Jul 19th, 2009, 03:00 PM
#1
Thread Starter
New Member
[RESOLVED] Changing object name in Combo Box.
I was just starting to learn how to use classes today and I think I might have a vague handle on them.
Anyways, I was using a class to generate troops (as objects, since I needed various statistics tied to each individual one) in an army for sort of a basic medieval-type game I was creating and adding them to a combo box.
It all works perfect and the index holds my object and I can call data from it, etc., my only issue is with the aesthetics of my result.
All of the troops I add to the combo box as objects appear in the dropdown list as "WarProject.Soldier", the name of the object. This is obviously not something an end-user would understand or want to see. I have no idea how to change what an object appears as in the combo box.
Anyone know how to do this?
I don't think helping with this requires looking at my code at all (since all I need is for someone to help me figure out how to change what my objects are appearing in the combo box as), but let me know if you do need to see it for some reason.
Help appreciated!
Last edited by CaptainDingo; Jul 19th, 2009 at 03:07 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|