Home
Geoworks and GEOS are registered trademarks
Contents
1. Flashing Note Tool This wizard adds a flashing note resource to your application Parameters Write a tithe for your flashing note Flashing Mote Demo Duration of the flashing note 600 1 60ths of a second d Minimum Curation 300 1 B ths of a second 4 BACK Cancel Enter your custom message that you wish to be displayed when your note is invoked and press the Finish button Flashing Hote Tool Step 2 Thank you for using the MSKDE A message box will be displayed informing you that your project code will be modified to add the code for the flashing note based on the input above Flashing Note Tool Selecting Yes will make the necessary changes to your code and return you to the tool manager dialog Cancel the tool dialog and return to your project This is a code snippet showing some of the code that is added to your project and the method that you need to invoke within your procedure flash goc PSI E3 aii us RESOURCE BLOCK DO NOT ERASE V Tas y he code b below been ad he Flash ing note tool pu UR MAA TA TILT PULL ATL ATLL 2077722221227 JUANA ur d IPIE n emp Eee p E III I EROS E E Id Flashing MNre Demo Flashing Note template definition f f To initiate the Flashing Note Demo flashing note call the func PutilppialirviaurThreadt amp rlashingMotepemoTemplatae a d edd a ted dd dad dad EE RAL LALA dad Pap add A PM i add amp start FlashingMoterFl
2. m For Hai prese Fi ineca NUM Note that you can resize the windows within the N9KDE workspace by grabbing the divider bar and dragging one direction or another The cursor changes to a bi directional arrow when you can resize the internal window Next expand the tree view for the new form and double click on the new form named Project Settings to see the GOC file BE xi i Nokia 9000 Development Environment forms goc File Edit View Project Build Window Hep Os M s2 8 9 DAlwan kN cgooG Find Find tems E AN forms ComplexMoniker GenTriggerClass CMI_topText CMT CLOSE GTI actionMsg MSG FSA RETURN TO LAUNCHER GTI destination Gforms pp HINT SEEK MENU B R HINT SEEK REPLY B R HINT SEEK SLOT 3 chunk TCHAR forms Za NESE Settings object ComplexMonikerClass formsFlTrigger ComplexMoniker GenTriggerClass CMI topText GformsFlTitle GTI actionMsg MSG GEN INTERACTION INITIATE GTI destination GformsFlDialog HINT SEEK MENU B R HINT SEEK REPLY BAR HINT SEEK SLOT 0 forms INTERFACE BLOCK DO NOT ERASE x forms END INTERFACE BLOCK DO NOT ERASE x end Interface start formsFlResource object GenInteractionClass formsFlDialog GII visibility GIV DIALOG GII type GIT ORGANIZATIONAL GII attrs Gdefault GIA NOT USER INITIATABLE GIA MODAL GI comp objects formsFlinteraction Nokia 9000 D
3. RCS STAMP Le Lr MB B EERE OME REE EEE EEE ELE Edd GLEPEEELEEELPD DEPOT OT ESTEE CECE ECO EEEEP PEEP EOP LEP EELS ES EEE ET rpg FEEL EF Lh Include Files NF ZEFF E FFKFlFlCFFE EFWFlFKlyklFlylglfrmrprrwnEPEtfPlPMyl Elygl DELLA ETL ES OSE POE FE INCLUDE GOC include lt stdapp goh gt include lt foam goh gt include lt forms goh gt 4 INCLUDE GOC PERLES REEERE ERRELEA EELEE PEEP PEED PEEP PEED PO EDP PEED PP EDP PEEP PEED LED AE d Constants LESSEE y uu a t C a y ar ru e t un yr EEL EEL EEL uf af rur ur uf e SLI LE Eur un aU EP t Ur a EEE PELE ur Color drawColor C BLACK define DOC WIDTH FOAM DEFAULT COMPONENT WIDTH j ine DOC H 480 Import Number Tvpe Protocol geos D library 654 000 ui 1 library 743 001 foam 2 library 14 000 Copying GEO file copy FORMSEC GEO c pcgeos brendan Target N900020 ecWorld Extrapps Starting loader app B Added Procedure 2 Send ln 3 Col31 NUM Next choose Copy from the Build menu to copy the GEO file from the project directory D pcgeos Administrator Appl forms FORMSEC GEO to the target directory The default target directory is EC error correcting Nokia 9000 Development Environment forms goc MEJ xi Build Copy Ang g FW C EE Ee EE ae ee eM ee a HU et prj 9000 Development Environment Description 4 RCS STAMP Le iE EEE EERE EMER ELE EEE o ELA GLEFPEEELEEELP DEPOT OT ET EEE ECO AE EEE
4. A m Changing the fill color changes the graphics display d Nokia 9000 Development Environment Example Graphics ngx naGH X amp 9 e amp e l2 d a nooa Find Find items a Main Frame forms Pm E3 m forms goc c forms CAAA EAA EAA EEA AEA AEA AEA AEA AEA EE EF AEA AA AEA AL AAA A AEA A AAA AAA A ef 1 Settings Project Settings rg r 1 phe de Exam de 77 PROJECT foras TS i bui MODULE forns f f FITF forme nri fal Example Graphics ngx CALLS PA ra a d CFEFEEEEF EEO EEOEP ELS S PEAT EASES TEPC EP EEERAA rrr FT ELF E ETS TG EEG Gl INCLUDE GOC include stdapp goh include lt foam goh gt include lt forms goh gt 4 INCLUDE GOC P V ur V at al t af Ua e ful al a f hal Uf gt Ur EP ELE LAS rU P uH ar t P EE ut ur ue ur UP uh Mh uf uh at gar gu ur ERE E Pd Constants M Wu WW a M ur y ur yu y uy ur ur uf ur uh an ur un yr uh ur ufu uh ur ul ar Ve UP UU LD yh ar uf ar gea PEELE EEL EE Color drawColor C BLACK Xdefine DOC WIDTH FOAM DEFAULT COMPONENT WIDTH define DOC HEIGHT 480 Total size 1611 bytes Fixed size 160 bytes Uninitialized data stack 2000 bytes Import Number Type Protocol geos 0 library 654 000 ui 1 library 743 001 foan 2 library 14 000 il Added Form 1 Graphics Example Graphics 4 b For Help press F1 Ln 4 Col 30 NUM Re run the project in the emulator F5 to see how the graphics are displayed HT GEOS Example Graphics Exit
5. HINT PLACE MONIKER ABOVE HINT EXPAND WIDTH TO FIT PARENT HINT EXPAND HEIGHT TO FIT PARENT HINT COMPLEX MONIKER DRAW SEPARATOR object GenInteractionClass firstViewInteraction GI comp GfirstView object GenViewClass firstView GVI docBounds 1 0 0 480 150 GVI color C WHITE 0 0 0 GVI horiz ttrs default GVD NO LARGER THAN CONTENT GVD NO SHM LLER TH N CONTENT GVI vert ttrs Gdefault GVD NO LARGER TH N CONTENT GVD NO SMALLER THAN CONTENT Nokia 93000 Development Environment 1 0 F K 00 0 al ee ME You can exit the NOkDE by choosing File gt Exit from the menubar 6 Tutorial 2 Forms Application 6 1 Objective The objective of Tutorial 2 is to illustrate the form and procedure features of the SDK The SDK makes it possible to quickly add new forms both standard and graphic and procedures to an application which are important rapid prototyping features In addition Tutorial 2 examines more SDK build features debugging and editor features 6 2 Procedure Step 1 First create a new project in the NOkDE The project in Tutorial 2 is named Forms Hew Project Farms Tutorial d pegeas sdministrator amp pplfarmms step 2 Expand the project tree view to see the main form and its close button dr Nokia 9000 Development Environment Main Form3 Os e e S e BA m
6. Project Settings which is correct We enter Graphics for the button name 1 for the button position and Example Graphics for the form title Make sure that you check This form contains graphics to enable the graphics option You must choose the graphics checkbox to add lines rectangles and circle shapes to the form display Add Hew Form i Adding new Farm to Froject Settings NOKIA CONNECTING PEOPLE Ta add a new form name a new Button ta launch the new Form and give the new Farm a title T his wizard will A k 3j automatically add the resource and trigger to your GOC and GP files F j f du Parent Form T rigger Button Mame Graphics Button Position fi Child Form Form Title Example Graphics Hokia gmg SUE Main orl Ose flea tits Dalam mem sd a Hain Pict lorie Tx B bows Ti ES liegt P il ira END HRSOLEXE BLOCK Ty DO MOT BAAS E41 Giapacr Exanghe Gii H F p m pea A A E NE CNN HM F Send M code far BasallnaProcessclass ES 4 Dens J RWECNRNR ee ee REM NME NEWER HR NR URN k MZ GEM PROC ESS OPEN APPLICATION SYNOPSIS Here 1s where wg can intercept tha s e Geos application IT 15 a handy plac amy glogal variables and set up vari camponert x CALLED Hr TEDS Kerme l PARAMETERS asparrtachzelage acrachzladgs i MemHand e launcha lock ml ui 1 brary 743 007 foam lMbrary 14 00
7. Tutorial 1 takes advantage of several of the automated features in the NOkDE which speed development 5 2 Overview Launch the NOkDE from your Windows Start menu Go to the File gt New menu and enter a project name Go to the Build Menu and choose Execute with Swat F5 Press lt CTRL gt lt F12 gt in the emulator window to go to the Extras applications Scroll to the end of the application list to find your project Press F1 to select your project in the emulator Press F4 close your project in the emulator Dismiss the emulator to return to the SDK Go to File gt Exit to quit the NOKDE 5 3 Tutorial 1 Procedure Step 1 Begin by first launching the Nokia 9000 9110 Development Environment From your Start menu go Programs gt Nokia 9000 9110 Development Environment to launch the product d fa Nokia 9000 Development Environment velopment Environment The N9KDE starts with a splash screen followed by the workspace The workspace is maximized to cover your full screen Here is the Nokia 9000 9110 Development Environment workspace ar Nokia 9000 Development Environment Par x Bee Heb LLL jBndGu xej ejE i I A A j nooea Fra Find items Nokia 9000 Development Environment 1 0 gt For Help press F1 NUM The workspace includes a menu bar a tool bar an output window for messages and errors and a status bar Many functions of the NOkDE have toolbar shortcuts and accelerator
8. compiler to be able to successfully compile and link Select the Build menu and select Create Makefile This is the output from the create makefile Nokia Tools SDK 1 0 Alpha ReleaseAdded Procedure 1 Start DEPENDENCIES MK siege athe SAM eR are fay e pcgeos Administrator e pcgeos N9000v20 Appl flash ENDCMODULES ENDASMMODULES GOC GOC goc t Searching for Tlash goc in Found it Processing flash goc Searching for flash cpp in Found it Processing flash cpp Borland C Preprocessor version 4 02 for win32 Copyright c 1994 Borland International flash cpp findlbdr FLASH GP dependencies mk flashec geo flash geo Makefile generation complete Running pmake depend For Help press F1 Ln 319 Col 55 The next step is to compile and link the code by selecting Compile from the Build menu This is the output from the compile qoc DDO_ERROR_CHECKING D__GEOS__ IFLASH Bie seca cose Manu ee APRI TETEE Ie pcgeos Administrator ciInclude Ie p EC s C Version 4 02 Copyright c 1994 Borland International ash e c warning FLASH GOC 313 Parameter gstate is never used in function flashviewDraw bcc DDO ERROR CHECKING D__GEOS__ Ot c v y w g255 w amp w pin w cln w sig w sus i200 ml I IE PCGEOS ADMIN FLASHEC GEO glue Og FLASH GP P 0 0 R 0 0 0 0 E m Le pcgeos Administrator Include Le pcgeos N9000v20 Installed Inc Resource Size Relocs c
9. o x qeu c uu View P Build EE IM A Re 0l ese aR ym I pu osu we EPIS IEEE a 20 ARA US id m il 9 AN 3d IM EEE EET Mg LE Ae Ae OPHVAITUVHIHWHIHHVVAWAKAVWVVVVV FIEUWIAVAV VFVOOoVU VLAVe VV VATAVAIAHVVAVAVHAIH HeFVUVEVVAVTA HH8eYe7o o ee Lr 4 PROJECT forns 4 4 MODULE forms FILE forms prj LL 4 4 AUTHOR Nokia 9000 Development Environment Q Telephone directory Call Voice mailbox ALS SS Settings include lt foan goh gt include forms goh 4 ZY Y INCLUDE GOC FEFNFEPFFNrFr CKEKIEFPgECgEPEEFFEFFKKNFKVNFKVgNFNMG gEFFFPFFPFPFG PF E FPFFFlEr EEAE EEE LE i Lg Constants f NEWEMWEgFrP F bEFFE AM PMEEFKEFNEFMMEFNEFEFF PPFEF F EFCEEFKCSMBGBBGgSg9EAEFFPPF PFPCgFCLCFFFFOU EFC C ELE Color drawColor C BLACK define DOC WIDTH FOAM DEFAULT COMPONENT WIDTH define C HEIGHT 0 MISSE CURE RU Import Number Type Protocol geos 0 library 654 000 ui 1 library 743 001 foam 2 library 14 000 Copying GEO file copy FORMSEC GEO c pcgeos brendan Target N9000v20 ecWorld Extrapps ES Starting loader app s zn C en TS Press CTRL F12 to switch to the Extras applications Then navigate to your application NI GEOS Exiras Eo EC Converter p EC Text Web amp EC Clock EC Wireless Data Backup 43 EC Composer EC First A Launch
10. TO BE LOGGED IN AS ADMINISTRATOR TO RUN THE SDK eene 56 WILL MY PROJECTS BE DELETED IF I UN INSTALL ccceeseeeeeeteee eene enne he hee ree h serre rens een 56 WHERE ARE MY PROJECTS SAVED eid tuor on tenete sd uf Le uon cae LU te EU ds 56 HOW DO I REMOVE APPLICATIONS FROM MY EMULATOR cscccssccsccssccsccesccsccsscessescenscusceuscs 56 HOW DO T DEBUG IN THE SDK rccedssvetoccoteadavaiiveanncay i teno Hee Tocat eb aee oret o ab o Foba eie Dc a a bu s 56 WHERE CAN I GET GEOS PROGRAMMING HELP csecccssccssccesccescccusccesccesscessceusccesscesceusceuscss 56 HOW DO I DOWNLOAD MY PROJECT TO THE HANDSET cccccecccscccsccesccccceusscesccesscessceusceuseuees 56 1 About this Document This document covers three tutorials designed to help you use the Nokia 9000 9110 Development Environment referred in this document as NOkDE or SDK The tutorials are located in the tutorials folder of your installation Tutorial 1 Introduces the procedure for creating editing and running a First prj N9KDE project Uses features in the SDK designed to speed application development Tutorial 2 Creates a new project with buttons forms and graphic forms Forms prj Examines more SDK build features debugging and editor features Tutorial 3 Create a new project that includes the Flashing Note tool Flash prj Demonstrates the Toolbox manager and more advanced application development We recommend
11. X prr 77 INCLUDE GOC include lt stdapp goh gt include lt foam goh gt include lt forms goh gt 4 INCLUDE GOC LLSS PEELS PEELS PEL PEEL POEL PED PP OE DP PEEP PE EDP OED PPE EP PPE DP PEEP EA PED AE Lh Constants ut t uu a t E a y ar ru ue un ur Wu EEL EEL uf af t ur ur uf Ur SI LE Eur n a uU MF ur PEEL ECEEL CELE ur Color drawColor C BLACK define DOC WIDTH FOAM DEFAULT COMPONENT WIDTH j ine DOC H H 480 Total size 1611 bytes Fixed size 160 bytes Uninitialized data stack 2000 bytes Import Number Type Protocol geos D library 654 000 ui 1 library 743 001 foam 2 library 14 000 Added Form 1 Graphics Example Graphics Ln 324 Coi NUM The empty graphics screen appears Nokia 9000 Development Environment Example Graphics ngx El forms BB B Bg gn EEE B 1 Settings Project Settings ial pr 1 Gra d Exam En D uM iius i 4 P pee MODULE forms ae a iii Example Graphics ngx CSCS SS Pdl dod d did WEKWF eHE lNA Pl lFElll WrFlllr Eyrt yylglrpplrKPlEEtElnmpNEprllylypllyp lnypgpllrpgrppr INCLUDE GOC include lt stdapp goh gt include lt foam goh gt include lt forms goh gt 4 INCLUDE GOC LLSS PEELS PEELS PEL PEEL POEL PED PP OE DP PEEP PE EDP OED PPE EP PPE DP PEEP EA PED AE T d Constants ut t uu a t E a y ar ru ue un ur Wu EEL EEL uf af t ur ur uf Ur SI LE Eur n a uU MF ur PEEL ECEEL CELE ur Color dr
12. a skeleton procedure for the developer to modify Ge Nokia 9000 Development Environment forms goc DSE e e AA aA Eoaea Find Fina tems E forms Each graphic form will have a custom method generated along with a 4 MS5G MET EXPOGED for redrawing the window CUSTOM GRAPHICS STATE METHOD DO NOT ERASE x method formsVisContentClass MSG VIS DRAW callsuper if oself formsViewContent formsViewDraw gstate BEGIN VIS DRAW CONTENT END VIS DRAW CONTENT End of MS5G VIS DRAW x void formsViewDraw GStateHandle gstate fforms DRAW BLOCK DO NOT ERASE x END forms DRAW BLOCK DO NOT ERASE x End of formsViewDraw USER DEFINED METHOD BLOCK DO NOT ERASE x method formsProcessClass MSG FORMSP2 BUTTON h dd your new procedure code here Total size 1611 bytes Fixed size 160 bytes Uninitialized data stack 2000 bytes Import Number Type Protocol geos 0 library 654 000 ui 1 library 743 001 foan 2 library 14 000 4 gt For Help press F1 Ln 324 Col 1 NUM Next we will insert a graphic form into the project From the Project menu choose the Add form option again Not that the form is added to the currently selected form in the tree view Select the Settings form prior to attempting to add a form to the project The Add New Form dialog displays Adding new form to
13. formsFlTitle Settings object ComplexMonikerClass formsFlTrigger ComplexMoniker GenTriggerClass CMI_topText GformsFlTitle GTI actionMsg MSG GEN INTERACTION INITIATE GTI destination formsF1iDialog HINT SEEK MENU B R HINT SEEK REPLY B R HINT SEEK SLOT 0 chunk TCHAR formsP2TriggerTitle Send object ComplexMonikerClass formsP2Trigger ComplexMoniker GenTriggerClass CMI_topText GformsP2TriggerTitle GTI actionMsg TES SIE GTI destination process HINT SEEK MENU B R HINT SEEK REPLY B R HINT SEEK SLOT 1 forms INTERFACE BLOCK DO NOT ERASE x forms END INTERFACE BLOCK DO NOT ERASE x end Interface start formsFlResource object GenInteractionClass formsFlDialog GII visibility GIV DIALOG GII type GIT_ORGANIZATIONAL GII attrs defau A NOT USER INITIATABLE GIA MODAL Total size 1611 bytes Fixed size 160 bytes F Uninitialized data stack 2000 bytes Import Number Type Protocol geos n library 654 000 ui 1 library 743 001 foam 2 library 14 000 in 182 Col21 NUM To find additional references to the Send procedure use the Find option of the editor Click lt CTRL gt F to launch the find dialog MSG_FORMSP2 BUTTON Use the lt F3 gt key to perform a find next command The default procedure created by the SDK does not include any special logic It simply creates
14. keys to speed your development For instance you can click on the New icon L on the toolbar or press lt CTRL gt N to create a new project step 2 Next create a new project by choosing File gt New Project 4 Nokia 9000 Development Environment EY view Help New Project ini A A a Ge PS lel ore ay Find Find items Open Recent File Exit Nokia 9000 Development Environment 1 0 E gt Po NUM Step 3 Type first as the short project name and type First Application as the long project name We recommend using the default destination directory Click the OK button to create the project The short project name must have 4 8 characters and start with a letter The short project name is used throughout the project as an identifier The long project name is used as the title of your application You will see the application title when you execute your project in the emulator or when you download your application to the Nokia 9000 handset Hew Project First Application d pegeas sAdministrator amp pplfirst Step 5 Examine the project tree view for the your first application dr Nokia 9000 Development Environment Main Form2 File Edit View Project Build Tools Window Help Os e ea BA mh A gt Oog _ FindfFind tems gt Main Frame first PGES Nokia 93000 Development Environment 1 0 m For Help press F1 rT NUM St
15. 0 copy FORMSEC GEO di ncgeass amp idninistratar sTarget we dodvz0 ecwor ldyextrappsadded Form 1 aj 1 xm ow For Help press Fi kn 323 Cal 4 A Recompile and execute the emulator Choose lt CTRL gt lt F12 gt to go to the Extras applications 3 MT GEOS Pilg E3 Settings Send Close Now choose Settings F1 from the main form The Graphics button which launches the Example graphics form appears P jai E3 Graphics r Close Choose F1 to launch the graphics form At this point the graphics form does not include any drawing Close the application and emulator so that next we can add drawings to the graphics form Choose Example Graphics from the project tree view Right click the mouse to see the menu options Choose Edit Graphics Nokia 9000 Development Environment Main Formi DnduH x amp j eia Main Frame forms Iz forms LESS EI EOLPEP EL ELIS SILI ILI GEC OSL IEE LAL WW LLE LER ELEELE RESSE LEERI IO ELIEIS BE 1 LK r dear 4 PROJECT forms forms forms prj Nokia 9000 Development Environment Description E dit Graphics men 4 RCS STAMP Pd Lr iE EEE EME HH e V PVLIEVAWVAVHAAHVHRAWVAIAIWAFVAVWVWPVAVHWAFVA AVVAVIRW7HHOWVAHA H88 WEWNENNENENMNNNMEMFFFFFrEFrEFK gK S KVg gAEBKg CSZgV Cg FA EEEP PEEP EOL EP EE LS ES ly ELEELE EOLA EEEE Lh Include Files F r E ERR LE ER E LEERE EEEE EEEE REE EE mper PlgMyF EllvllElKp g ryyg
16. E LE ER E R EERE EELEE EERE E FM EAK lKg CESEEPFFrF CFPEEPElFP Pg F FEFE F gEgEgEyg gCgpg Pg C gCrK INCLUDE GOC include lt stdapp goh gt include lt foam goh gt include lt forms goh gt 44 INCLUDE GOC LASS PELL POEL PP EELS POEL POEL PEEP PEED PEEP PEED PO EDP WOH EKEAWO eAu V PEEP PEED OED LE Lh Constants M au EE ur a n y an ur rr ul ut un ur LEED uf ut uf ue f af EEEE FELL I ur rtu a t UP UP M EEE LF CELE ET Color drawColor C BLACK define DOC WIDTH FOAM DEFAULT COMPONENT WIDTH p i OC H H 480 geos D library 654 000 ui 1 library 743 001 foam 2 library 14 000 Copying GEO file copy FORMSEC GEO c pcgeos brendan Target N9000v20 ec World Extrapps BH Starting loader app Ln 164 Col19 NUM Choose the Add Procedure option Enter Send as the button name Enter 2 as the button position Add Hew Procedure Click OK to create the new button The new button is added to the project tree view Nokia 9000 Development Environment forms goc i e E4 Ele Edit View Project Build Window Help So H 7 Main Frame toms METES c forms KKK CFECKFKFKFF FCG EFKFPEFKF NPFFFsS EKFKFIKF rn pgpr pgr rErCErEEFEMEEEPEFEFPEF EFEFPFFEFFrFI Xy XO 1 Settings Project Settings PROJECT forms MODULE forns FILE forms prj AUTHOR Nokia 9000 Development Environment REVISION HISTORY Name Date Description DESCRIPTION RCS STAMP HC C eM Me
17. NOKIA Nokia 9000 9110 Development Environment N9kDE Tutorial 1999 NOKIA MOBILE PHONES This manual and the software described herein are protected by the copyright laws of the United States of America Title 17 U S C and international copyright treaties as well as other intellectual property laws and treaties with all rights reserved The software which includes the computer software associated media printed materials and any online or electronic documentation 1s licensed not sold Neither the manual nor software may be copied in whole or in part by any means whatsoever except for the purposes of making a backup copy of the software for the licensee s own use without the prior written consent of NOKIA MOBILE PHONES Nokia is a registered trademark of Nokia Corporation The models 9000 and 9110 the 900011 Communicator and other Nokia products referenced herein are either trademarks or registered trademarks of Nokia Corporation and or its affiliates Geoworks and GEOS are registered trademarks of Geoworks Corporation Borland C is a registered trademark of Inprise Corporation Windows is a registered trademark of Microsoft Corporation All other product names mentioned in this documentation may be trademarks and if so are trademarks or registered trademarks of their respective holders and are used in this documentation for identification purposes only Last Modified June 10 1999 Table of Contents Do I HAVE
18. P PEEL EOL EE LE ES EEE ET EE GATS TEASE ELE Lh Include Files PF EEF EMNNKFl FgEkP IWEKF WE lElylryrfrsrElwpEPrFErtflmppE glyglk yU fFlk ryy 4 Y rry pr X1INCLUDE GOC include lt stdapp goh gt include lt foam goh gt include forms goh 4 ZYHINCLUDE GOC PERLES REEERE ERRELEA EELEE PEEP PEED PEEP PEED PO EDP PEED PP EDP PEEP PEED LED AE Lh Constants M a ur ur n a n M M an E ru ut ur ut LEED uf ur uf un LI uu ur M Ur EEL I ECE CELE E EEE EEE LF CELT ET Color drawColor C BLACK define DOC WIDTH FOAM DEFAULT COMPONENT WIDTH i ine DOC H 480 Total size 1611 bytes Fixed size 160 bytes F Uninitialized data stack 2000 bytes Import Number Type Protocol geos n library 654 000 ui 1 library 743 001 foam 2 library 14 000 Ln3Cod3 NUM Next launch the emulator Nokia 9000 Development Environment forms goc File Edit View Project Window Help E Ge y He Create Makefile Ctrl M Compile Fe a Main Frame forms Copy CHEM forms eB 1 Settings Prc En SEGIZ Fina Find tems Iof x P MB AALS AAA ALEPPO AAA PO WOO cEeFA Launch Emulator Ctrl E prj ae a eao 9000 Development Environment Execute With Swat Wait Swat Drew Description Package LA t E wg ZZ LL RCS STAMP EK 4 HB gg C TgR FVHUTIVAVMMVVAVAVPV A ee EE WC AO VY EE MA a a ee ELE uM B ggg B 4g 4 4 B 4g 4 4 B 4g 4 4 4 4 4 4 n4 4 4 4 44 4 4 4 4 4 4 4
19. alized data stack 2000 bytes Import Number Type Protocol geos D library 654 000 ui 1 library 743 001 foam 2 library 14 000 Added Form 1 Graphics Example Graphics Draw a few more rectangles and lines Next select a rectangle and choose the Graphics option from the menubar Nokia 9000 Development Environment Example Graphics ngx MEJ xi E IN Fndiem m Hg g M7 EPA AAA A HAMHSPHHUe UIFWHVVVVEVA VA9 7 OUUUuv V ow APO PROJECT forms MODULE forms ics ngx Fill Color CASAS LEELEE CLFEPEEPEEEFELDEEFLLGSASS LETT ESTP POPE EA ELEP EAE SED E LD EPSP LES DLA FOES DEAE OEE F INCLUDE GOC include lt stdapp goh gt include lt foam goh gt include lt forms goh gt 4 INCLUDE GOC PERLES REEERE ERRELEA EELEE PEEP PEED PEEP PEED PO EDP PEED PP EDP PEEP PEED LED AE Lh Constants M au ru uu an a nr M M an ur E e ur ut unt Vr Mun ufu uf un af Vu ur M ur EDL ur ECE CELE EEE EEE LF CELT EE Color drawColor C BLACK define DOC WIDTH FOAM DEFAULT COMPONENT WIDTH cc ine LIC 480 Total size 1611 bytes Fixed size 160 bytes Uninitialized data stack 2000 bytes Import Number Type Protocol geos D library 654 000 ui 1 library 743 001 foam 2 library 14 000 Added Form 1 Graphics Example Graphics n Co30 NUM The fill color will change the fill color GrState to one of the four grayshade levels supported by the N9000 Color picker
20. ashingMatepemarTemplateResource notbetachable object aoe a ape FlashingMatepemoremplate GI states amp detault amp GS_USABLE ar comp amp pialaogrFlashingMotebpemopoaxTemplate FMI duration 600 HIMT DRAw IM Bux HIMT FLASHING NMOTE DESTROY SELF AFTER DISMISS HINT WINDOW Mo TITLE BAR ra We want a separator so we will create a sub group interaction as moniker eo 4 d The flashing note code that was generated is a template that must be invoked from a procedure or user defined method The next series of steps will show you how to create a procedure and how to invoke the flashing note Procedures and forms are very similar within the Nokia 9000 9110 Development Environment Procedures are user defined methods that are linked to a button on the Nokia 9000 To create a procedure you will select the Project menu item and select Add Procedure F9 Nokia 9000 Development Environment Ft File Edit View MEM Build Tools Window Help DG E 9 2 Al n A ES lel secs Find Find items Add Procedure P Wain Frame masni Pam eas H ER Nokia 9000 Development Environment 1 0 n m fF NM After selecting the Add Procedure menu item the add procedure dialog will pop up requesting information about your new procedure Procedures are linked to buttons so this dialog is expecting the button name and button position to be associated with the flashing note Add H
21. awColor C BLACK Xdefine DOC WIDTH FOAM DEFAULT COMPONENT WIDTH define DO z 480 Total size 1611 bytes Fixed size 160 bytes Uninitialized data stack 2000 bytes Import Number Type Protocol geos D library 654 000 ui 1 library 743 001 foam 2 library 14 000 Added Form 1 Graphics Example Graphics Select the rectangle drawing tool il from the toolbar Drag the mouse from the top left coordinate of the rectangle to the lower right corner Nokia 9000 Development Environment Example Graphics ngx E AN forms KFEFKEnCgKCEFEF FPE zPgM BGg9 A AFAFEFENEFEIF FMFEEEFEPHREFEFFCEEPFFEEFEFIFFIEF EEFEFFEFEFNKFn G CrCrPFPFg B5 1 Settings Project Settings rg i d 4 4 PROJECT forms m 1 Graphics Example Gre MODULE forns moms T7888 3 forms nri fal Example Graphics ngx OF XI CSCS SS Pdl dod d did WEKWF eHE lNA Pl lFElll WrFlllr Eyrt yylglrpplrKPlEEtElnmpNEprllylypllyp lnypgpllrpgrppr 4 X1INCLUDE GOC include lt stdapp goh gt include lt foam goh gt include forms goh 4 INCLUDE GOC LLSS PEELS PEELS PEL PEEL POEL PED PP OE DP PEEP PE EDP OED PPE EP PPE DP PEEP EA PED AE T d Constants ut t uu a t E a y ar ru ue un ur Wu EEL EEL uf af t ur ur uf Ur SI LE Eur n a uU MF ur PEEL ECEEL CELE ur Color drawColor C BLACK Xdefine DOC WIDTH FOAM DEFAULT COMPONENT WIDTH define DO z 480 Total size 1611 bytes Fixed size 160 bytes Uniniti
22. clude graphics h Find in folder e pegeos T echdocs GrDrawRectTo white fill GrSet reaColor gstate CF RGB 255 255 4 4 black line GrSetLineColor astate CF GRAY 0 0 0 Import Number Type Protocol geos 0 library 654 000 ui 1 library 743 001 foam 2 library 14 000 Copying GEO file copy FORMSEC GEO c pcgeos brendan Target N9000v20 ec World Extrapps Besos Starting loader app w 4 b For Help press F1 Ln 373 Col 23 NUM Close the Help Search dialog Save your project and exit the SDK Congratulations You have added graphics to a GEOS application through the NOKDE 7 Tutorial 3 Using the Toolbox 7 1 Objective The objective of Tutorial 3 is to create a new project that includes the Flashing Note tool The Flashing Note tool is a sample add in tool for the SDK that can add code to your project which will display a custom flashing note This tutorial demonstrates the Toolbox manager and more advanced application development The add in tools are wizards that have the capability to quickly add new resources to your application They can be built by third parties using a specific API 7 2 Using The Flashing Note Control This tutorial shows you the Nokia 9000 9110 Development Environment developer how to incorporate the Flashing Note Control into your project This tutorial assumes that you have followed all of the necessary installation procedures for the Nokia 9000 9110 Develop
23. comp firstViewInteraction HINT DR W IN BOX HINT DR W SHA DOW HINT PLACE MONIKER ABOVE HINT EXPAND WIDTH TO FIT PARENT HINT EXPAND HEIGHT TO FIT PARENT HINT COMPLEX MONIKER DRAW SEPARATOR object GenInteractionClass firstViewInteraction GI comp GfirstView object GenViewClass firstView GVI docBounds 0 0 480 150 GVI color C_WHITE 0 0 0 GVI horiz ttrs default GVD NO LARGER THAN CONTENT GVD NO SH LLER TH N CONTENT GVI vert ttrs Gdefault GVD NO LARGER TH N CONTENT GVD NO SMALLER THAN CONTENT Nokia 93000 Development Environment 1 0 Step 9 Next you will need to locate your application in the emulator The emulator begins in the default program group Telephone directory NHT GEOS Press lt CTRL gt lt F12 gt to switch to the Extras which is were your first application has been saved NT GES x Oy Extras item EC Contdb Test App Select B Video Driver Test W EC Init File Editor ii EC Contact Log Test o EC Converter y EC Text Web Locate your program by scrolling down the list with the arrow keys on your keyboard The prefix EC has been added to your project name to indicate that you are running in the Error Correcting mode which is the default setting for the NOKDE EIL l1 1x a gt Cp Extras ia zal lE EC Contact Log Test ae EC Converter iP EC Te
24. e NSERVER utility Refer to the Nokia 9000 user manual for additional information on transferring application to the handset
25. ee MM EM EM EM Oe LEE ERR REE 6 uu Bg ggg M gg B M 4g 4g 4 M B 4g 4 4 4 4g 4 4 4g 4 4 4 4g 4g 4 4 4 44 4 n4 4 4 4 4 44 4 4 4 44 P d Include Files Wu B BH B 4494 4 4 4 4 4 4B 4 42 49 4 44 4 4 n4 494 4444 4 4 n 4 4 4 4g 4k INCLUDE GOC include stdapp goh include lt foam goh gt include lt forms goh gt 7 7 INCLUDE GOC M V V at al t af al e P UP a uf t f e Uf ar Ur UM UU M P LE LAP EL EEE t M hat ar ue rur an uh ah uh uf uh at gru gr un t EEE Pd Constants P2 72570 0 20 48 4 P AE du d ae LE a at e aO d a a d aid ab a d di di adi de aud dii dial a d did LL ECEPPEP EEL ELE EET AGATE Color drawColor C BLACEK Xdefine DOC WIDTH FO M DEFAULT COMPONENT WIDTH define DOC HEIGHT 480 Import Number Type Protocol geos 0 library 654 000 ul 1 library 743 001 foam 2 library 14 000 Copying GEO file copy FORMSEC GEO c pegeossbrendansTarget N9000v20 ec World Extrapps Starting loader app I Added Procedure 2 Send m 4 gt For Help press F1 Ln 3 Col 31 NUM Notice that the output window displays the addition of procedure Send in button position 2 Since the basic project did not change only a re compile is required Choose Compile from the Build menu or press lt F7 gt Nokia 9000 Development Environment forms goc Build Compile M C CgMCCTMTHTVTHVVAVVPVIAFuYVA OeEAATVWV WOOVPVAPIAHVEAVHVIRPHSHHU VAM HH He e e VC pry 9000 Development Environment Description
26. ep 6 Expand the tree view by clicking on the symbol A new project in the NOkDE includes a main form and a close button File Edi View Project Build Tools Window Help jBnsGuH e e amp Al n A gt Oog meafstes 7 Main Frame first PGES Nokia 93000 Development Environment 1 0 m CO 8 For Help press F1 Po NUM Step 7 Open the project GOC file to examine the code that was generated Simply double click on the main form icon first gt Open menu in the tree view Alternatively you can open the GOC file for the project from the File Ge Nokia 9000 Development Environment first goc DSE e a e A Awe 5oomg Find Find tems E ME first object GenPrimaryClass firstPrimary GI comp GfirstBox first INTERFACE RESOURCE BLOCK DO NOT ERASE x END first INTERFACE RESOURCE BLOCK DO NOT ERASE x firstCloseTrigger Main Form chunk TCHAR firstMENES first Main Form object ComplexMonikerClass firstBox ComplexMoniker GenInteractionClass CMI_topText GfirstTitle CMI_fontSize FOAM NORMAL FONT SIZE GI_comp firstViewInteraction HINT DR W IN BOX HINT DR W SHADOW HINT PLACE MONIKER ABOVE HINT EXPAND WIDTH TO FIT PARENT HINT EXPAND HEIGHT TO FIT PARENT HINT COMPLEX MONIKER DR W SEPARATOR object GenInteractionClass firstViewInteraction GI comp GfirstView ob
27. evelopment Environment 1 0 Added Form 1 Settings Project Settings a gt For Help press F1 Ln 184 Col 18 NUM Notice that the SDK automatically takes you to the line in the GOC file which deals with the new form Internally the SDK keeps up with forms using a hierarchical identifier such as F1 for a level 1 form Next compile and execute the project Choose Build gt Execute with Swat from the menubar Nokia 9000 Development Environment forms goc Build GenTriggerClass CLOSE JSG FS RETURN_TO_LAUNCHER formsApp R Execute With Swat E CAR EE Settings rClass formsFlTrigger a SIF GenTriggerClass CMI_topText GformsFlTitle GTI actionMsg MSG_GEN_INTERACTION_INITIATE GTI destination formsF1iDialog HINT SEEK MENU B R HINT SEEK REPLY BAR HINT SEEK SLOT 0 forms INTERFACE BLOCK DO NOT ERASE x forms END INTERFACE BLOCK DO NOT ERASE end Interface start formsFlResource object GenInteractionClass formsFlDialog GII visibility GIV DIALOG GII type GIT_ORGANIZATIONAL GII attrs default GIA NOT USER INITIATABLE GIA MODAL GI comp objects nte on Nokia 9000 Development Environment 1 0 Added Form 1 Settings Project Settings Ln184Co i3 NUM You may find it helpful to increase the size of the output window to view the makefile and compiler reports B m Bo m CRTC
28. ew Procedure After selecting OK code is added to the project files for the new procedure The code snippet below shows the method that is created for you to add your custom implementation Therefore when the Start button at position one is pressed the PutUpDialogViaUIThread needs to be invoked with the FlashingNoteDemoTemplate as a parameter flash goc End of MSG VIS DRAW void flashviewDrawt GStateHandle gstate j 1 GrprawLinet gstate 10 10 100 100 f USER DEFINED METHOD BLOCK DO MOT ERASE amp method flashPracessclass MS FLASHPl BUTTOM Add your new procedure code heret PutUpbialogviauIThreadt r lashingNoteDbemotemplate Once this code is added the file needs to be saved Once saved the project is ready to build and execute The remaining steps will show you how to compile the project files copy the executable GEO to the EXTRAS folder and start the emulator to make sure the code is behaving as expected dr Nokia 9000 Development Environment Main Form1 File Edi View Project g mt Tools Window Help b kl He Create Makefile Ctrl M el oa ee Find Find items Compile F7 oat 7 Launch Emulator Chris Execute With Swat F5 Execute With Swat Wait Ctrl F5 Swat Ctrlew Package Nokia 3000 Development Environment 1 0 Added Procedure 1 Start n m O f NM f The project makefile must be created for the Borland C
29. h j noom Fra Find items f Main Frame forms Wlai E3 Nokia 93000 Development Environment 1 0 m For Help press F1 Ln 111 Col19 NM Step 3 Add a form to the project by choosing Project gt Add Form from the menubar dr Nokia 9000 Development Environment Main Form3 File Edit View BEGEJ Build Tools Window Help D c E NE 2 A on A kNDOOd15 Fra Find items Add Procedure 4 Main Frame ruins I FA Nokia 9000 Development Environment 1 0 m int11 Col19 NUM You can add both new forms and procedures to your project in the NOkDE Each time you add a new form you will create a button trigger which launches the form in your program e Enter Settings for the button name e Choose button position 1 e Name the new form child form Project Settings e Leave the graphics off Add Hew Form Bars E Poesen Step 4 By clicking on OK in the Add New Form dialog you are adding a new set of form and trigger code to the files in your project Immediately you can see the change in the project tree view which displays the new Project Settings form B E3 dr Nokia 9000 Development Environment Main Formi jBnsGuH e amp Al n j noom Fra Find items Main Frame forms PNIBIES Nokia 9000 Development Environment 1 0 Added Form 1 Settings Project Settings gt
30. ject GenViewClass firstView GVI docBounds 0 0 480 150 GVI color C WHITE 0 0 0 GVI horiz ttrs default GVD NO LARGER THAN CONTENT GVD NO SHMALLER TH N CONTENT GVI vert ttrs Gdefault GVD NO LARGER THAN CONTENT GVD NO SMALLER THAN CONTENT Nokia 9000 Development Environment 1 0 E 4 gt For Help press F1 Ln 111 Col 18 NUM You can navigate through the source code using standard editor functions your mouse and arrow keys Step 8 Build and execute your project in the emulator by choosing Build gt Execute with Swat You can also press F5 in the NOKDE to build or re build your application and launch it in the emulator This option performs the complete build and launch process which includes creating a makefile compiling the project files copying the GEO file to the emulator directory and launching the emulator While the application builds watch the Output window for compilation reports and other important messages During the build process the N9KDE runs several programs including the Borland C compiler and GEOS batch files Nokia 9000 Development Environment first goc Build He first s firstPrimary x ESOURCE BLOCK DO NOT ERASE x CE RESOURCE BLOCK DO NOT ERASE first Main Form Class firstBox 1 OTIPIEZXIHUUHIFEI seninteractionClass CMI_topText GfirstTitle CMI fontSize FOAM NORMAL FONT SIZE GI
31. ment Environment Borland C and GEOS SDK The figure below shows an example of the flashing note that we will be developing in this tutorial This is actually a screen snapshot of the emulator used within the Nokia 9000 9110 Development Environment NT GEOS E x Flashing Note Demo Nokia 3000 Thank you for using the NSKDE 13 43 12 11 38 PHONE OFF i 7 3 Procedure Once the SDK is started you will select New Project from the File menu Nokia 9000 Development Environment View Help C New Project Ctrl N Q duoc e p I REN OooG Find Find tems Etre a gt Open Recent File Exit Nokia 3000 Development Environment 1 0 E T Nf A New Project dialog will come up asking for project information including project short name project description and the destination directory for your project files The project name must be entered in lower case and must be between four and eight characters long Hew Project Project Information Short project name 4 to 8 chars Jis 1 Long project name i Hee ns Flashing Note Project e pegeossAdministrator ApplMlash NOKIA CONNECTING PEOPLI Cancel After selecting OK the project files will be created and stored in the destination directory you provided above dr Nokia 9000 Development Environment Main Form1 Mir xi File Edit View Project Build T
32. mpiler emulator and debugger In summary the SDK is an extensible development environment providing simplified extensions to the GEOS SDK The SDK provides compatible support to existing applications and moreover is designed to gracefully evolve through the adoption and provision of future enhancements to the GEOS language 3 N9kDE Project Quick Guide Here is a quick guide to projects in the NOKDE E N E Launch the NOkDE from your Windows Start menu Go to the File gt New menu and enter a project name Go to the Build Menu and choose Execute with Swat F5 Press CTRL F12 in the emulator window to go to the Extras applications Scroll to the end of the application list to find your project Press F1 to select your project The F4 key means Close Dismiss the emulator to return to the SDK 4 Common N9kDE Menu and Toolbar Features Within the SDK B p Launchs the project GOC file in the editor Double click lt CTRL gt F lt CTRL gt S Fl Help for the NOKDE Searches GEOS Technical and programmers documentation F5 File Exit Quits the SDK Within the Nokia 9000 Emulator lt CTRL gt lt F12 gt Fl F2 F3 Menu keys lt F4 gt 5 Tutorial 1 First Application 5 1 Objective The objective of Tutorial 1 is to introduce projects in the SDK This tutorial is a step by step illustration to creating a project named First and executing it within the Nokia 9000 Emulator
33. n4 4 4 4 4 444 44 44 Lr Include Files WB B B 4B 4 9 9 4 4 B 4B4B48 4 4 n4 n4 4B 4 44 4 4 444g 4g 4 4g 4 al allung4g4 INCLUDE GOC include stdapp goh include lt foam goh gt include lt forms goh gt 4 INCLUDE GOC FM M V n ut al af a Fu ECL f har MU gt Ut EP ELE ur ur rU EE EEL hut f ur ue ur ul ur Mh uh uh at gar ur rr EE Lr Constants FU Wa WW a or y n ur m yu un ur ul ula un yr uH ua uo uh ur uf EEE ru rM UP P y ur EA EAP uf ul V EAE LEE Color drawColor C BLACEK Xdefine DOC WIDTH FO M DEFAULT COMPONENT WIDTH define DOC HEIGHT 480 4 b Total size 1611 bytes Fixed size 160 bytes Uninitialized data stack 2000 bytes Import Number Type Protocol geos 0 library 654 000 ui 1 library 743 001 foan 2 library 14 000 4 b In3C431 NM Go the Extras applications by pressing lt CTRL gt lt F12 gt Locate the forms Tutorial application and press RETURN or F1 to select The new Send button appears in position 2 of the main form HI GEOS To activate the send button press F2 which is the emulator command for button 2 In this case no noticeable change in state occurs since there is no code associated with the send procedure To examine the code for button 2 double click on the Send button in the tree view The NOkDE positions the GOC editor at the line in the file for procedure 2 of the main form Nokia 9000 Development Environment Main Formi Mr xi chunk TCHAR
34. not be deleted when the N9KDE is uninstalled from your system The default location for your projects is D pcgeos Administrator Appl where D is the drive where the GEOS SDK is installed 7 6 Where are my projects saved Projects are saved in the GEOS directory tree typically under D pcgeos lt user name Appl Refer to the directory in which you installed the GEOS 2 0 SDK 7 7 How dol remove applications from my Emulator The compiled GEO programs are copied to the EC and NC emulator directories If you want to delete applications go to one of the following directories to remove the applications GEO files you no longer require For Error Checking D pcgeos Administrator Target N9000V20 ec WORLD EXTRAPPS For Non Checking D pcgeos Administrator Target N9000V20 nc WORLD EXTRAPPS 7 8 How do I debug in the SDK The SWAT debugger can be launched from the Nokia 9000 9110 Development Environment Use SWAT to debug your application Instruction for using SWAT are provided in the GEOS documentation Help gt Documentation Home Page 7 9 Where can I get GEOS Programming help The GEOS programming help Techdocs is available through the NOKDE Simply go to Help on the menu bar and search for the topic you require Help gt Documentation Home Page 7 10 How do download my project to the Handset Projects are saved to the N9000 Handset by packaging the program GEO file and transferring the program to the handset with th
35. ools Window Help Os e tea A A amp NO SG Find Finditems Main Frame flash ME Ea Nokia 9000 Development Environment 1 0 La HU w ETATE oL We will now add the Flashing Note Control to your project by selecting Tools Manager from the Tools menu P Nokia 9000 Development Environment Wain Formi File Edit View Project Build RE window Help mu v e wA kN GOOG mee z Main Frame flash BEET Nokia 93000 Development Environment 1 0 n T b Add tools to the Nokia 9000 Development Environment F muM The Tools Manager will pop up a dialog showing you what tools are available for you to add to your project If you will be using the tool repeatedly you may find it useful to add the tool to the Tools menu Just highlight the tool you wish to add to your menu press the button and press Update Menu The tool will remain in the Tools menu unless you manually remove it Toolbox X vicem i I i Choose among available tools in your system to be iis EL va PEOP E i added to the tools menu Tools Menu Flashing Note Toolbox meme he eee od E S Fh a EX Select the Flashing Note Toolbox tool and press the Start Tool Now button The Flashing Note Toolbox wizard will come up and guide you through the steps to create your flashing note Provide a Title for your flashing note and press Next gt
36. oreBlock dgroup FLASH E TEXT FLASHINGNOTEFLASHINGNOTEDEMOT EMP INTERFACE APPRESOURCE ICONMONIKERRESOURCE Total size 1562 bytes Fixed size 160 bytes uninitialized data stack 2000 bytes Import Number Protocol library 654 000 library 743 001 library 14 000 For Help press F1 Ln 313 Col 55 Finally the GEO file must be copied to the EXTRAPPS folder which is the directory the emulator uses to look for files Select Copy from the Build menu The output below will most likely look different depending on where you have the GEOS SDK installed copy FLASHEC GEO e pcgeos sAdministrator Target sweo nOdvz20 ecswor THExtrapps Now that the project has been created implemented and built we are ready tostart the emulator to make sure that the code is behaving properly Select Launch Emulator from the Build menu dr Nokia 9000 Development Environment Main Form1 File Edit View Project SEMEN Tools Window Help b El p He Create Makefile Ctrl M Main Frame flash j nooas Find Find items Th Launch Emulator Execute With Swat Execute With Swat Wait Ctrl F5 Swat Ctrl Package Nokia 9000 Development Environment 1 0 Added Procedure 1 Start gt m fF H The Nokia 9000 emulator will start and load in all of the GEO files that are present in the EXTRAPPS folder Initially you will see the default screen Q Telephone directo
37. ry Call Voice mailbox Recent calls Settings Selecting CTRL F12 will load the EXTRAS form within the Emulator You may have to press the Page Down button on your keyboard to find your new flashing tool application HT GEOS O EC Converter Gp EC Text Web EC Clock 6 EC Wireless Data Backup EC Composer WeatherTrack PHONEOFF EC Flashing Note Project After highlighting the flashing note application you can now press F1 on your keyboard to Select the application This will load your application which should look similar to the following screen HT GELS flash Main Form Nokia 23 21 2 3 99 PHONE OFF Remember the button that we tied to our procedure was Start which is in the number one position Therefore when we press F1 F1 F4 relate to the labels on the far right of the emulator or press the Start button the procedure will be invoked and the corresponding Flashing Note will be displayed NT GEOS E x Flashing Note Demo Nokia S000 Thank you for using the N9KDE 13 43 12 11 38 PHONE OFF J You have gone through all of the steps for creating building and testing an application that uses the flashing note tool Troubleshooting 7 4 Dol have to be logged in as Administrator to run the SDK Yes Log off and log back in as Administrator if necessary prior to running the SDK 7 5 Will my projects be deleted if un install No your project files will
38. that you proceed through the tutorials in order tutorial 1 2 3 2 Product Overview The N9kDE improves application development for the Nokia 9000 Communicator class of mobile phones It includes the following features Broad featured interactive development environment Simplified interaction with the Borland C compiler and the Geoworks SDK Intuitive highly integrated create edit build test development cycle Convenient access to the N9000 emulator Automated application shell development with forms and procedures Simplified application packaging with graphical packager tool Automated code generation Rich text edit control Capability to extend the N9KS with the Toolbox API Eliminates redundant programming tasks Provides rapid access to GEOS documentation and help The N9KDE is designed to operate as an extension of the existing GEOS SDK This extension is provided through the use of executable files developed by Geoworks The NOkDE makes use of GEOS SDK The N9KDE is designed to permit technological evolution and service extensions The SDK is designed to allow for quick deployment of complete applications This 1s achieved by automating the complexities associated with packaging an application for delivery to the Nokia 9000 Communicator through a specialized packaging utility The SDK is designed to allow for quick compilation and debugging of applications This is achieved by an intuitive integration into the N9KS IDE of the GEOS co
39. the emulator and examine the source code associated with the graphics Simply double click on the graphics form in the tree view Find the keyword Draw to locate the drawing code in your graphics form Nokia 9000 Development Environment TUENDIS imi forms goc E EB forms EF 8 1 ea Project Settings geos D library ui 1 library foam 2 library Copying GEO file copy FORMSEC GEO c pcgeos brendan Target N9000v20 ec World Extrapps Starting loader app MSG GEN PROCESS CLOSE APPLICATION x 4 Each graphic form will have a custom method generated along with a 4SG MET EXPOSED for redrawing the window void formsF1F1lViewDraw GStateHandle gstate formsF1F1 DRAW BLOCK DO NOT ERASE x GrDrawText gstate 50 50 Sample text 0 M 44 For text uncomment and move the sample call outside of the SDK block 4 4 TO DO dark gray fill GrSet reaColor gstate CF GR Y 80 80 80 4 black line GrSetlineColor gstate CF GRAY 0 0 0 GrSetlineWidth gstate MakeWWFixed 1 GrFillEllipse gstate 154 277 154 276 GrDrawEllipse gstate 154 277 154 276 4 4 white fill GrSet reaColor gstate CF RGB 255 255 255 4 4 black line GrSetlineColor gstate CF GR Y 0 0 0 GrFillRect gstate 120 69 22 17 GrDrawRect gstate 120 69 22 17 dark gray fill GrSet reaColor gstate CF GR Y 80 80 80 GrFillRect gstate 181 111 164 20 GrDra
40. wRect gstate 181 111 164 20 white fill GrSet reaColor gstate CF RGB 255 255 255 Ped black line 0 O0 3 654 000 743 001 14 000 Fndiem 5 n373 C 23 NUM To find out more about the graphics capability of the NOkDE search al for Graphics in the online help or choose Search from the Help menubar option Help Search pene FR d Nspegeas sT echdacs Click Find to begin the file by file search for the topic of interest e g Graphics Searches through the Techdocs are case insensitive Searches can take several moments to complete You can interrupt a search by clicking Display at any time r Nokia 9000 Development Environment Help DSH lejal eI AA nT Find Fina tems AGEOS SDK TechDocs A GrDrawLineQ FGrDrawRoundEect Type in a keyword to find GrDrawRect void GrDrawRect Limit search to 10 hits Ded GStateHandle gstate GState to draw to sword left bounds of rectangle to dra 5 ATOPE tE pe sword top c pegeos T echdocs CRef Routines R_3a htm c pegeos T echdocs CRef Routines R_ 3b htm aided Cinnt c pegeos T echdocs CRefRoutinest A 3c htm c pegeos T echdocs CRef Routines R_3d htm c pegeos T echdocs CRef Routines R_3e htm c pegeos T echdocs CRef Routines R_3f htm Draws the outline of a rectangle c pegeos T echdocs CRef Routines A_40 htm sword bottom In
41. xt Web B EC Clock Ea amp EC Wireless Data Backup d PHONE OFF a EC empar Step 10 Launch your application by pressing the lt F1 gt key which emulates the Select button on the handset NT GEOS Pilg Tx Congratulations You have just launched your first application Right now the first application is just the main form and the close button just like the tree view displays within the NOKDE step 11 Close your application by pressing F4 which emulates the Close button on the handset You are returned to the Extras menu in the emulator NI GEUS hs b EC Contact Log Test a EC Converter ib EC Text Web b EC Clock amp EC Wireless Data Backup 4 EC Composer Dismiss the emulator by clicking on the emulator window step 12 Next save your project by choosing File gt Save from the menubar Nokia 9000 Development Environment first goc File gt 21 goc bject GenPrimaryClass firstPrimary GI comp GfirstBox first INTERFACE RESOURCE BLOCK DO NOT ERASE END first INTERFACE RESOURCE BLOCK DO NOT ERASE x firstCloseTrigger Main Form hunk TCHAR firstMENE first Main Forn bject ComplexMonikerClass firstBox ComplexMoniker GenInteractionClass CMI_topText GfirstTitle l CMI fontSize FOAM NORMAL FONT SIZE GI comp firstViewInteraction HINT DR W IN BOX HINT DR W SHA DOW
42. your application Forms Tutorial by pressing RETURN or pressing Fl to select NT GEOS m x The main form displays the project name forms Main Form and the buttons for the procedures and sub forms Notice that the newly created Settings button in position 1 appears on the emulator Choose the Settings button by pressing F1 NI GEOS mm E The new Project Settings form is displayed This is one of the best features of the NOKDE since it permits rapid prototyping of large applications Choose F4 to close the Project Settings form Choose F4 again to close your Forms Tutorial applicaton Then exit the emulator by pressing the dismiss icon in the upper right corner The next step involves adding a procedure trigger to the project Although you can add both a form and a procedure from the Project menubar option use the popup menu feature of the tree view display to add this procedure Position your mouse over the form to which you want to add a procedure trigger and click the right mouse key Nokia 9000 Development Environment Main Formi forms forms forms prj Add Procedure Nokia 9000 Development Environment EVISION HISTORY Name Date Description 77 RCS STAMP Le MB THO HAHAHVVAHIHVAHIHHUHAAVAHHVHAFVAVAHIAFV9eNVAFVR2 DOPED OD ED EL EP EO SGLEEPEEEELEEELP SEE OTOL ETE ECE ECO EEEEP PEEP EOL EP EELS ES EEE ETE EG ATS OES FEEL EF Lh Include Files FF ER
Download Pdf Manuals
Related Search
Related Contents
user manual - sinclair air conditioners REFRACTÓMETRO ABBE ABBE REFRACTOMETER Notice Resist - Laboratoire Tilman Fostex D2424 DVR User Manual Gebrauchsanleitungen Service Manual SCH722-CN English FCC STATEMENT Note: Sony VAIO SVF15212CX Copyright © All rights reserved.
Failed to retrieve file