11-01-2011 09:01 AM
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
Solved! Go to Solution.
11-01-2011 11:41 AM
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...
11-01-2011 12:01 PM
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).
11-01-2011 12:14 PM
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.
11-01-2011 12:32 PM
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
11-01-2011 01:33 PM
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.
11-01-2011 01:51 PM
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
11-02-2011 05:52 AM
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.
Regards,
Bijay
11-02-2011 06:35 AM
@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