Comment 15 for bug 1092873

Revision history for this message
Jacobo Aragunde Pérez (jaragunde) wrote : Re: [Bug 1092873] Re: Set focus on the exit confirmation dialog buttons

El 17/01/13 09:06, jean-pierre charras escribió:
> ...
> In fact, in Exit dialog, the Cancel button with wxID_CANCEL exists.
> After investigation:
> SetFocus() called from DIALOG_SHIM constructor does not work because it
> is called before the button exists.
> When SetFocus() is called after the creation of this button, it works.
>

Ahh, I was wondering what was happening here. When I manually modified
DIALOG_EXIT_BASE class (in the first patch) it worked correctly. I was
calling SetFocus() after having created the button, while DIALOG_SHIM
does it before.

I'll try to get a fix with the information you provided soon, thanks :)