LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use toolbar image that is not a square

The SetAttribute function can only change the size of the square image. What if the image is not a square, like 56*28 pixels, how can I use this kind of image in the toolbar?
 
Thanks,
David
0 Kudos
Message 1 of 2
(3,055 Views)
Hey David,
You should still be able to insert the image into the toolbar.  It will automatically stretch it to fit.  Unfortunately the total icon space must be square.  If you make the icon space larger than the width of the image then it should put the image inside of the icon space unchanged.  I have put two screenshots to show the different behavior.  Hope this helps!

Toolbar with Icon size set to less than the width of the icon


Toolbar with Icon size set to greater than the width of the icon

Message Edited by Patrick P. on 06-15-2007 05:50 PM

Pat P.
Software Engineer
National Instruments
Download All
0 Kudos
Message 2 of 2
(3,028 Views)