Hello. When I enable "store as attribute" for a sizer, the type declaration remains in the implementation file (.cpp). So, this variable becomes local and shadows the real declaration as member in the header file (.h).
Example:
// In do_layout() implementation (.cpp): wxBoxSizer* sizerForIdentity = new wxBoxSizer(wxVERTICAL); // In protected members of class declaration (.h): wxBoxSizer* sizerForIdentity;
Hi,
the bug is fixed in the development branch with 2182:f1f66815ed4c "Fix 'Store as attribute' does not work for sizers in C++ (sf bug #192)"
The change will be also part of the next official release.
Thank you for reporting this bug.
Carsten