MultipleForms

Description: How to use several forms
Programmer: Unknown
Compiler: Smart Mobile Studio 2.2

Using Multiple Forms

It should take you just a few minutes to use the code on this page:
  1. start a new Visual Components Project and save the project as MultipleFormsDemo;
  2. add a new form named Form2 by clicking on the second icon in the Project manager
  3. add Form3;
  4. add at the left of each form a TW3Header (from the Mobile tab) and TW3Label (from the Common tab);
  5. change the captions of the labels (in the Property inspector) to Form 1, Form 2 and Form 3;
  6. copy and paste the Smart Pascal code of the three forms to replace the default code;
  7. select Unit1 and save it as uMultipleFormsDemo;
  8. copy and paste the code of uMultipleFormsDemo to replace the existing code;
  9. Execute!

The Smart Pascal code of uMultipleFormsDemo and the three forms and finally the XML code of Form1 follow the demonstration. (The XML code of the other two forms is the same as that of Form1 except for the name of the form and the caption of the label).