At 10:44 AM 9/24/2002 +0530, you wrote:
>Hi all,
>
>            Does anyone know how to gray out a control
>if it is disabled for use.
>            Is there any way to achieve this
>functionality.

Palm OS doesn't support grayed out controls.  The Palm OS UI philosophy is:

1) If a control will never apply, hide it.
2) If it does apply, but can't be done at the moment, allow the user to 
attempt to use the control, but then show an alert and explain why it is 
disabled and what would allow it to be enabled.
3) In general, its best to not have controls that can't always be used.

An example of this is the "Details" button in the DateBook app.  If you 
aren't editing a particular entry, you can still tap on Details.  If you do 
so, an alert will appear telling you that you need to select a record to 
use this command, and how to actually select the record.

The #3 philosophy is shown by Address Book and Memo Pad.  Any record 
specific actions are limited to the detail views, so you're never in a 
situation where you have to tell the user "no".

See the Palm OS UI Guidelines document, from palmos.com, for more details.

-- 
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com


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

Reply via email to