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 |
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
|
|
|
Goto Forum:
Current Time: Wed Apr 24 19:04:57 CEST 2024
Total time taken to generate the page: 0.01991 seconds
|