static void EventFlagsToSelType(long style,
bool shiftDown,
bool ctrlDown,
- bool *is_multiple,
- bool *extended_select,
- bool *unselect_others)
+ bool &is_multiple,
+ bool &extended_select,
+ bool &unselect_others)
{
- *is_multiple = (style & wxTR_MULTIPLE) != 0;
- *extended_select = shiftDown && is_multiple;
- *unselect_others = !(extended_select || (ctrlDown && is_multiple));
+ is_multiple = (style & wxTR_MULTIPLE) != 0;
+ extended_select = shiftDown && is_multiple;
+ unselect_others = !(extended_select || (ctrlDown && is_multiple));
}
// -----------------------------------------------------------------------------
EventFlagsToSelType(GetWindowStyleFlag(),
event.ShiftDown(),
event.ControlDown(),
- &is_multiple, &extended_select, &unselect_others);
-
+ is_multiple, extended_select, unselect_others);
+
+ // + : Expand
+ // - : Collaspe
+ // * : Toggle Expand/Collapse
+ // ' ' | return : activate
+ // up : go up (not last children!)
+ // down : go down
+ // left : go to parent
+ // right : open if parent and go next
+ // home : go to root
+ // end : go to last item without opening parents
switch (event.KeyCode())
{
case '+':
EventFlagsToSelType(GetWindowStyleFlag(),
event.ShiftDown(),
event.ControlDown(),
- &is_multiple, &extended_select, &unselect_others);
+ is_multiple, extended_select, unselect_others);
if ( onButton )
{