No Subject
The problem is that style is not a string, it is a number. $style = "WS_CAPTION | WS_SYSMENU"; is not the same as $style = WS_CAPTION | WS_SYSMENU; The first (incorrect) format is a string, the second is a number. This problem has nothing to do with XML, by throwing it in your question you are confusing the issue. Indy Singh IndigoSTAR Software -- www.indigostar.com - Original Message - From: Jeremy Blonde <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, July 10, 2000 11:11 PM Subject: [perl-win32-gui] Using XML file for window layout > 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: > > > > > > > > > > > > > > > > The value for the Window Styles would be: > "WS_CAPTION | WS_SYSMENU" (or something similar). > > $WindowHandle = new GUI::DialogBox ( > -name=> $Hash{name}, > -title => $Hash{title}, > -style => $Hash{style}, # No style is applied > -style => WS_CAPTION | WS_SYSMENU, # Works fine > -left=> $Hash{left}, > -top => $Hash{top}, > -width => $Hash{width}, > -height => $Hash{height}, > ); > > 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 - Free email you can access from anywhere! > http://mail.yahoo.com/ >
No Subject
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: 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/
No Subject
> -Original Message- > From: Roberto Guerra [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 05, 2000 12:06 PM > To: [EMAIL PROTECTED] > Subject: [perl-win32-gui] Errors with Dynaloader.pm > > > Hi! > > I tried to run a sample program of the win32_gui samples, and > I get this > compiling error. It happens with every one of the samples. > I wonder if I'm missing some modules, or if this is a bug. > Can someone clue me as to what I'm doing wrong? > The path's shown in the error are correct, so it is obvious > (to me) that > the program finds the proper path's. > I'm not very good with Perl yet, and in need of guidance. > The error message is as follows > > "D:\win32-gui\samples>perl hello.pl > Can't load 'D:/Perl/site/lib/auto/win32/gui/gui.dll' for module > win32::gui: load_file: One of the files needed to run this application > cannot be found at D:/prl/lib/Dynaloader.pm line 200. Did you cut/paste this in, or is this a typo? This might be your problem. > Compilation failed in require at hello.pl line 8. > BEGIN failed compilation aborted at hello.pl line 8." > > I'm working with a pentium 166Mhrz, 64MB of RAM and Windows > 98, & I have > successfully ran some other Perl programs with my > installation of Perl. Need to know what Win32 Perl you are using and what build. (i.e. ActiveState 521 or whatever.) > > Please Help! > > Thanks in advance. > > Roberto. >
No Subject
> -Original Message- > From: Roberto Guerra [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 05, 2000 12:06 PM > To: [EMAIL PROTECTED] > Subject: [perl-win32-gui] Errors with Dynaloader.pm > > > Hi! > > I tried to run a sample program of the win32_gui samples, and > I get this > compiling error. It happens with every one of the samples. > I wonder if I'm missing some modules, or if this is a bug. > Can someone clue me as to what I'm doing wrong? > The path's shown in the error are correct, so it is obvious > (to me) that > the program finds the proper path's. > I'm not very good with Perl yet, and in need of guidance. > The error message is as follows > > "D:\win32-gui\samples>perl hello.pl > Can't load 'D:/Perl/site/lib/auto/win32/gui/gui.dll' for module > win32::gui: load_file: One of the files needed to run this application > cannot be found at D:/prl/lib/Dynaloader.pm line 200. Did you cut/paste this in, or is this a typo? This might be your problem. > Compilation failed in require at hello.pl line 8. > BEGIN failed compilation aborted at hello.pl line 8." > > I'm working with a pentium 166Mhrz, 64MB of RAM and Windows > 98, & I have > successfully ran some other Perl programs with my > installation of Perl. Need to know what Win32 Perl you are using and what build. (i.e. ActiveState 521 or whatever.) > > Please Help! > > Thanks in advance. > > Roberto. >
No Subject
I can't get "make" to make the makefile. MakeMaker.pm is installed. I type "perl -V:make " and get make ='nmake'. Can someone please help me get this going.
[perl-win32-gui] (no subject)
unsubscribe
No Subject
unsubscribe
[perl-win32-gui] (no subject)
unsubscribe
No Subject
unsubscribe
[perl-win32-gui] (no subject)
unsubscribe
No Subject
unsubscribe
[perl-win32-gui] (no subject)
unsubscribe
[perl-win32-gui] (no subject)
unsubscribe
No Subject
hi Paul, please excuse my over-eager enthusiasm :-) as you were! >> From: christopher paul [mailto:[EMAIL PROTECTED]] >> >> would be cool to see some things like "how to call up a color >> picker" a "file-open/save dialog" .. also eric's dbgrid would >> make a great chapter, if he's keen. >> > >Thanks for the encouragement. I'll certainly look at colour pickers and >file dialogs - but I haven't got to the point where *I* know how to use >them yet, so I'll take things in the order I discover them for now. >
No Subject
I installed Win32::GUI using install.bat (from Aldo's site). Everything appeared normal. when I try an example, all I get is the message: "Cannot find perl.dll module ..." Well, my system doesn't HAVE a perl.dll module, it's called perl.exe. I've got Activestate build 509. what's wrong? -dave naden