In the PalmOS Reference on p. 77 group id is defined as:

Group ID of a push button that is part of an exclusive
group. Only one push button in an exclusive group
may be depressed at a time. Ungrouped
(nonexclusive) push buttons have zero as a group ID.
This feature must be enforced by the application.
Valid values: 0 - 65535


But on p. 274 of that same PDF the prototype for FrmGetControlGroup
Selection lists the second argument as a UInt8.

UInt16 FrmGetControlGroupSelection
(FormType *formP, UInt8 groupNum)


Using PilRC (2.7b), my group name was given a constant value of something
like 2000 which caused the compiler to complain (correctly) when I tried to
wedge it into the second argument of the above function.  So I looked at
the 4.0 SDK examples (generated I assume by CodeWarrior) and all the group
constants were low (UInt8) values.  So I changed my .rcp file to hardcode
the group name to 1, and then the function worked fine.

Is this a PilRC bug? ;)  Hi, Aaron :)

Is this a documentation problem?

Or am I an idiot?

All of the above?

My code works now, so this question is just academic.

- Ed


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