On Sun, 2003-01-26 at 14:07, David McNab wrote:
> Hi,
> 
> I'm creating a form and its objects dynamically.
> 
> The dynamic creation functions for form objects, such as
> 'FrmNewLabel()', 'CtlNewControl()' etc don't have any args for
> visibility.
> 
> Therefore, I'm calling 'FrmHideObject()' immediately after creating the
> form objects I want to be hidden, but before showing the form.
> 
> But when I display the form, the supposedly hidden objects are plainly
> visible!

I answered my own question - with FrmHideObject() I was passing the
object ID, not the object Index. GRRR.

Strange API - you sometimes need to specify an object by its pointer,
other times by its index, and other times by its ID.

Guess I'll get used to it someday.

David




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

Reply via email to