LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Dimmed Toolbar problem in CVI8.0

Hello,

I have developed in CVI 6.0 a software which contain a toolbar.
Some button are in dimmed state. This worked up to day when I
installed the CVI8.0 version. In dimmed state there is no a dimmed
icon (it is empty gray), but in active state the icon is correct.
I had to reinstall Windows XP again and CVI6.0 to have the control on
toolbar for using (not install the CVI8.0) the:

Toolbar_DimItem(hToolbar, iNoInternetTb, 1);

function. The same time in the CVI development environment the own
toolbar buttons in dimmed state showing "dimmed" icons!

Can you help me, what is the problem?

Thanks,
Sandor
0 Kudos
Message 1 of 5
(3,554 Views)
0 Kudos
Message 2 of 5
(3,541 Views)
Thank you for the information, but the installation
of the version 8.0.1 does not help!!!

Sandor

mvr wrote:
> There was a bug in 8.0 toolbars, read this link
> <a href="http://forums.ni.com/ni/board/message?board.id=180&amp;message.id=22415&amp;query.id=16634#M22415" target="_blank">http://forums.ni.com/ni/board/message?board.id=180&amp;message.id=22415&amp;query.id=16634#M22415</a>
> <a href="http://forums.ni.com/ni/board/message?board.id=180&amp;message.id=20459&amp;query.id=16642#M20459" target="_blank">http://forums.ni.com/ni/board/message?board.id=180&amp;message.id=20459&amp;query.id=16642#M20459</a>
> Installing 8.0.1 should fix it.
0 Kudos
Message 3 of 5
(3,460 Views)

Hello Sandor,

the default value of the button image size changed from 18 pixel (CVI V7.1) to 16 pixel (CVI 8.0)

Use the function :

Toolbar_SetAttribute (tbMain, TOOLBAR_ATTR_BUTTON_IMAGE_SIZE, 18);

to set the image size back to 18 pixel or whatever your image size is.
This fixed the problem in my application.

Good luck,

Greg

 

 

0 Kudos
Message 4 of 5
(3,455 Views)
Hello Greg,

Thank you for the Toolbar_SetAttribute command, but
the problem is exist. In the CVI Ver 6.0 there is not
TOOLBAR_ATTR_BUTTON_IMAGE_SIZE
attribute. This is acceptable, it is too old CVI!
OK, but I have inserted the proposed command
into my old source code under the ver 8.0.1
and the picture was the same, so I have not
dimmed toolbar button!
Sandor



Greg_NTI wrote:

> Hello Sandor,
> the default value of the button image size changed from 18 pixel (CVI V7.1) to 16 pixel (CVI 8.0)
> Use the function :
> Toolbar_SetAttribute (tbMain, TOOLBAR_ATTR_BUTTON_IMAGE_SIZE, 18);
> to set the image size back to 18 pixel or whatever your image size is. This fixed the problem in my application.
> Good luck,
> Greg
> &nbsp;
> &nbsp;
0 Kudos
Message 5 of 5
(3,434 Views)