When trying to run this script I got the following error
Can't locate object method "new" via package "CardLayout" at Cardlayout.pl line 12.

Line 12 = $card1 = new CardLayout($Window, "main");

What is wrong ?

TIA,

Jorn

p.s. I placed CardLayout.pm in the directory: c:\perl\site\lib\win32\GUI




-----Oorspronkelijk bericht-----
Van:    Mike Kangas <[EMAIL PROTECTED]> [SMTP:Mike Kangas <[EMAIL PROTECTED]>]
Verzonden:      vrijdag 8 oktober 1999 13:23
Aan:    gs_smtp2vines@rabolan_svc_20@rabolan["Perl_GUI newsgroup" 
<[EMAIL PROTECTED]>]
Onderwerp:      [perl-win32-gui] CardLayout manager upgrade.

 << Bestand: CardLayout.pl >> << Bestand: CardLayout.pm >> << Bestand: Headers.822 >> 
A while back I was asked if the Cardlayout manager could be set up to
used with popup windows. No before and yes now. There is actually
documentation in the .pm file this time. :o)

What changed:
  the constructor: takes the window object and the base card name. (cuts
down on the amount of add() declarations later. will probably do this
for the gridlayout as well)

  the add function: only needs the widget name and card name.

with these changes you can create a new cardlayout object for each
window. i attached a sample script and the new module.
Have fun.

P.S. - If anyone has trouble with the documentation go ahead and rewrite
or modify it please. I am a coder not a tech writer.
--
Michael Kangas
[EMAIL PROTECTED]




Reply via email to