> I'm Placing 3 button in the same place. At any time only
> one button
> should be visible and others should be invisible. I used FrmHideObject
> function but the button i enable is not drawn properly .

Your approach sounds about right - what do you mean by 'not drawn properly'?

In any case, this works for me:

        case Form1StartButton:
                frmP = FrmGetActiveForm();
                FrmHideObject(frmP, FrmGetObjectIndex(frmP, Form1StartButton));
                FrmShowObject(frmP, FrmGetObjectIndex(frmP, Form1StopButton));
                handled = true;
                break;


        case Form1StopButton:
                frmP = FrmGetActiveForm();
                FrmHideObject(frmP, FrmGetObjectIndex(frmP, Form1StopButton));
                FrmShowObject(frmP, FrmGetObjectIndex(frmP, Form1StartButton));
                handled = true;
                break;

Hope that helps,

Claudio



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