[3.14] Retrieve current Panel (Window) Size

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!

Post Reply
3 posts • Page 1 of 1
Posts: 14
Joined: Tue Aug 22, 2017 12:04 pm

[3.14] Retrieve current Panel (Window) Size

Post by moto3101 » Mon Oct 07, 2019 5:12 pm

Hello together,

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!

User avatar
Posts: 1936
Joined: Tue Aug 24, 2010 5:28 pm

Re: [3.14] Retrieve current Panel (Window) Size

Post by leoknipp » Tue Oct 08, 2019 8:11 am

Are you opening the panel as a child panel or in an own module?
What is the information of the size used for?

Best Regards
Leopold Knipp
Senior Support Specialist

Posts: 91
Joined: Tue Jan 15, 2019 2:12 pm

Re: [3.14] Retrieve current Panel (Window) Size

Post by gschijndel » Wed Oct 09, 2019 2:49 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.

Post Reply
3 posts • Page 1 of 1