I've looked thoroughly through the entire archive for this list, and haven't seen these problem solutions resolved. The issues I'm having are all related to a treeview object, with the -checkboxes => 1 option.
- For some reason, enabling checkboxes screws up the horizontal scrolling of the object. Despite having enough space for the object, the horizontal scrollbar appears, with a massive amount of space available to scroll (it's as if the object is now several thousand pixels wide, of entirely blank space). This is mostly a cosmetic issue, but let's face it: it looks awful, and makes it hard to scroll horizontally when you really need to. Is there a way to prevent this, or at the very least disable the horizontal scrollbar entirely? - Identifying when a checkbox has been clicked. I noticed some discussion about how to detect this, and it seems there isn't an _ItemCheck event for treeview nodes. Ok. I would settle for using TreeView_Click() event, but the problem is that the event is triggered *before* the item's state is changed. So any logic I perform on the click event will be wrong, since it's looking at the tree before the action you just performed is taken into account. Is there a way to trigger an event when an item is checked, as opposed to right before it? - Anyone have any luck with the HitTest() function? It seems to only work sporadically, and makes it impossible for any sort of context-sensitive actions (like a context menu on right-click) without it. When I call it, I sometimes get the node I clicked on, but usually not. Any suggestions or answers for these questions would be much appreciated. Thanks! ---------------------------- Ed Sprenger Enterprise Systems Management Internet Operations Fleetboston Financial