Jump to content
  • Advertisement
  • entries
  • comments
  • views

Sheet editor update

Sign in to follow this  


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


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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!