Thanks for the reply. Looks like I was using incorrect type and creator. It works once I changed these values. However, I noticed that the 'Done' button does not appear when I use this to launch the buttons panel (sysFileTPanel type and sysFileCButtons creator). Any idea why? I am using PalmOS Version 3.2 - Srinivas -----Original Message----- From: Nageshwar Rao [mailto:[EMAIL PROTECTED]] Sent: Monday, July 17, 2000 5:56 PM To: Palm Developer Forum Subject: Re: Question on Launching Network prefrences from my application Hi, I 'm sorry for the last answer.It's type is sysFileTPanel and creator ID is sysFileCNetworkPanel for going to NetworkPrefs directly in ur code.It works fine for u then. ----- Original Message ----- From: Srinivas Mogalapalli <[EMAIL PROTECTED]> To: Palm Developer Forum <[EMAIL PROTECTED]> Sent: Friday, July 14, 2000 4:32 PM Subject: Question on Launching Network prefrences from my application > I want to to launch 'Network Preferences' panel from my application when the > user hits a button. How do I do this? > > I tried the code below but something is definitely wrong with this. What is > wrong with this code? > > (i) I am also not sure how to specify to go to the right prefrences panel as > there are multiple-preferences panels) > (ii) I am also not sure whether I should use SysAppLaunch or SysUIAppSwitch > in this case. > > Thanks - Srinivas > > Launch(sysFileTApplication, 'pref', sysAppLaunchCmdPanelCalledFromApp, > NULL, false); > > where the function Launch is defined as: > > Err Launch(UInt32 type, UInt32 creator, UInt16 launchCode, > void *param, Boolean sub) > { > DmSearchStateType searchState; > UInt16 cardNo; > LocalID dbID; > Err err; > UInt32 result; > > // look for the app > err = DmGetNextDatabaseByTypeCreator(true, &searchState, type, > > creator, true, &cardNo, &dbID); > > if (err == 0) { > if (dbID) { > // launch the app > if (sub) > err = SysAppLaunch(cardNo, dbID, 0, > launchCode, (char *)param, &result); > else > err = SysUIAppSwitch(cardNo, dbID, > launchCode, (char *)param); > } else { > err = -1; > } > } > return err; > } > > > - Srinivas > > -- > 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/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
