Elliott ..
switch (command)
{
case MainOptionsForm1:
FrmGotoForm(Form1);
handled = true;
break;
case MainOptionsForm2:
FrmGotoForm(Form2);
handled = true;
break;
case MainOptionsForm3:
FrmGotoForm(Form3);
handled = true;
break;
case MainOptionsForm4:
FrmGotoForm(Form4);
handled = true;
break;
case MainOptionsAboutStarterApp:
MenuEraseStatus (0);
AbtShowAbout (appFileCreator);
handled = true;
break;
}
Above code assumes you have created 4 forms (Form1, Form2, Form3, Form4) and
in the main form have 4 menu options (MainOptionsForm1 .. MainOptionsForm4)
Inside constructor, each form can link to only one Menu Bar, see the forms
Menu Bar ID. Link Menu Bars to Forms using this property.
--
------------
Steve Fillingham
CodeDrive Pty Ltd
[EMAIL PROTECTED]
"elliott ..." <[EMAIL PROTECTED]> wrote in message
news:32094@palm-dev-forum...
>
> hi, all i want to do is make a small app with four forms. and be able to
> navigate between forms from the four menu items on the menubar. i heard
that
> there is a way to do this with constructor by dragging and dropping the
menu
> item to the corresponding form, but i havent been able to do that. i was
> playing around with the MainFormDoCommand function, but only managed to go
> to a completly blank form. so i started from the original starter code
> below. and im still am stuck right there.. heh.
> also if anyone can tell me how to do this with constructor, it would be
just
> as helpfull.
>
> any help on this is GREATLY appreciated. thanks.
>
> ______________________________________________________
>
>
>
>
> static Boolean MainFormDoCommand(Word command)
> {
> Boolean handled = false;
>
>
> switch (command)
> {
> // i know that this is where it brings up that palm about form(i think)
> file://but i want it to bring up a form with the id of 1100 called form 1
> // and have the same for forms with 1200, 1300, and 1400
>
> case MainOptionsAboutStarterApp:
> MenuEraseStatus (0);
> AbtShowAbout (appFileCreator);
> handled = true;
> break;
>
> }
> return handled;
>
>
> }
>
>
____________________________________________________________________________
_________
> Get more from the Web. FREE MSN Explorer download :
http://explorer.msn.com
>
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/