Re: [perl-win32-gui] GUI Builder error + button question

2000-02-24 Thread David Hiltz

   That's really funny, I finally just figured out how to use PPM and
 reinstalled the latest win32::GUI with PPM and  now my program is generating
 the exact same error:
   Can't locate auto/Win32/GUI/MenuItem/SetMenuItem.al in @INC
 (@INC contains: C:/Perl/lib C:/Perl/site/lib .) at
 C:/Perl/site/lib/Win32/GUI.pm line 452

  You need to edit your GUI.pm file and make a change to support sub-menus. 
  Aldo hopefully will include this fix in the next release.

  GUI.pm Change:

 To support Sub-menus, change GUI.pm, line 451 (for build 434)
 --- from -
  $M-{$parent}-SetMenuItemInfo(
-submenu = $M-{$parent."_SubmenuButton"}
   );
 --- to ---
  $M-{$parent}-Change(
-submenu = $M-{$parent."_SubmenuButton"}
   );
 --
  
  2) How do I enable a button that was created with the option ;-disabled
  = 1; ?

You mean through GB?

Must have existed outside of gb as -disable is not one of the current 
options.  I could add that to the next version.

-dave




[perl-win32-gui] GUI Builder error + button question

2000-02-24 Thread Ludde

I have two questions:
1) I get an error when trying to run the latest version of GUI Builder
from the archives. It returns:
--
Can't locate auto/Win32/GUI/MenuItem/SetMenuItem.al in @INC (@INC
contains: C:/Perl/lib C:/Perl/site/lib .) at
C:/Perl/site/lib/Win32/GUI.pm line 452
--
I know I've seen this issue up here before, but no solution to the
problem was provided.

2) How do I enable a button that was created with the option ;-disabled
= 1; ?

Thanks alot for reading my entire post.
-Ludde




Re: [perl-win32-gui] GUI Builder error + button question

2000-02-24 Thread David Hiltz

 David Hiltz wrote:
2) How do I enable a button that was created with the option ;-disabled
= 1; ?
  
  You mean through GB?
  
 
 No, that's a general Win32::GUI question. I'm sure I've seen how to do
 it somewhere, but finding things in the docs are currently not the
 easiest thing in the world. Believe me, I _have_ tried.

  $Win-OBJECT_NAME-Change(-disabled = 0);

  You need to also update the text so the button is refreshed (see sample
  program below):

use Win32::GUI;

$Win = new Win32::GUI::Window(
  -left   = 341,
  -top= 218,
  -width  = 226,
  -height = 163,
  -name   = "Win",
  -text   = "Window Title"
  );

$Win-Show();

$Win-AddButton(
   -text= "TEST",
   -name= "TEST",
   -left= 131.5,
   -top = 56,
   -width   = 50,
   -height  = 24,
   -disabled = 1,
  );

$Win-AddButton(
   -text= "Enabled",
   -name= "Enabled",
   -left= 36.5,
   -top = 43,
   -width   = 69,
   -height  = 24,
  );

$Win-AddButton(
   -text= "Disabled",
   -name= "Disabled",
   -left= 36.5,
   -top = 78,
   -width   = 69,
   -height  = 24,
  );

Win32::GUI::Dialog();

sub Win_Terminate {
   return -1;
}


Win32::GUI::Dialog();

sub Win_Terminate {
   return -1;
}

sub Enabled_Click {
   $Win-TEST-Change(-disabled = 0);
   $Win-TEST-Text($Win-TEST-Text);
}

sub Disabled_Click {
   $Win-TEST-Change(-disabled = 1);
   $Win-TEST-Text($Win-TEST-Text);
}




RE: [perl-win32-gui] GUI Builder error + button question

2000-02-24 Thread Thomas, Timothy B

That's really funny, I finally just figured out how to use PPM and
reinstalled the latest win32::GUI with PPM and  now my program is generating
the exact same error:
Can't locate auto/Win32/GUI/MenuItem/SetMenuItem.al in @INC
(@INC contains: C:/Perl/lib C:/Perl/site/lib .) at
C:/Perl/site/lib/Win32/GUI.pm line 452


I would love to know the solution for this!! I would hate to
have to stop using PPM and go back to my old install.
Tim


