02-27-2013 10:18 AM
I'm trying to remove (or at least minimise the visual impact of) the grey border present when a subVI smaller in size than the main VI (or screen in general) is run. The subVI is run as modal with all dialog borders/buttons turned off. As far as I can see there are two options for this as LV will not natively allow this bordered to be turned off:
1 - using Windows APIs create a mask to cover the border - time consuming and not overly robust as I may need to move panels around
2 - change the colour from grey to a more suitable colour to match my theme - as far as I can tell the grey colour of the border is defined from within LV ( I've tried playing with the Windows colour scheme to no avail) and whilst a number of display colours can be modified, the fundamental LV system colours cannot.
Any suggestions as to a solution will be greatly received.
02-27-2013 10:38 AM
The "system colors" in LabVIEW depend on the windows theme, and thus cannot be changed directly from within LabVIEW. All other colors can be changed.
I don't quite understand what you mean by "grey border". Are all your panels maximised to the screen? Can you show us a screenshot?
You can color the background of a front panel to anything you want.
02-27-2013 11:09 AM
If you're talking about having one window on top of the other, then the line you're seeing is the window border and that's controlled by the OS. You probably can change it, but I don't think you need to - if you want the subVI to be displayed inside the calling VI, place a subpanel on the FP of the caller, use the static VI reference from the application control palette to get a reference to the subVI and feed that into the subpanel. The subVI will now be inside the main VI (although it won't be modal).
02-27-2013 11:09 AM
Picture attached. This is just a simple VI which is executing with no toolbars displayed and in modal mode, however you can see that this leaves a whitish-grey border surrounding the VI which I want to disappear or at least change the colour of. Cheers
02-27-2013 11:16 AM
Yeah that won't really work for me as I need the modal-ness! The reason I believe the colour property to be defined by LV is that by modifying the Windows theme I'm able to have the border look as in the attached pic however as soon as I execute the VI again, the border reverts to the whitish-grey colour.
02-27-2013 12:55 PM
Yeah, I don't think you can change the color of this grey border, but also you can customize all other colors.
Is this one really annoying? I mean, this really have impact in your application?
02-27-2013 01:51 PM
If I remember right, in vary ancient LabVIEW versions (last century) it was possible to make completely frameless windows. Even today, other software can still do it.
Maybe it is time to post an idea in the ideas exchange to add an option to the "Window Appearance" property dialog: "Show window frame". 😉
02-27-2013 02:53 PM
From memory so try it before you buy it. If you make the window modal it will get that border, but if you make it floating then it should be borderless. This is not last century, but last decade (LV9).
02-27-2013 03:13 PM - edited 02-27-2013 03:49 PM
@Darin.K wrote:
From memory so try it before you buy it. If you make the window modal it will get that border, but if you make it floating then it should be borderless. This is not last century, but last decade (LV9).
Just tried in (LV2012, Windows 7) and the border shows with all settings (default, modal, floating).
(If the FP is maximised to the screen, the border is outside the visible monitor area and thus not shown)
02-27-2013 03:25 PM
Weird. LV12 + Windows 7. Basically I chose Dialog for the window type, then customize to remove the title bar and select modal/floating.