[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tortoisesvn-dev
Subject:    Re: Ok button message
From:       "Andreas Nicolai" <Andreas.Nicolai () gmx ! net>
Date:       2007-10-24 16:58:54
Message-ID: op.t0pn4gust8lo91 () helium
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic