You might try ref() or in other contexts UNIVERSAL::isa(). These work with
the Perl types, not the wxWindow types, but should be sufficient for most
uses.
mma
> -----Original Message-----
> From: wxp...@li...
> [mailto:wxp...@li...]On Behalf Of Graciliano
> M. P. (Virtua Sites)
> Sent: Friday, July 19, 2002 4:34 PM
> To: wxp...@li...; Mattia Barbon
> Subject: [wxperl-users] Perl 5.8
>
>
> Mattia,
>
> I have compiled wxPerl with Perl v5.8 and every thing are OK.
>
> One quetion, how can I get the type of a $object. For example,
> to create a
> frame we can past a parent of type Wx::Window. How I can chek if
> the object
> of the parent are Wx::Window before send to the frame?! In wxWindows I can
> do something like this:
>
> bool tmp = obj->IsKindOf(CLASSINFO(wxFrame));
>
> ... but the function IsKindOf wasn't found in wxPerl.
>
> Graciliano M. P.
>
>
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> wxperl-users mailing list
> wxp...@li...
> https://lists.sourceforge.net/lists/listinfo/wxperl-users
>
|