Version 2.6.0 of the free & open-source utility library Tektosyne is
now available:
http://www.kynosarges.de/Tektosyne.html
This library used to be known as "Toolbox .NET" but I changed the name
starting with this release for greater uniqueness and pretentiousness.
The full story is on the home page.
The biggest new feature in this release are my mini-XAML variants,
ControlBuilder and MenuBuilder. They create Windows Forms controls
and menus, respectively, from XML files. Actually, the XML data is
first stored in "control templates" or "menu templates" from which the
actual controls or menus are created at a later time -- multiple times
if required, without having to re-read the XML files.
The included demo app uses embedded XML files to create its main menu
and a demo dialog. The XML formats are documented in and validated
against schemas which are designed to provide IntelliSense in VS.NET
2003. Here are two samples of how the XML template files look like:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<Controls xmlns="http://www.kynosarges.de/Tektosyne.Controls">
<Dialog Name="BuilderDialog" Text="ControlBuilder Dialog"
ClientWidth="20" ClientHeight="16"
HelpRequested="OnHelpRequested" StandardButtons="OK">
<Controls>
<GroupBox Text="Pretty GroupBox" Left="1" Top="1" Width="8"
Height="3.5">
<Controls>
<Label Name="EmptyLabel" Left="1" Top="1.5" Width="6" />
</Controls>
</GroupBox>
<ListView Left="10" Top="1" Width="9" Height="6">
<Columns>
<ColumnHeader Text="Name" Width="3" />
<ColumnHeader Text="Value" Width="4" />
</Columns>
</ListView>
<Button Text="Click Me!" Left="2" Top="6" Width="6"
Click="OnClickMe" />
<TextBoxLabel Text="Plain:" Left="1" Top="9" Width="2.5" />
<TextBox Text="Text!" Left="3.5" Top="9" Width="6" />
<TextBoxLabel Text="Rich:" Left="10" Top="9" Width="2.5" />
<RichTextBox Rtf="{\rtf {\i Text!}}" Left="12.5" Top="9"
Width="6" />
<TextBoxLabel Text="Number:" Left="1" Top="11" Width="4" />
<NumericUpDown Name="Value" Left="5" Top="11" Width="3"
Minimum="1" Maximum="20" TextAlign="Right" />
</Controls>
</Dialog>
</Controls>
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<Menus xmlns="http://www.kynosarges.de/Tektosyne.Menus">
<Menu Name="MainMenu">
<MenuItems>
<MenuItem Text="&General">
<MenuItems>
<MenuItem Text="Precision &Timer" Shortcut="CtrlT"
Click="OnPrecisionTimer" />
</MenuItems>
</MenuItem>
<MenuItem Text="&Mathematics">
<MenuItems>
<MenuItem Text="&A-Star" Shortcut="CtrlA"
Click="OnAStar" />
<MenuItem Text="&Coverage" Shortcut="CtrlC"
Click="OnCoverage" />
</MenuItems>
</MenuItem>
<MenuItem Text="&WinForms">
<MenuItems>
<MenuItem Text="&Builder Dialog" Shortcut="CtrlB"
Click="OnBuilderDialog" />
<MenuItem Text="&Rich Text Dialog" Shortcut="CtrlR"
Click="OnRichTextDialog" />
</MenuItems>
</MenuItem>
</MenuItems>
</Menu>
</Menus>
--
http://www.kynosarges.de