I'm trying something new in my interfaces. I have a kind of control
bar with individual buttons having both text and a glyph on each one and set
up to form a vertical toolbar. Each button when clicked opens up a dropdown
list which is basically a popup menu control. The user can then add items
by name to each dropdown list which the application automatically assigns a
common event to. The common event reads the menu item's name to distinguish
how and what it accomplishes. This much is quite easy and I've done it
before storing the item list as a dat file and loading it into a TStringList
which the application reads at startup to re-build the dropdown list as it
last was. But now I want to allow the user to add submenu items to any
dropdown item, and in turn add third level submenu items to any of them, and
then forth level submenu items to any of them, and so on building a kind of
tree view arrangement a lot like window's own Programs menu.
So what I'm looking for is a way to best store this menu structure
so that it can easily be reloaded, edited, and saved when ever necessary.
I've used a dB table hooked up to a dBTreeview to handle this type of
storage before, but for this I was thinking of xml. Has anyone else written
a structure like this to an xml file?
from Robert Meek dba Tangentals Design
_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi