msw dialog.cpp no longer has the OnOk, OnApply, OnCancel, etc.
Vadim Zeitlin
vadim at wxwindows.org
Tue Apr 3 13:50:20 PDT 2007
On Tue, 3 Apr 2007 16:45:56 -0400 martin sweitzer <msewlists at gmail.com> wrote:
ms> msw Dialog.cpp no longer has the OnOk, OnApply, OnCancel, etc.
ms>
ms> I see these in the univ/dialog.cpp tho.
ms>
ms>
ms> What are users of msw/dialog.cpp to use? :-)
ms>
ms>
ms> We have a bunch of code that calls OnOk and such. What should we be
ms> calling instead?
As docs/changes.txt indicates, if you called them to "emulate" the
behaviour of Ok/Cancel button you can now use SetAffirmative/EscapeId()
instead. If you used them for something else, either AcceptAndClose() or
EndDialog() should probably be used but it depends on what exactly do you
do.
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
More information about the wx-users
mailing list