[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Ok button message

From: Andreas Nicolai <Andreas.Nicolai_at_gmx.net>
Date: 2007-10-24 18:58:54 CEST

Hi again,

On Tue, 23 Oct 2007 11:06:34 -0400, Stefan Küng <tortoisesvn@gmail.com>
wrote:

>> I want to call a function when the statistics dialog is closed. I used
>> already the ON_CLOSE() event, but that is only triggered if you really
>> close the window with the x click. Pressing Ok doesn't trigger the
>> ON_CLOSE event (to my surprise), so how do I get that Ok button to call
>> my function?
>
> Override the OnOk and OnCancel methods.

Ok, overriding OnOk and calling OnOk in the parent class works like a
charm. However, if I overwrite the OnCancel method it gets correctly
called when I close the window, bet even if I call the OnCancel function
in the parent class the dialog won't close anylonger.

Any advice?

Andreas

-- 
Andreas Nicolai                         anicolai@syr.edu
PhD Candidate, M.A.M.E                  (315) 443-2218
Syracuse University
151 Link Hall
Syracuse, NY, 13244
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Wed Oct 24 19:07:44 2007

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.