-
Tim Thomas
Unix Systems Administrator
Lockheed Martin EIS · Denver Data Center
303-430-2281 · Pager 800-545-3704
mailto:[EMAIL PROTECTED]
Pager: mailto:[EMAIL PROTECTED]

-

 -Original Message-
 From: Ludde [SMTP:[EMAIL PROTECTED]]
 Sent: Thursday, February 24, 2000 11:11 AM
 To:   [EMAIL PROTECTED]
 Subject:  [perl-win32-gui] GUI Builder error + button question
 
 I have two questions:
 1) I get an error when trying to run the latest version of GUI Builder
 from the archives. It returns:
 --
 Can't locate auto/Win32/GUI/MenuItem/SetMenuItem.al in @INC (@INC
 contains: C:/Perl/lib C:/Perl/site/lib .) at
 C:/Perl/site/lib/Win32/GUI.pm line 452
 --
 I know I've seen this issue up here before, but no solution to the
 problem was provided.
 
 2) How do I enable a button that was created with the option ;-disabled
 = 1; ?
 
 Thanks alot for reading my entire post.
   -Ludde




RE: [perl-win32-gui] GUI Builder error + button question

2000-02-24 Thread Thomas, Timothy B

I just found this in the archives
 GUI.pm Change:

 To support Sub-menus, change GUI.pm, line 451 (for build 434)
 --- from -
  $M-{$parent}-SetMenuItemInfo(
-submenu = $M-{$parent."_SubmenuButton"}
   );
 --- to ---
  $M-{$parent}-Change(
-submenu = $M-{$parent."_SubmenuButton"}
   );
 --



-
Tim Thomas
Unix Systems Administrator
Lockheed Martin EIS · Denver Data Center
303-430-2281 · Pager 800-545-3704
mailto:[EMAIL PROTECTED]
Pager: mailto:[EMAIL PROTECTED]

-

 -Original Message-
 From: Thomas, Timothy B [SMTP:[EMAIL PROTECTED]]
 Sent: Thursday, February 24, 2000 11:29 AM
 To:   '[EMAIL PROTECTED]'
 Subject:      RE: [perl-win32-gui] GUI Builder error + button question
 
   That's really funny, I finally just figured out how to use PPM and
 reinstalled the latest win32::GUI with PPM and  now my program is
 generating
 the exact same error:
   Can't locate auto/Win32/GUI/MenuItem/SetMenuItem.al in @INC
 (@INC contains: C:/Perl/lib C:/Perl/site/lib .) at
 C:/Perl/site/lib/Win32/GUI.pm line 452
 
 
   I would love to know the solution for this!! I would hate to
 have to stop using PPM and go back to my old install.
   Tim
 
 --
 --
 -
 Tim Thomas
 Unix Systems Administrator
 Lockheed Martin EIS · Denver Data Center
 303-430-2281 · Pager 800-545-3704
 mailto:[EMAIL PROTECTED]
 Pager: mailto:[EMAIL PROTECTED]
 --
 --
 -
 
  -Original Message-
  From:   Ludde [SMTP:[EMAIL PROTECTED]]
  Sent:   Thursday, February 24, 2000 11:11 AM
  To: [EMAIL PROTECTED]
  Subject:    [perl-win32-gui] GUI Builder error + button question
  
  I have two questions:
  1) I get an error when trying to run the latest version of GUI Builder
  from the archives. It returns:
  --
  Can't locate auto/Win32/GUI/MenuItem/SetMenuItem.al in @INC (@INC
  contains: C:/Perl/lib C:/Perl/site/lib .) at
  C:/Perl/site/lib/Win32/GUI.pm line 452
  --
  I know I've seen this issue up here before, but no solution to the
  problem was provided.
  
  2) How do I enable a button that was created with the option ;-disabled
  = 1; ?
  
  Thanks alot for reading my entire post.
  -Ludde




Re: [perl-win32-gui] GUI Builder error + button question

2000-02-24 Thread Ludde

David Hiltz wrote:
   2) How do I enable a button that was created with the option ;-disabled
   = 1; ?
 
 You mean through GB?
 

No, that's a general Win32::GUI question. I'm sure I've seen how to do
it somewhere, but finding things in the docs are currently not the
easiest thing in the world. Believe me, I _have_ tried.
-Ludde