Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
- Posts: 14
- Joined: Tue Aug 22, 2017 12:04 pm
I do have a problem with the method panelSize():
Code: Select all
int panelSize (string PanelName, int &width, int &height, bool currentSize = false);
If you have a panel which has no layout, and you drag the panel to increase the size, panelsize() will always return the same value (I do understand the panel will not change its size, if there is no layout defined and you change the window size).
However, is there a way to obtain the 'window size' during runtime for an opened not-layouted panel?
Thanks in advance!
- Posts: 1936
- Joined: Tue Aug 24, 2010 5:28 pm
Are you opening the panel as a child panel or in an own module?
What is the information of the size used for?
Senior Support Specialist
- Posts: 91
- Joined: Tue Jan 15, 2019 2:12 pm
In case the contents are scaled you could get the 'window size' by multiplying the width and height (as returned by panelSize) with the zoom factor.