11-11-2016 06:14 AM
Hi everyone,
I'm using a typedef (non-strict) to keep my data types across different vi's up to date. It contains a cluster which, among some other types, contains a typedef'd (non-strict) enum.
For my user interface I wanted to change the appearance from the default 'modern' to 'silver' style. So I marked the individual controls and tried replacing them. It doesn't work with the enum control.
If I keep the enum in the cluster, the size changes a bit but it keeps the 'modern' style.
If I place the enum outside of the cluster, it changes to 'silver' but removes the connection to the typedef.
(I also can't replace the cluster without it deleting its content...)
I can't figure out how to change just the appearance. Any suggestions?
Maybe it's a problem with the typedef inside a typedef?
11-11-2016 06:18 AM - edited 11-11-2016 06:19 AM
Hi pktl,
set the (cluster) typedef to strict to enforce look in all instances. Save the typedef, then save all VIs with instances of that typedef.
Then set the typedef back to non-strict, save it, save all VIs…
Background: only strict typedefs also enforce the same look in all instances!
11-11-2016 06:24 AM - edited 11-11-2016 06:36 AM
I'm aware of the difference between strict and non-strict typedefs. However, that's not what I meant.
I want a non-strict typedef that I can drop on a certain vi and customize just the appearance to fit the style of this specific vi.
I.e. in one application I'd like a 'modern' style UI, in another I'd like a 'silver' style, but the underlying typedef shall remain the same.
Edit: Re-reading your reply, I understand now how that could work...
11-11-2016 09:02 AM
@GerdW wrote:Hi pktl,
set the (cluster) typedef to strict to enforce look in all instances. Save the typedef, then save all VIs with instances of that typedef.
Then set the typedef back to non-strict, save it, save all VIs…
Background: only strict typedefs also enforce the same look in all instances!
Good gosh, I thought I was the only one who did it that way. 😄
11-11-2016 09:28 AM
It seems a bit tedious
Something like an inherited typedef control would be nice. Just keep the data types and customize the appearance... which would be a non-strict typedef again... but with the ability to customize per vi. Or something like that. I'm confused.
11-11-2016 12:43 PM
@billko wrote:Good gosh, I thought I was the only one who did it that way. 😄
I haven't done it often, but yup I do that sometimes too.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord