Jump to content
  • Advertisement
  • entries
    707
  • comments
    1173
  • views
    435837

Sheet editor update

Sign in to follow this  
Programmer16

186 views

Ok, I've got the sheet editor design all done. I was right and Raymond didn't want to go with the hacked version (thank god.) So, instead we're just sticking with a regular listbox and text.

Why is it that windows has all of these controls "built in" with no obvious support for anything? I can kind of understand the not inherently being able to drag items around in a listview. I don't understand at all why dragging items around isn't put into the control as a feature. Wouldn't it have been a better idea to include a common feature and be able to turn it off than to have not included it and make the user code it by hand?

Also, listbox doesn't inherently deslect items. Seriously, when the user clicks in the client rect of the listbox and isn't clicking an item, he obviously wants to deselect. Another commonly required feature that isn't in their.

Ofcourse, I may just be blind and missing it.

Edit: Argh, I thought I had it figured out. I am just doing:

String CurItem = lboxFrames.SelectedItem.ToString();

int nIndex = lboxFrames.FindString(CurItem, -1);
if(nIndex == -1)
lboxFrames.ClearSelected();
else
lboxFrames.SetSelected(nIndex, true);

inside of SelectedIndexChanged() and I keep getting a stack overflow on SetSelected() even though the index is correct.
Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

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
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!