OpenDCL Forums

OpenDCL => Studio/Dialog Editor => Topic started by: Jim Short on December 10, 2008, 05:40:37 PM

Title: (dcl_Control_SetSingleExpanded unclear
Post by: Jim Short on December 10, 2008, 05:40:37 PM
(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
Title: Re: (dcl_Control_SetSingleExpanded unclear
Post by: owenwengerd on December 11, 2008, 11:23:17 AM
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?
Title: Re: (dcl_Control_SetSingleExpanded unclear
Post by: Jim Short on December 11, 2008, 05:43:53 PM
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.
Title: Re: (dcl_Control_SetSingleExpanded unclear
Post by: 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.
Title: Re: (dcl_Control_SetSingleExpanded unclear
Post by: Jim Short on December 15, 2008, 06:43:30 AM
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
Title: Re: (dcl_Control_SetSingleExpanded unclear
Post by: BazzaCAD on January 26, 2009, 10:38:34 PM
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 ?
Title: Re: (dcl_Control_SetSingleExpanded unclear
Post by: owenwengerd on January 26, 2009, 10:52:22 PM
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.