News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

How can you use wxSmith to assign Id's to sizers?

Started by ouch, March 12, 2015, 04:10:08 AM

Previous topic - Next topic

ouch

Is it me or does it seem like the "Identifier" field is missing from sizers?

Jenna

As fara as I know sizers do not have an ID.
At least there is no method documented to assign one.
Or did I oversee something.

ouch

Really? How do you grab a sizers handle from wxWidgets' XRC system if not?

Well a quick google later...:

Indeed, they do not have one, it seems you grab the handle like this:

FindWindow(XRCID("MY_PARENTWINDOW"))->GetSizer()

Seems a bit convoluted, but hey that's not wxSmiths fault. So never mind this thread... :P