Rainer
1/6/2008 10:14:00 PM
On 6 Jan., 22:16, Alex Fenton <a...@deleteme.pressure.to> wrote:
> The veto method only applies to close events; the documentation explains
> that:
>
> "If you don't destroy the window, you should call Wx::CloseEvent#veto to
> let the calling code know that you did not destroy the window. This
> allows the Wx::Window#close function to return true or false depending
> on whether the close instruction was honoured or not."
>
> hth
> alex
Hello Alex,
this sounds like the method doesn't actually perform the veto, it just
informs the calling code that the window wasn't destroyed. Makes
sense, thank you. I only read the "short" documentation which states:
"Call this from your event handler to veto a system shutdown or to
signal to the calling application that a window close did not happen.
You can only veto a shutdown if wxCloseEvent::CanVeto returns true."
This sounded to me that there are cases when you actually perform the
veto. Case closed anyway: I will leave the method call in, of course.
Alec, thank you, too, for the hint with the wxruby-users mailing list.
I will reserve this for the harder cases, though, as this newsgroup
was absolutely fit for the task!
Thanks everybody,
Rainer