User forums > Using Code::Blocks
How can you use wxSmith to assign Id's to sizers?
(1/1)
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
Navigation
[0] Message Index
Go to full version