If, for some reason, it's inconvenient to leave the title out of 
the form resource (as it was in our case, where we needed to be 
able to run optionally either full-screen or "normally"), you can 
get rid of the title at run-time by using FrmRemoveObject:

         int n = FrmGetNumberOfObjects(pForm);
         for (int i = 0; i < n; i++) {
             if (FrmGetObjectType(pForm, i) == frmTitleObj) {
                 FrmRemoveObject(&pForm, i);
                 break;
             }
         }

This must be done before the form is drawn; we do it in the 
handler for the frmLoadEvent.

Note that the call to FrmRemoveObject will generate some 
complaints from the Emulator in versions of Palm OS earlier than 4.0.

Greg Lutz
NearSpace, Inc.


At 05:43 PM 8/14/2002 +0200, you wrote:
>Create a form (160x160) without title and don't set the menubar ID.
>
>In article <93694@palm-dev-forum>, "ScottP" <[EMAIL PROTECTED]>
>wrote:
>
> > Hi,
> >
> > Do I need to do anything special to create a full screen app, 
> or do I just
> > draw over the top of the form...? What happens in OS 4 etc. 
> where tapping on
> > where the form title normally is will open the menu bar - do 
> I need to
> > override this. Is there any advice from Palm on writing 
> fullscreen apps.
> >
> > Any tips or advice would be great.
> >
> > Cheers, ScottP
> >



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

Reply via email to