Since the OS doesn't support graying-out controls, there are several other
options including:
Don't show the buttons when they won't do anything (preferred)
Leave the buttons and just don't process the press event
Leave the buttons and play an error beep when pressed.

----- Original Message -----
From: "Matt Graham" <[EMAIL PROTECTED]>
Newsgroups: palm-dev-forum
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Friday, January 03, 2003 5:22 PM
Subject: Re: disable repeat button


> christy wrote:
> > I use two repeat buttons to page up and down my table
> > records - 01 for the up triangle and 02 for the down
> > triangle at design time. I need to make them grayed
> > out (not clickable) at run time depending on the
> > availability of table records. How do I use fntsetfont
> > to do that? Or do I use something else for that?
> > Thanks.
>
> CtlSetEnabled() should do what you need.
> I can't remember if it will "grey it out" but it
> will keep the button from doing anything.
>
> Matt
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
>



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to