Subclassing the ListIconGadget: Questions
Posted: Sat Jan 06, 2007 10:32 am
Hello everyone. It seems that I can't seem be in the IRC channel when someone is actually in there to get some answers so I thought I would ask here. I am attempting to take over the ListIconGadget and make it into something more. I will call it a ListPropertyGadget, because in the end I wish to make this a standalone dll for other people to use. I tire of opening a visual designer and throwing a GUI together that takes up more space than it should so here is my idea:

When it is inactive (not clicked on) the gadget looks just like any old ListIconGadget, but when you click on a cell to the right, a gadget (depending on what type you chose when you set it up) appears over it so you can edit the values just like that. When you leave focus, it will update itself in the actual gadget. The extra gadgets that you see are just for show, and does not actually reflect how the entire thing should look.
My questions are:
1. How does one change the height/width of the cell so that when a gadget pops up over it, it is seamless.
2. How does one tell which cell is selected? This is important if I am to make the correct gadget appear over the right cell when it is supposed to.
3. I do have some questions about turning this entire project into a standalone dll, but that will come later. I want to get the thing working first before I do any of that.
Thanks for the help!
DG

When it is inactive (not clicked on) the gadget looks just like any old ListIconGadget, but when you click on a cell to the right, a gadget (depending on what type you chose when you set it up) appears over it so you can edit the values just like that. When you leave focus, it will update itself in the actual gadget. The extra gadgets that you see are just for show, and does not actually reflect how the entire thing should look.
My questions are:
1. How does one change the height/width of the cell so that when a gadget pops up over it, it is seamless.
2. How does one tell which cell is selected? This is important if I am to make the correct gadget appear over the right cell when it is supposed to.
3. I do have some questions about turning this entire project into a standalone dll, but that will come later. I want to get the thing working first before I do any of that.
Thanks for the help!
DG
