I'm trying to use an XML file to hold the properties
of the windows in my Perl script.  (No major reason
for this, I just throught it would be a cool way to
learn how to use XML with Perl)

However, it seems that if I store the window style in
a variable, and try to use the variable to set the
window style, no style is applied to the window when
it is created.  If I hard code the window style, then
it appears correctly.

Here is the basic layout of the XML file:
<windows>
  <window type=3D"Window Name">
    <property type=3D"name"     value=3D"Window Name"/>
    <property type=3D"icon"     value=3D"Icon"/>
    <property type=3D"version"  value=3D"Version Number"/>
    <property type=3D"modified" value=3D"Modified Date"/>
    <property type=3D"title"    value=3D"Window Title"/>
    <property type=3D"style"    value=3D"Window Styles"/>
    <property type=3D"left"     value=3D"300"/>
    <property type=3D"top"      value=3D"200"/>
    <property type=3D"width"    value=3D"350"/>
    <property type=3D"height"   value=3D"250"/>
  </window>
</windows>

The value for the Window Styles would be:
"WS_CAPTION | WS_SYSMENU" (or something similar).

$WindowHandle =3D new GUI::DialogBox (
  -name    =3D> $Hash{name},
  -title   =3D> $Hash{title},
  -style   =3D> $Hash{style}, # No style is applied
  -style   =3D> WS_CAPTION | WS_SYSMENU, # Works fine
  -left    =3D> $Hash{left},
  -top     =3D> $Hash{top},
  -width   =3D> $Hash{width},
  -height  =3D> $Hash{height},
);=20

Is this something that just cannot be done?  Or do I
need to do something differently?  Does anyone have
any suggestions?

Thanks for your help,
Jeremy Blonde
[EMAIL PROTECTED]

__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail =96 Free email you can access from anywhere!
http://mail.yahoo.com/



Reply via email to