In article <91189@palm-dev-forum>, [EMAIL PROTECTED] says...
> 
> >From: Ben Combee <[EMAIL PROTECTED]>
> >What I'm saying is that the whole form at 500, control at 501, 
> >control at 502, etc. scheme is due to the Mac OS resource 
> >mechanism.  Without that, you could have the controls for each 
> >form start numbering at 1 without worrying about overlap 
> >between forms, since each form has its own control ID space 
> >on the device.
> 
>         And so Ben?   The way it is, is the way it is, surely?

I've already said too much.  Remember, I have the power to affect how it 
is, at least in future tools from Metrowerks.

> Actually that characteristic is useful in run-time bug checking 
> (the characteristic where the ID's of controls on a form are greater
> than the form ID and not more than 100 over the form ID)
> 
> Within our in-house C++ UI classes we check for this.  It is a very,
> very effective trap when the wrong field, control or form ID name
> is used. 

That is understandable, and a good use for the ranges.  I'm sure future 
tools will let you continue to use ranges like that, but they won't be 
necessary.
-- 
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Get help at http://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