On 1/8/07, Hakki Dogusan <[EMAIL PROTECTED]> wrote:
> Hi,
>
> (WinXP, wx280, wxlua280)
>
> pp = wx.wxPanel(frame, wx.wxID_ANY)
> ww = pp:DynamicCast("wxControl")
>
> fails. Do you know why?
wxPanel is derived from wxWindow which is derived from a wxObject.
wxControl is derived from wxControlBase which is derived from wxWindow.
You can only cast an object to a class it's been derived from so this
works for both.
ww = pp:DynamicCast("wxWindow")
oo = pp:DynamicCast("wxObject")
Regards,
John Labenski
ps. wxLua does not use wxControlBase since it's only an implementation
detail and there's no use in having it.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
wxlua-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxlua-users