pvSetPixmap(p,PushButton1,"ok.bmp");
case BUTTON_EVENT: if(i == pushButtonXYZ) do_what_you_want(); ... break;