[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: Stefan Küng <tortoisesvn_at_gmail.com>
Date: 2007-10-24 19:31:34 CEST

Andreas Nicolai wrote:
> 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.

Strange. Are you sure you're calling the parent OnCancel()?
use
__super::OnCancel();

to be sure.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
---------------------------------------------------------------------
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:31:51 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.