11-28-2006 06:37 AM
11-28-2006 08:44 AM
Not sure I understand your problem - does not the SetCtrlBitmap() function do what you want?
JR
11-29-2006 01:29 AM
11-29-2006 02:21 AM
Hello Tomsaw,
I suggest the following workaround: create an invisible canvas. On this canvas, draw your icons using the desired transparency (for using transparency, refer to the example in C:\Program Files\National Instruments\CVIxx\samples\userint\alphablend.cws). Now, get the bitmap from the canvas using GetCtrlBitmap and put the bitmap on the picture button.
11-29-2006 03:49 AM
Thank you for the good suggestion ! It almost works now ... but there's still a littlle problem.
When I have a canvas with a background colour it works fine - but: the color of the canvas appears on my button => not what I want
(the original icon in the background has a transparent frame, the original icon in the foreground is - despite a little part almost complete transparent).
When I have a canvas with transparent background colour it works fine - but: the color of the canvas appears on my button => not what I want
Using the function "DrawImage" from the sample you suggested doesn't work either. On my composite picture on the button I always have a black frame (former transparent). Is there any other way to keep transparency when copying the picture to the button ![]()
11-29-2006 01:47 PM
11-30-2006 01:34 AM