For some reasons, i have some buttons that i need to enable / disable at the start / end of an operation.
So at the start of the operation i disable the buttons. Everything works fine.
But at the end when i enable the buttons i have this assert: assert: ""source"" failed in DoClientToScreen(): ClientToScreen failed on unrealized window.
I guess the main point is this "unrealized window" but i don't see the problem. Moreover, if i click on "continue" on the assert panel everything has been done correctly.
Here the way i enable / disable the buttons:
Code: Select all
wxButtons* button = (wxButtons*) FindWindowById(ID_Buttons)
if (...)
{
button->Enable(true);
}
else
{
button->Enable(false);
}
Thanks for your help.