Hello everyone,
I'm trying to access a label located inside a GroupBox inside the
first tab of a Tabbed Notebook in order to modify its text. I can't
address the label successfully.
I have a button inside the same first tab (but not inside the
GroupBox) and when I press on it the subroutine to change the label is
called. It gives the error message:
change Label !
Unknown widget or method "Prima::TabbedNotebook::Tab1" at ./tN-1.pl
line 21
The code is:
use Prima qw(Application Notebooks);
use Prima::VB::VBLoader;
my $form = Prima::VBLoad('./tN-1.fm',
'RButton' =>
{
onClick => \&changeLabel
},
);
$form->execute;
sub changeLabel
{
print "change Label !\n";
$form->TabbedNotebook1->Tab1->GroupBox1->ALabel->text("Label is
changed"); }
Please note that in this incarnation I tried adding 'Tab1' (which is
the name of the first tab). Otherwise the following gives the same
error:
$form->TabbedNotebook1->GroupBox1->ALabel->text("Label is changed");
The label is indeed named ALabel.
Any help is very much appreciated,
Al
Received on Sat 08 Oct 2005 - 17:15:40 CEST
This archive was generated by hypermail 2.2.0 : Sat 19 Mar 2011 - 18:35:06 CET