LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Style sheets for LV?

Sometimes we have a lot of work when porting an application to another
system (even with the same OS).

I have some knowledge on html, cascades stylesheets.
I would like to have something similar to adapt a front panel design
(maybe diagram, too). By strictly sepearting, style and content ewe
could get much better design adaption to new tastes and/or systems. It
should include styles for the fonts (font, size, coulour...) and scaling
factors for the controls/indicators and a scaling factor for the
placement of the controls/indicators. This should be availible in
absolute sizes or in sizes relative to the screen resoulution.

What do you think about this input?
Urs

PS If something like exists already and I have missed it- please correct
me a
sap!
0 Kudos
Message 1 of 7
(3,226 Views)
There currently is nothing which exactly fits what you are thinking about. So don't feel bad.
There is an option to have the front panel automaticaly resize to the screen resolution, but it takes a bit of messing around with to get things like labels and custom controls to look right. That option is located in the properties of the specific VI under window size.
You can however programmaticaly change the appearance/placement/size of most controls. You can do this right at run time, allowing you to decide on the fly how you would like the front panel to look depending on the user or station or whatever you choose.
***** See attached VI for example
0 Kudos
Message 2 of 7
(3,226 Views)
> Sometimes we have a lot of work when porting an application to another
> system (even with the same OS).
>
> I have some knowledge on html, cascades stylesheets.
> I would like to have something similar to adapt a front panel design
> (maybe diagram, too). By strictly sepearting, style and content ewe
> could get much better design adaption to new tastes and/or systems. It
> should include styles for the fonts (font, size, coulour...) and scaling
> factors for the controls/indicators and a scaling factor for the
> placement of the controls/indicators. This should be availible in
> absolute sizes or in sizes relative to the screen resoulution.
>
> What do you think about this input?

Well there is a bit of this, some on fonts, some on color. There a
re
three symbolic fonts, Application, System, and Dialog wihch can be
modified and already constructed panels will update to the new font.
This solves some problems and causes others. If your dialog was layed
out with enough space originally, it is an easy way to make major font
changes. If you controls were packed or had other intricate
arrangement, it probably invalidated all of that since fonts aren't the
same size or aspect ratio.

The second place this happens is on colors. We have investigated having
custom palettes where you could change the palette colors and every
usage of the palette color would be updated quickly. It sounds cool in
theory, but in practice, it takes lots and lots of planning for this to
work for you.

The third, and primary way to make global changes is to use strict
typedefs. If you have many instances of an object to update, you can go
to the definition, change color or font, and apply to all controls.

Yeah, I know, this isn't as cool as
stylesheets, but to be honest, text
layout is a bit simpler and more rule based than 2D graphical layout.
We will keep it in mind though.

Greg McKaskle
0 Kudos
Message 3 of 7
(3,226 Views)
Greg,
thanks for the hints to existing possibilities.
If I change the symbolic fonts, they are changed in all my projects when
opened with LV - It should change only for a project / maybe VI.
Stylesheets are much cooler then mentioned - it's not just text layout ,
it is many other kind of designs like tables which can be defined.
But then the UI of Labview should be written in HTML. Designing with
tables (and sub-tables) is a good practice in Internet design and could
give nuce results in the LV world, too. It would more compatible to the
Internet world, too.

Best Regards
Urs

Greg McKaskle schrieb:

> Well there is a bit of this, some on fonts, some on color. There are
> three symbolic fonts, Application, System, and Dialog wihch can be
> modif
ied and already constructed panels will update to the new font.
> This solves some problems and causes others. If your dialog was layed
> out with enough space originally, it is an easy way to make major font
> changes. If you controls were packed or had other intricate
> arrangement, it probably invalidated all of that since fonts aren't
> the same size or aspect ratio.
>
> The second place this happens is on colors. We have investigated
> having custom palettes where you could change the palette colors and
> every usage of the palette color would be updated quickly. It sounds
> cool in theory, but in practice, it takes lots and lots of planning
> for this to work for you.
>
> The third, and primary way to make global changes is to use strict
> typedefs. If you have many instances of an object to update, you can
> go to the definition, change color or font, and apply to all controls.
>
> Yeah, I know, this isn't as cool as stylesheets, but to be honest,
> text layout
is a bit simpler and more rule based than 2D graphical
> layout. We will keep it in mind though.
>
> Greg McKaskle
>
0 Kudos
Message 4 of 7
(3,226 Views)
N,
please repost the VI as LV6.1
I had no opportunity yet to buy LV7 here

Thanks
Urs from Switzerland

NKirchner schrieb:

>There currently is nothing which exactly fits what you are
>thinking about. So don't feel bad.
> There is an option to have the front panel automaticaly resize to
> the screen resolution, but it takes a bit of messing around with to
> get things like labels and custom controls to look right. That option
> is located in the properties of the specific VI under window
> size.
> You can however programmaticaly change the
> appearance/placement/size of most controls. You can do this right at
> run time, allowing you to decide on the fly how you would like the
> front panel to look depending on the user o
r station or whatever you
> choose.
>***** See attached VI for example
>
0 Kudos
Message 5 of 7
(3,226 Views)
Sorry about that
This should work
0 Kudos
Message 6 of 7
(3,226 Views)
Thanks for the VI.

I was aware already of these possibilities to change the look of
individual controls etc.
What I suggest to add to LV8 is a possibility to define styles and so to
adjust the look of a group of corntols when adapting a VI.

Best Regards
Urs Bögli


NKirchner schrieb:

>Sorry about that
>This should work
>
0 Kudos
Message 7 of 7
(3,226 Views)