Declare and use a helper function as below.  I got this when I started a new
Palm OS C App using CodeWarrior.

Cheers,
Edmond

//--------------------------------------------------------------------------
----
// FUNCTION
//   GetObjectPtr
//
// DESCRIPTION
//   This function returns a pointer to an UI object in the current form.
// PARAMETERS
//   theObjectID:Word - id of the UI object
// RETURN
//   VoidPtr - pointer of the UI object
//--------------------------------------------------------------------------
----
VoidPtr GetObjectPtr(Word theObjectID)
{
    FormPtr myFormP ;

    myFormP = FrmGetActiveForm() ;
    return (FrmGetObjectPtr(myFormP, FrmGetObjectIndex(myFormP,
theObjectID))) ;
}



Edmond Chan                             [EMAIL PROTECTED]
Trio Software Corporation       (604) 408-6912
401 -1286 Homer Street          (604) 408-6464 fax
Vancouver, B.C.
Canada, V6B 2Y5
----------------------------------------------------------------------

Subject: settiing checkbox ON/OFF
From: "ajitnk" <[EMAIL PROTECTED]>
Date: Mon, 5 Mar 2001 11:38:46 +0530
X-Message-Number: 4

Hi everybody,

which function should i use to selectively check/uncheck checkbox item in my
Table in the UI?

i can use CtlSetValue, but from where do i get the pointer to the control
(ControlType *controlP)
that i need to pass to this function.

All i know is the row & column number of the checkbox that i want
check/uncheck.

Pl tell me how to procedd .

CtlSetvaluie has the following signature.
void CtlSetValue (ControlType *controlP,Int16 newValue)

Thanks
Ajit


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