From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
05-04-2008 04:09 AM
05-04-2008 05:59 AM
05-04-2008 07:08 AM
Thanks for your solution, the ring picture is what I want but it doesn't look like the a button.
I need a button with picture on it that each time use press it the icon change.
05-04-2008 07:10 AM
05-05-2008 01:12 AM
Finally I solve the problem,
I put a picture ring in my panel with hidden attribute and load all of my picture to it.
in my begining of program use GetCtrlBitmap to variables.
and use these variables as refrences to bitmap with SetCtrlBitmap.
something like this:
int CVICALLBACK PoloCB (int panel, int control, int event,
void *callbackData, int eventData1, int eventData2)
{
static Cooker = 0;
switch (event)
{
case EVENT_COMMIT:
SetCtrlBitmap (panel, MAINPANEL_POLO, 0, (Cooker) ? BMP_CookerOFF : BMP_CookerON);
Cooker ^= 1;
break;
}
return 0;
}
05-05-2008 02:24 AM - edited 05-05-2008 02:25 AM
12-22-2014 05:10 AM
please help me how to fill balck color in white space....in icon.....pls check attathed image please..
12-22-2014 09:18 AM - edited 12-22-2014 09:19 AM
Duplicated post: see here