Building GUIs with Win32::GUI::XMLBuilder
By Blair Sutton, November 01, 2004
Blair wrote Win32::GUI::XMLBuilder as a way to build simple Win32 GUI interfaces in Perl while keeping the visual design separate from the inner workings of the code. In this article, he describes how to build a simple Win32::GUI::XMLBuilder application and also provides a simple template for such applications.
November, 2004: Building GUIs with Win32::GUI::XMLBuilder
<GUI>
<Window height='90'>
<Label
text='Push the button below several times'
height='%P%->ScaleHeight/2'
align='center'
/>
<Button
text='Push me!'
top='%P%->ScaleHeight/2'
height='%P%->ScaleHeight/2'
onClick='sub {
$_[0]->Text($_[0]->Text eq "Thanks" ? "Push Me!"
: "Thanks")
}'
/>
</Window>
</GUI>
Example 1: A window with Label and Button widgets overriding default values.