Well Richard, 

It actually isn't quite the active form, yet, since this
is part of the code that handles the frmOpenEvent.
Actually, I guess that means that it is active but 
hasn't yet been displayed. 

In any case, I do call FrmGetActiveForm() to set the
form pointer, and it is a valid form. All other operations
on the form work just fine. Substituting FrmSetTitle() 
works, albeit with the buggy behavior I complained about 
in my original post,and FrmCopyTitle() doesn't, under the 
same circumstances. So what's up with that?

Are FrmSetTitle() and FrmCopyTitle() working with the same
set of assumptions? I'd be happy to read more detailed
documentation, if I could find it.

Thanks.

Scott Herman






At 01:49 PM 7/25/01 -0500, Richard Burmeister wrote:
> > From: Scott Herman
> >
> > When I use FrmCopyTitle() this is what I get...
> >
> > LabMan(LABMAN.RCP(v.1)) called SysFatalAlert with the message:
> > "Form.c, Line:1728, Object not in form".
> >
>
>Before calling FrmCopyTitle(formP, newTitle), make sure that formP really
>points to the form that you want to change the title of. The current form
>is not always the form you think.
>
>E.g.,
>
>formP = FrmGetActiveForm();
>// formP may be meaningless if a popup window is open, so better to use:
>
>formP = FrmGetFormPtr(YourFormID);
>if (formP)
>   FrmCopyTitle(formP, newTitle); // newTitle must not be longer than the
>original title
>
>
>-- 
>For information on using the Palm Developer Forums, or to unsubscribe, please see 
>http://www.palmos.com/dev/tech/support/forums/


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