LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

function of ATTR_CONFORM_TO_SYSTEM_THEME

Hello,


I just realized that numeric controls still look different if 'conform to system theme' is set, depending on their CVI history, i.e. if they are were built in the classic style or in the Lab style; in contrast, command button controls look identical whether they are classic or Lab style, once the conform to system theme attribute is set.

Is this by design?

Actually I would expect three different versions of a control: classic style, lab style, and Windows system style (provided there is a Windows analogon; obviously, I would not expect a Windows-style LED)
Phrased differently, I would expect the same look of a numeric or text control, as soon as the conform to system theme attribute has been set; this however seems not to be the case...

Wolfgang

0 Kudos
Message 1 of 5
(3,379 Views)

As you can see in this image, all of 4 theorical combination of lab/classic style and system theme on/off are possible. I suppose this is on purpose: classic style controls must be maintained for compatibilty with applications developed in releases up to 6, which hadn't the lab-style controls; they always had a different aspect with respect to lab-style ones. Enabling the system teme tends to minimize this difference which is indeed still visible.

 

 

Message Edited by Roberto Bozzolo on 02-23-2009 03:47 PM


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 2 of 5
(3,364 Views)

Yes, Roberto, that's what I found, too, although you presented it much nicer by providing this figure; I am not arguing about classic versus lab style, but the fact that the third, new, Windows theme style is not unique but depends on classic/lab style; interestingly, the classic style, which in general is much more square-cut than the rounder lab style, results in rounded text/numeric controls when themed, while the lab theme style is more angled...

 

Nothing of great concern, but if it was not intended this way I would prefer a unique (third) Windows style... 

Wolfgang

0 Kudos
Message 3 of 5
(3,359 Views)

Hello Wolfgang,

 

The reason that the controls are different is because the theming effect is applied on individual parts of controls (where appropriate), and not on the entire control. This is one of the reasons why themed controls didn't become a 3rd distinct palette of controls, but instead were presented as an attribute. Not every part of every control has a Windows theme equivalent.

 

With command buttons, all parts of the themed version of the control do have a theme, so both the classic and the lab-style control are completely replaced.

 

Luis

0 Kudos
Message 4 of 5
(3,355 Views)

Hello Luis,

 

Thanks. I understand that there is no 'third' style, because some controls simply do not exist in Windows UI. Still, there _is_ a well defined Windows style for a numeric control (without the arrows), or for a text control. So actually I would expect that the CVI numeric/text controls resemble _exactly_ this style once the attribute 'system_theme' is applied, indepedent of the way I have built the panel (using classic or lab style controls).

But it appears that CVI _approximates_ the way the controls look like... and these approximations are different for classic and lab style 😞

 

Wolfgang

0 Kudos
Message 5 of 5
(3,348 Views)