Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: 88
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: Sat Nov 28 20:33:17 CET 2020

Total time taken to generate the page: 0.02460 seconds