I have a problem with the wx.Dialog.TransferDataFromWindow (TFW) method.
I tried overloading the method, but the new method doesn’t get called.
Is it still not possible to overload this method,
and if so, can I at least prevent it from getting called?
(however, I still want TranferToWindow (TTW) to recursively call the child TTWs)
Motivation:
I use validators to transfer data from ‘data items’ to controls and vice versa.
There can be more than one control manipulating the same data item,
for example a slider and a textctrl for an integer value.
Let the valid range for the slider be 0-100, whereas for the textctrl it is 0-1000.
(0-100 being the most common, sensible values for something but the user should have the freedom
to enter bigger values if he wants to)
If the value 500 was entered in the textctrl, the data item gets updated with TFW,
then the data item’s value is transferred to the slider with TTW, which gets limited to 100, fine.
At the end of the dialog, however, the slider must not TFW its value after the textctrl.
(since otherwise the 500 is overwritten by 100)
This is of course not guaranteed, when Dialog.TFW calls all the children’s TFW in arbitrary order.
I have a problem with the wx.Dialog.TransferDataFromWindow (TFW) method.
I tried overloading the method, but the new method doesn't get called.
Is it still not possible to overload this method,
and if so, can I at least prevent it from getting called?
(however, I still want TranferToWindow (TTW) to recursively call the
child TTWs)