I don't think you can disable a button in the standard fashion. I usually
just hide a button when I don't want it clicked. I haven't found the
article, but I remember reading its accepted practice to not show UI
elements when you want them to be disabled.
----- Original Message -----
From: "Jacky Cheung" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Monday, December 18, 2000 8:06 PM
Subject: Unable to disable a control button
> I tried to disable a control button by using
>
> CtlSetEnabled( ...., false);
> Myfunction();
> CtlSetEnabled( ....., true);
>
> but when I press the button during the execution of Myfunction(), the
system
> still respond to the button I pressed during that time after Myfunction()
> has finished.
> Any idea?
>
> Thanks.
>
> Jacky
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/