LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I center justify VI title?

Solved!
Go to solution

Hi

Using LabVIEW 2011.  Would like to move VI title to center of title bar.  No property node evident - anyone have any alternatives?  Proper centering is desired, not just a long string of space chars ahead of the title.

Thanks

Blair

0 Kudos
Message 1 of 9
(3,398 Views)

My initial reaction is: No. The title bar is really defined by your operating system and every operating system I have ever seen had window titles left justified.

 

What exactly is it that you are trying to do? There may be another way of getting there.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 9
(3,380 Views)

Yea; that's taken care of by the op system's UI/window manager.  That setting, if it exists, is going to change things globally within the op system much like changing the "theme", font, or color scheme.  My title bar goes from dark green to light green, instead of dark blue to light blue.  For me, that makes it real easy to see a local window from a remote window.  But that changes for -everything-.... labview, firefox, windows explorer, notepad...

 

There's ways to get around that, office has a totally different look to it than any other windows window... not sure if that functionality is available in labview (I doubt it).

0 Kudos
Message 3 of 9
(3,377 Views)

The ribbon toolbar has changed the way the office apps look.  Apparently the title bar for those apps is actually part of the ribbon toolbar UI, which is why it doesn't follow the Windows Theme.

0 Kudos
Message 4 of 9
(3,374 Views)

Hi Mike

Unfortunately, a customer wants to locate a small window from a camera viewing app over the LHS upper portion of our UI.  So that corner of the titlebar will often be invisible.  No big deal, except that we had proposed to use the titlebar to inform/remind the operator which segment of the measurement is being performed; e.g. "Measurement of object length"; clearly, incompatible requirements unless we can re-justify the title bar.  Oh well.  We'll find an alternative approach.

Thanks

Blair  

0 Kudos
Message 5 of 9
(3,367 Views)
Solution
Accepted by GuessWho

HIde the title bar and just use a text indicator (with added decorations) to look like the title bar.

 

Hopefully you don't have anything in the spec that explicitly states the window can be dragged around using the titielbar.

 

Ben

 

PS: The title "Can I center justify VI title?" originall registered as "Can I center justify VI title?" which is a question I have often asked when reviewing others code.

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 6 of 9
(3,355 Views)

Two options come to mind if you do not want to go the space padding route:

 

1) Buy a Mac

2) Wait for Windows 8

Message 7 of 9
(3,347 Views)

Hello,

 

 

Go to VI properties > Window Appearance > Uncheck Same as VI name and adjust the VI name as per your requirement.

 

 

Hope this will do.Smiley Happy

 

 

Regards,

 

Bijay

Message 8 of 9
(3,302 Views)

@Bijay wrote:

 

Go to VI properties > Window Appearance > Uncheck Same as VI name and adjust the VI name as per your requirement.

 

Bijay



If you don't need to change the Title bar text programatically, you can use Bijay's description and pad the front with spaces to achieve the look of centered text. It wouldn't work well for a resizable window or a system with a customized desktop (extra-large text) but it 'sort of would work'.

 

Or buy a Mac Smiley Tongue

0 Kudos
Message 9 of 9
(3,294 Views)