(dcl_Control_SetSingleExpanded unclear

Started by Jim Short, December 10, 2008, 05:40:37 PM

Previous topic - Next topic

Jim Short

(dcl_Control_SetSingleExpanded <CONTROL> NewValue [as Boolean])

Is:
If this property is set, the control allows only one item at a time to be expanded.

Better:
If newValue = T the control allows only one item at a time to be expanded.
If newValue = NIL the control allows multiple items at a time to be expanded.

NewValue is case sensitive

Bug:
When new value = T, selecting next node may skip a node and select 2nd node below.

Jim
Jim Short

owenwengerd

Quote from: Jim Short on December 10, 2008, 05:40:37 PM
Bug:
When new value = T, selecting next node may skip a node and select 2nd node below.

Can you provide more detail?

Jim Short

T or NIL Case sensitive
Went True, right-arrow will expand multiple nodes.
When True, supposed to expand only one node at a time on single click.
If multiple nodes expanded, clicking on plus mark of another collapsed node will expand it and close the previously expanded node, leaving the rest of the expanded nodes alone.
If unselected, a single click on plus mark selects node.
If unselected, a single click on image, or label, expands node and closes previously expanded node.
If already selected, single click on plus mark, image, or label, toggles expanded state.
If one selects labels from bottom up the clicked label expands and keeps focus.
If one selects from top down, the first node expands and keeps focus.
Clicking the label on the second node, expands the third and it keeps focus.
Clicking the 4th node expands it and focus moves to its second child.
Clicking on the fifth node expands it and focus moves to its third Child.
Jim Short

owenwengerd

I've done a bit of work on this for Beta 5. The Single Expanded property was renamed to Single Click Expand, and its description updated to correctly document its function. FWIW, I rewrote the TreeView sample so I had a testbed to use while I was working on this issue.

Jim Short

Owen, Looks good, but I did not test yet.

Please note that selecting Single Click Expand in the control browser methods tree does not link to help page.

Thanks for fixing tab control so it displays controls on correct pages.

Jim
Jim Short

BazzaCAD

Quote from: owenwengerd on December 14, 2008, 10:37:47 PM
I've done a bit of work on this for Beta 5. The Single Expanded property was renamed to Single Click Expand, and its description updated to correctly document its function. FWIW, I rewrote the TreeView sample so I had a testbed to use while I was working on this issue.

What happened to the new Tree sample ?
a.k.a.
Barry Ralphs
barryDOTralphsATgmailDOTcom

owenwengerd

Quote from: BazzaCAD on January 26, 2009, 10:38:34 PM
What happened to the new Tree sample ?

It's in the Samples folder of the last few beta builds.