> 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/

Reply via email to