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?
Re: Getting the width of a layout? [message #47810 is a reply to message #47785] Sun, 02 April 2017 00:32 Go to previous messageGo to previous message
ptkacz is currently offline  ptkacz
Messages: 89
Registered: March 2017
Member
Wow, cbpporter, thanks.

I'll look at your list and available documentation.

I did come across in the forums that revealed how to get the width, something like the following:

Size sz = buttonPanel.GetSize();

int width = sz.cx;


Kind of strange that there doesn't appear to be any getWidth(), or width() methods, but one can specify "cx". Kind of reminds me of a complex mathematical variable.



Peter

[Updated on: Sun, 02 April 2017 00:33]

Report message to a moderator

 
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 Apr 24 19:04:57 CEST 2024

Total time taken to generate the page: 0.01991 seconds