Page 1 of 1

Can we get handle to wxDialog from its ID?

Posted: Tue Sep 04, 2018 5:51 pm
by deepti
Hi,

Is it possible to get the handle/pointer to a wxDialog, if it's ID is known?
I need a way to close a dialog from another dialog which knows the former's ID.

Thanks in advance!

Re: Can we get handle to wxDialog from its ID?

Posted: Tue Sep 04, 2018 6:33 pm
by xaviou
Hi.

Did you try wxWindow::FindWindowById ?
It should work.

Regards
Xav'

Re: Can we get handle to wxDialog from its ID?

Posted: Tue Sep 04, 2018 7:02 pm
by deepti
Thank you! that worked!