tacao,
That's nice. I had no idea how to organize the widgets and your suggestion
will certainly meet the need. I think that I'll just use a horizontal box
sizer for the TreeCtrl and ListCtrl rather than a splitter window. There's no
need to resize the two windows.
The one needed addition is a second add button for top-level categories. It
might also make it easier to provide add/delete buttons for each side; that
is, one set for categories/sub-categories and the other set for components.
That would eliminate a potential source of confusion and error.
Excellent thinking. Thank you very much.
Rich
···
On Fri, 25 Nov 2005, E. A. Tacao wrote:
+---------------------------------------+
> ToolBar (buttons): Add, Delete |
+-------------------+-------------------+
> Splitter (left): | Splitter (right): |
> TreeCtrl | ListCtrl |
+-------------------+-------------------+TreeCtrl is the tree of categories; the ListCtrl lists the components under
the category that's currently selected on the treectrl.If the tree has focus, clicking on "Add" will add a sub-category to the
tree under the category currently selected on the tree. If the ListCtrl has
focus, a new component will be added to the category/sub-category currently
selected. "Delete" has an analogous behavior.To make things fancier you could further implement drag'n'drop operations,
context menus, etc.
--
Richard B. Shepard, Ph.D. | Author of "Quantifying Environmental
Applied Ecosystem Services, Inc. (TM) | Impact Assessments Using Fuzzy Logic"
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863