delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/02/12/12:26:05

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <3C694EAE.819D44CE@pandora.be>
Date: Tue, 12 Feb 2002 18:19:42 +0100
From: Jurgen Defurne <jurgen DOT defurne AT pandora DOT be>
Organization: LinuxIdee
X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.16-686 i686)
X-Accept-Language: en,nl
MIME-Version: 1.0
Newsgroups: comp.lang.perl.tk
To: cygwin AT cygwin DOT com
Subject: Problem with menu configuration in Cygwin

Dear lists,

I send this to comp.lang.perl.tk and cygwin AT cygwin DOT com because I think
it is necessary for both to know the problem I have.

I have isolated my problem to the following code :

use strict;
use warnings;

use Tk;

my $main;
my $menu;

$main   = MainWindow->new;
$menu   = $main->Menu(-type => 'menubar');

$main->configure(-menu => $menu);
$menu->command(-label => 'File', -state => 'disabled');

MainLoop;

Platforms :
- Cygwin 1.3.9 + Cygwin Perl (5.6.1) + Tk800.23 + Windows NT patch 6
- Debian Linux testing + Perl 5.6.1 + Tk800.23

When I run this code on Linux, it does what it is supposed to do : the
menu button should be greyed out. When I run this code under Cygwin
however, the button is disabled in the sense that it does not popup a
menu or execute a command, but the only states that it can enter are
'normal' and 'active'. It seems impossible to change the attributes of
the menu item.

I can get it working via the old way, Menubuttons in a frame can be
manipulated at will, but Menubuttons or menu entries in a Menu do not
seem to change their attributes (their behaviour is allright).

Since I have two possibilities to get this to work, this is not really a
blocking factor, but it takes some more work to build my system the old
way and manipulate using pack.

Regards,

Jurgen Defurne
jurgen DOT defurne AT pandora DOT be

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019