I was using AddTool, but in one of the errors I go it said something =
about AddToolLog not being able to resolve the argument list. So I tried =
AddToolLong,thinking maybe it was getting confused. It was just my =
method of trying.
BTW, wxITEM_RADIO type does not seem to work either. The other thing I =
noticed was that the bitmaps do not alternate. I have to remove the tool =
and add it again with the right bitmap.=20
Thanks for your help.
From: Mattia Barbon [mailto:mbarbon@...]
Sent: Wednesday, February 05, 2003 1:34 PM
To: wxPerl users ML; Ismail Mutlu
Subject: Re: [wxperl-users] Tool Bar Question
On Tue, 4 Feb 2003 16:17:49 -0800 Ismail Mutlu <imutlu@...> =
> It's the newbie again!. I am trying to create some toggle buttons in a =
> toolbar with text on them(instead of bitmaps). Here is the code:
> my( $tb2 ) =3D3D =3D
> R|wxTB_TEXT );
> $tb2->AddToolLong( 5000+$i, =
> wxITEM_CHECK , 'my Short',"My Long" );
> I get:
> Variable not of type wx::Bitmap
I did not notice AddTool was changed in wxWindows, hence wxPerl only
supports the old AddTool (id, bitmap, bitmap, toggle, clientData, help1,
help2 ), and (id, bitmap, help, help); this will be fixed in wxPerl =
BTW, why do you use AddToolLong? Using ->AddTool should do the right =
if it does not then it's a bug.
Get latest updates about Open Source Projects, Conferences and News.