Ticket #15919 (closed defect: fixed)
wxShowEvent is called at startup for wxPanel that is declared hidden in XRC
|Reported by:||escamoteur||Owned by:|
|Keywords:||wxPanel XRC wxShowEvent||Cc:|
I have an wxPanel that is declared hidden in my XRC-File:
<object class="wxPanel" name="ID_PAGE_CONNECT_INSERT_CARD" subclass="PagePlayerConnectInsertCard"> <style>wxSUNKEN_BORDER|wxTAB_TRAVERSAL</style> <hidden>1</hidden>
So I would expect that the OnShow-Handler of the Panel is not called until I call Show() on the Panel. But what happens is that while loading the XRC-File and generating the GUI-Objects On Show is called with and IsShown says true. The Event is called a second time imidiatly after, then with IsShown = false.
As I would like to use the ShowEvent to initialize something just before the panel is shown and not earlier, I would consider this behaviour as wrong.