Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: ouch on March 12, 2015, 04:10:08 am

Title: How can you use wxSmith to assign Id's to sizers?
Post by: ouch on March 12, 2015, 04:10:08 am
Is it me or does it seem like the "Identifier" field is missing from sizers?
Title: Re: How can you use wxSmith to assign Id's to sizers?
Post by: Jenna on March 12, 2015, 05:58:53 am
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.
Title: Re: How can you use wxSmith to assign Id's to sizers?
Post by: ouch on March 12, 2015, 09:01:11 am
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