Hi all. I'm trying to fit too many icons into one toolbar so I'd like to break it up into two toobars. Here's what I've done:

$this->CreateToolBar(wxNO_BORDER|wxHORIZONTAL|wxTB_FLAT, $ID_TOOLBAR1);
 my $toolbar1 = $this->GetToolBar();
$toolbar1->AddTool( $ID_QUIT, "exit", Wx::Bitmap->new($ProgramPath."exit.png", wxBITMAP_TYPE_PNG), wxNullBitmap, wxITEM_NORMAL, "exit" );
.

.

.

$toolbar1->Realize();
$this->CreateToolBar(wxNO_BORDER|wxHORIZONTAL|wxTB_FLAT, $ID_TOOLBAR2);
my $toolbar2 = $this->GetToolBar();
$toolbar2->AddTool( $ID_APPLY_IDENT, "apply trig", Wx::Bitmap->new($ProgramPath."apptrig.png", wxBITMAP_TYPE_PNG), wxNullBitmap, wxITEM_NORMAL, "apply trig\nidentities" );
.

.

.

$toolbar2->Realize();
.
.
.


This results in only one toolbar being displayed with all icons appearing in it. How might I go about splitting them up into two?


Reply via email to