10-30-2014 12:17 PM
Hello All,
Please run the attached VI.
I want to understand why there is an offset of exactly 46 pixels in the output of 'Total Bounds Rect Property' (Panel class).
10-30-2014 12:26 PM
That is the 46 pixels needed for the title bar, menu bar and Tool bar
Removing them (Ctrl+I >> Windows apperance) get you this
10-30-2014 12:33 PM - edited 10-30-2014 12:34 PM
I believe it includes the toolbar and the menubar. If you go into VI properties/Window Appearance and turn them off, you'll see the number changes and gets close to zero.
EDIT: And Jeff was quicker this time. Except I didn't see the presence of the title bar having an effect on the number, just the toolbar and menu bar.
10-30-2014 12:34 PM
Just look at the Master Bound Rect of the Panel and it should tell you the offset (46 in this case) which depends on menu and toolbar visibility when you run.
10-31-2014 07:26 AM
@JÞB wrote:
That is the 46 pixels needed for the title bar, menu bar and Tool bar
Looking at the help document of this property node, it gives no clue about it.
I found that to check the menu bar visibility, there are two options available:
a. VI Class >> Front Panel Window >> Show Menu Bar
b. Panel Class >> Menubar Visible
Similarly, is there any way to get (programmatically), whether or not 'Tool bar' is visible for a VI?
10-31-2014 09:50 AM - edited 10-31-2014 09:51 AM
Yes. Property Nodes