LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CVI8: TOOLBAR_VAL_NEW_STYLE

What does/should TOOLBAR_VAL_NEW_STYLE do? I assume it changes the look to the style CVI8 itself has but I can't see a change when I use it.
Or is this just a demo issue?
-----------------------
/* Nothing past this point should fail if the code is working as intended */
0 Kudos
Message 1 of 5
(3,363 Views)
The canges are minor, and not easy to see. When you move your mouse over the single toolbar buttons, the graphical annimation is a little bit different depending on the Attribute.
0 Kudos
Message 2 of 5
(3,332 Views)
Now you mention it - a bit disappointing...
Is the new toolbar look somehow else available for own programs?
-----------------------
/* Nothing past this point should fail if the code is working as intended */
0 Kudos
Message 3 of 5
(3,326 Views)
You can use this new toolbar for CVI apps from 8.0 onwards. See the example under ..\CVI\samples\userint\custctrl\toolbar.


Bilal Durrani
NI
0 Kudos
Message 4 of 5
(3,300 Views)

The new look of the toolbar is on by default. If you do not set the style, the style you get is (TOOLBAR_VAL_FLAT | TOOLBAR_VAL_NEW_STYLE). If you want the old look, do not bitwise or in the new style constant when you set the style. The default style is the same style used by the CVI environment.

I should also point out that to get the full benefit of the new toolbar style, you have to use images with a transparent background (via a transparency mask or alpha channel).

Hope this helps,

-alex

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