Hello,
a strange thing I discovered using the visual builder and Prima version
1.12. If setting a child's owner to be a TabbedNotebook object, when
calling ->owner from the child I get.
in SomeChild
print ref $self->owner;
print ref $self->owner->owner;
"Prima::NoteBook"
"Prima::TabbedNoteBook"
I believed the tabbed notebook inherited the various methods and props,
at the moment I'm trying to encourage widgets to register themselves
into the notebook.
onCreate {
my $self= $shift;
my $notebook = $self->owner;
my $tabset = $notebook->owner;
$notebook->insert_page;
$notebook->attach_to_page( 0 , $self );
$tabset->set_tabs( @{ $tabset->tabs } , 'This Pagename' );
}
Feature , bug or has my brain turned to jelly?
Thanks
AB
Received on Tue 02 Dec 2003 - 03:01:55 CET
This archive was generated by hypermail 2.2.0 : Sat 19 Mar 2011 - 18:35:05 CET