Hi surich,
Before entering your while loop, set the control value to 1.
You may want to set and reset the command button color as well.
GetCtrlAttribute (panel, control, ATTR_CMD_BUTTON_COLOR,
&originalColor);
SetCtrlVal (panel, control, 1);
SetCtrlAttribute (panel, control, ATTR_CMD_BUTTON_COLOR, VAL_DK_GRAY);
while (mouseLButton)
{
...
}
GetCtrlAttribute (panel, control, ATTR_CMD_BUTTON_COLOR,
&originalColor);
Regards,
//----------------------------------------------------------
Reed Blake
Beta Technology
Industrial and Scientific Computing
surich wrote in message
<101-50650000000800000061150000-982303670000@quiq.com>...
>I want to call a function when the user presses a command button (left
>click), then wait until he releases
the mouse button, then call a
>second function.
>My Problem is, that the button does not chage its state to "pressed",
>so it appears to the user that he has not clicked on it.
>Is there any possibility to set the command button th the pressed
>state?