Hi,
in wxWidgets I can do the following:
BEGIN_EVENT_TABLE(RadioWidgetsPage, WidgetsPage)
EVT_RADIOBOX(RadioPage_Radio, RadioWidgetsPage::OnRadioBox)
EVT_RADIOBOX(wxID_ANY, RadioWidgetsPage::OnRadioBox2)
END_EVENT_TABLE()
OnRadioBox() should be called when the wxRadioBox that has the id
RadioPage_Radio
is clicked, otherwise OnRadioBox2 should be called. In wxLua this looks like
this:
this:Connect(RadioPage_Radio, wx.wxEVT_COMMAND_RADIOBOX_SELECTED, OnRadioBox)
this:Connect(wx.wxID_ANY, wx.wxEVT_COMMAND_RADIOBOX_SELECTED, OnRadioBox2)
However, the use of wxID_ANY seems to confuse wxLua here because even if the
user clicks the wxRadioBox that has the id RadioPage_Radio wxLua will still
run the OnRadioBox2() callback. Is that a bug or some kind of limitation?
Thanks!
--
Best regards,
Andreas Falkenhahn mailto:[email protected]
------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
wxlua-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxlua-users