background image

Chapter 1 - 6

Form Designer User Guide

Action

Show the options dialog box

Displays an options dialog box where you
can, for instance, change the display
language and other settings.

Action

Show the printing dialog box

Displays the print dialog box where you print
from.  Here, you can also set the number of
labels printed and see a preview of the print
job among other things.

Action

Show the printer selection dialog box

Displays a dialog box showing a list of all of
the possible printers to print from.

Action

Show the printer settings dialog box

Displays the printer settings dialog box
where settings can be set

Action

Show the page setup dialog box

Displays the page setup dialog box where
the user can set label size,  page size, margin
size...

Action

Print

Allows the user to print. 

Parameters

Label Quantity 

  

Sends the printer the number of labels to be
printed.  If the document includes a counter,
the counter increments along with the
number of labels.

Содержание Form Designer

Страница 1: ...Form Designer User Guide DOC FD UG US 23 02 06 ...

Страница 2: ...with this license No portion of this manual may be copied reproduced or transmitted by any means whatsoever for purposes other than the personal use of the buyer unless written permission is obtained from Braton Groupe sarl 2006 Braton Groupe sarl All rights reserved Teklynx and its products are trademarks or registered trademarks of Braton Group sarl or its affiliated companies All other brands a...

Страница 3: ...properties no data 2 10 Setting the control properties with data 2 11 Setting the Database grid s properties 2 12 Setting the Form s properties 2 12 Setting the Text box s properties 2 13 Setting the Combo box s properties 2 14 Setting the Buttons properties 2 14 Example 2 2 17 Generic xmf 2 17 Placing the controls 2 17 Setting the control properties no data 2 18 Setting the control properties wit...

Страница 4: ...Setting the Textbox properties 2 25 Setting the Preview properties 2 25 Setting the Datagrid properties 2 25 ...

Страница 5: ...ures such as Label and printer type selection Print preview Page and Printer settings Database connections Multiple Screen Form application Pre defined values and data control The layout Form Designer s layout is easy to use reducing the time necessary to familiarize yourself with the software It includes a Menu bar a Tool bar a Tool box a Properties grid a Main window and a Status bar ...

Страница 6: ...lt F will open the File menu The Tool bar The Tool bar is usually displayed just below the Menu bar It is made up of icons which represent the most commonly used software functions These icons can be clicked to quickly access these functions The Tool box The Tool Box is made up of the 12 controls that can be added to a form Label Link label Button TextBox CheckBox GroupBox ListBox ComboBox DataGri...

Страница 7: ...ctive text used to link to a webpage or other specific location Button an active control used to perform set functions actions TextBox data entry field CheckBox a control used to activate deactivate or select deselect predefined features GroupBox non active box placed around a group of controls for visual organization ListBox displays a list of data as defined in its properties ComboBox displays a...

Страница 8: ...menu command The Main Window The Main window displayed in the center is your work area Here you will add controls and create the forms you will use to input data for label printing Once the form has been created and configured you can go to View Execution to run the form and see its final result DatabaseGrid displays the database defined in the properties along with some basic functionalities such...

Страница 9: ... have been included in the Actions menu to save you time and to eliminate the need for programming In some cases where specific parameters must be configured these too have been pre defined in the Action s configuration The pre defined Actions are MAIN WINDOW Action Show the document property dialog box Displays the properties dialog box for the selected document which shows information such as cr...

Страница 10: ...tion Show the printer selection dialog box Displays a dialog box showing a list of all of the possible printers to print from Action Show the printer settings dialog box Displays the printer settings dialog box where settings can be set Action Show the page setup dialog box Displays the page setup dialog box where the user can set label size page size margin size Action Print Allows the user to pr...

Страница 11: ... and override any printers that may be associated with the document Parameter Printer Allows you to set a printer as the default printer to use when the button is clicked or to use the printer selected from a list if a printer selection variable is used and defined in the form properties Action Show Label Designer Allows the user to launch the Label designer for label editing Parameter Show Launch...

Страница 12: ...true Action Execute a VB Script Allows the user to execute a user defined VB Script that can perform actions beyond the Form Designer s capabilities This gives the user greater flexibility Parameters File name Links a vbs file to the action Synchronous Synchronizes the VB Script with Form Designer ...

Страница 13: ...is easy with Form Designer All controls can be added to a form by way of drag and drop then configured in the properties grid to set color text action To show you how to create a form we will reproduce 2 examples the DBF xmf form and the Generic xmf form Example 1 ...

Страница 14: ... as in the following diagram Setting the control properties no data With Form Designer it is easy to set your control properties since the Properties grid is displayed on the right hand side of your screen If you do not see the Properties Grid go to View Properties grid When you select a control in your form the associated list of properties will be displayed in the Properties Grid 1 Set the Label...

Страница 15: ...s Type Fixed contents Contents Value DataBaseGrid 4 Set the Text box properties as follows Name txbQty 5 Set the Combo Box properties as follows Name cbxPrinter 6 Set the Button properties as follows Name btnPrint Contents Type Fixed Contents Contents Value Print and the second button as Name btnPortal Contents Type Fixed contents Contents Value Back to Portal Setting the control properties with d...

