U++ framework
Do not panic. Ask here before giving up.

Home » Community » Newbie corner » Getting the width of a layout?
Getting the width of a layout? [message #47785] Sun, 26 March 2017 06:48 Go to previous message
ptkacz is currently offline  ptkacz
Messages: 89
Registered: March 2017
Member
There appears to be some U++ magic going on, in how one goes from creating a layout and accessing it programatically.

If one creates a layout, let's say called, "ButtonLayout", one is able to then reference it as "WithButtonLayout". One can then define an object as follows:

WithButtonLayout<ParentCtrl> buttonPanel;

Button panel now allows us to work with the layout. How does one acquire the width or dimensions of the layout (i.e. buttonPanel)?

My other question, is how does "WithButtonLayout" come to be?


Peter
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Example Serial pak
Next Topic: OpenGL demo resulting in Fatal error, Heap leaks detected! error...
Goto Forum:
  


Current Time: Wed Sep 23 15:45:21 GMT+2 2026

Total time taken to generate the page: 1.10277 seconds