LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Where do the extra 9 pixels come from in FP.WindowBounds?

Solved!
Go to solution

In Windows 11, with all the scrollbars, menus, and button bars turned off, I expected the offset between panel bounds height and window bounds height to be the thickness of the titlebar. But the title bar is 32 pixels. Why does window bounds report an additional 9 pixels? 

srlm_0-1722341381537.png

(LabVIEW 2020)

0 Kudos
Message 1 of 3
(241 Views)
Solution
Accepted by topic author srlm

In short, edges.

This is from Microsoft.  All windows like that.  Not just LabVIEW front panels.

Try move cursor slowly across edge, see when it change from pointer cursor to size cursor.

 

George Zou
0 Kudos
Message 2 of 3
(205 Views)

Ah. They count the operation boundary not the visual one. 

Thank you for the explanation. I'm hoping I can take that fixed difference into account and still compute the titlebar thickness for different font sizes on different versions of Windows.

0 Kudos
Message 3 of 3
(173 Views)