Страница 16: ...u can select from an existing list of linked databases or add a new one The latter will take you to the Add Database Connection wizard Setting the Form s properties Although the form does not appear in the ToolBox it too is a control to be configured In fact for certain controls such as datagrids or listboxes where data can be linked the Form acts as the base and requires specific parameters to be...

Страница 17: ...and OK 4 Repeat steps 2 and 3 for Qty When you return to the Form properties grid you will notice that you now have 9 variables Setting the Text box s properties This TextBox is used to tell the printer how many label copies it must print The number entered in the textbox by the user defines the number of copies If a counter is present on the label the counter will be incremented with each label c...

Страница 18: ...he Buttons properties Buttons not only require the standard text properties such as Name and Font they also require an action Form Designer has included in its Button properties grid an action field that allows you to pick from a standard list of actions These actions have been created and predefined for the ease of the user eliminating the need for complex programming and reducing the possibility...

Страница 19: ...and choose Print Four parameters must be defined Label Quantity set Type as Variable and Value as Qty this variable can be selected from a drop down list it is the variable created in the form properties Label Copy leave with default settings Inter Cut leave with default settings Page Copy leave with default settings 10 Click OK The Print button has been configured to print the number of labels as...

Страница 20: ...from the drop down menu 2 parameters must be defined File Name set Type as Fixed and Value as MainMenu xmf New Window set Type as Fixed and leave Value empty The Back to Portal button has been configured to open the MainMenu xmf form where the user can select a printer and access the page setup the printer settings and printer management ...

Страница 21: ...l from a list view its data variables preview your label choose how many label copies you would like printed as well as configure and select the printer to be used Placing the controls For this example you will need to drag and drop the following controls 3 labels 1 link label 1 picture box 3 buttons 1 textbox 1 listbox 1 combo box 1 group box 1 preview 1 datagrid ...

Страница 22: ...perties as follows Name lblSelect Contents Type Fixed Contents Contents Value Select your label Font name MS Sans Serif Font size 8 25 Font Bold True Name lblPrinter Contents Type Fixed Variables Contents Value Printer Font name MS Sans Serif Font size 8 25 Font Bold True Name lblQty Contents Type Fixed Contents Contents Value Label Quantity Font name MS Sans Serif Font size 8 25 Font Bold True 2 ...

Страница 23: ...S Sans Serif Font Size 8 25 Font Bold False Navigate URL http www yourwebsite com 4 Set the GroupBox properties as follows Name gbxPreview Contents Type Fixed Contents Contents Value Preview 5 Set the Button properties as follows Name btnSetting Contents Type Fixed Contents Contents Value Settings Image File Name pagesetup bmp Name btnPrint Contents Type Fixed Contents Contents Value Print Name bt...

Страница 24: ...Add 4 Under Various Description click on the down arrow and select Show the printer selection dialog box 5 Click OK The Settings button has been configured to open a dialog box where the user can select a printer to print to that may be different from those available in the dropdown ComboBox to configure see Setting the ComboBox properties 1 Click the Print button btnPrint 2 Go to Actions and clic...

Страница 25: ...bel The parameters set make it so that the there is only one page copy of the print job and that the number of label copies corresponds to the number defined by the user 1 Click on the Settings button btnSettings 2 Go to Actions and click the button A dialog box opens 3 Click on Add 4 Under Various Description click on the down arrow and select Load a new form 5 Under Various Parameters click on t...

Страница 26: ...will notice that there is a listbox which displays a list of labels Therefore it can be said that there is a Label Selection variable since there is no fixed attached label There are also 2 other variables required in this form the Printer Selection variable which is selected from the drop down combobox and the Label Quantity variable which the user defines in the textbox as being the number of la...

Страница 27: ...ow the list of Form variables that have just been set 3 Select the Label Selection variable and click OK Setting the ListBox properties The ListBox is used to display a list of all of the lab labels that can be selected for printing To configure you must select the location from which the list of labels is coming from and define the contents as variable since they will change along with your selec...

Страница 28: ...regardless of their name Setting the ComboBox properties The ComboBox is used to select a printer from the predefined list To set the properties 1 Click on Contents Type and define it as Variable 2 Click on Contents Value and define it as Printer Selection 3 Click on Data Type and select Printers 4 Click on Data Value Printer type and select Windows This will display the list of Windows printers c...

Страница 29: ...perties 1 Click on Contents Type and set it as Variable contents 2 Click on Contents Value and select Label Quantity Setting the Preview properties 1 Click on Contents Type and set it as Variable contents This is all the configuration needed to preview the label chosen in the listbox Setting the Datagrid properties The Datagrid displays the data from the selected label along with its variable name...

Страница 30: ...orm Designer User Guide 4 Click on Data Table Title and set it as Please enter data Once you have followed all these steps go to View Execution or press F4 to execute your form and test that everything works properly ...

Отзывы: