]> git.saurik.com Git - wxWidgets.git/commit - samples/xrc/objrefdlg.cpp
Use Connect() of Bind() in the new part of xrc sample.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 7 Nov 2010 19:33:30 +0000 (19:33 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 7 Nov 2010 19:33:30 +0000 (19:33 +0000)
commit14f0c8b71637d8c95d55eac736bb28d47f90aa5a
treec64eb814d9d821b0283ba76f4a8e95a844ec3cec
parentf7aaef4d5359231941e34faf68f6c8c37f0f2924
Use Connect() of Bind() in the new part of xrc sample.

Use Connect() for compatibility (notably with VC6 which doesn't support
Bind()). Also connect the event handlers on loading the dialog instead of
waiting until the relevant page is selected, this makes the code slightly
simpler as we don't need to remember whether we connected them or not any
longer.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66062 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
samples/xrc/objrefdlg.cpp
samples/xrc/objrefdlg.h