Author Topic: How can you use wxSmith to assign Id's to sizers?  (Read 2744 times)

Offline ouch

  • Almost regular
  • **
  • Posts: 223
How can you use wxSmith to assign Id's to sizers?
« on: March 12, 2015, 04:10:08 am »
Is it me or does it seem like the "Identifier" field is missing from sizers?

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: How can you use wxSmith to assign Id's to sizers?
« Reply #1 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.

Offline ouch

  • Almost regular
  • **
  • Posts: 223
Re: How can you use wxSmith to assign Id's to sizers?
« Reply #2 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