Is it possible to use an if statement to see if the button is hidden and if
it is simply skip over the event code for the hidden button?
> -----Original Message-----
> From: Jacky Cheung [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, December 19, 2000 2:17 PM
> To: Palm Developer Forum
> Subject: RE: Unable to disable a control button
>
> Thanks. But the problem is even when I hide it, it still response to a
> button press.
> However, if I miss out the last line CtlSetEnabled(), then it will not
> response to the button press.
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Philip
> Sheard
> Sent: Wednesday, December 20, 2000 4:39 AM
> To: Palm Developer Forum
> Subject: Re: Unable to disable a control button
>
>
> > 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.
>
> I think you are on the right lines here. CtlSetEnabled is intended for use
> with push buttons and checkboxes. if he wants to disable a button, he
> should
> just hide it.
>
> > > 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?
>
>
>
> --
> 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/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/