/   Site Map  /   About Us  /  General Products  /  MV Products  /  Outsourcing   / Home page   /

PixieWare Software Documentation

PixieWeb/PixieLinkŪ Code Segments

 
 

 

This page presents example code segments that can be embedded into MVBasic programs to generate familiar GUI features. Please note that the external sub-routines (WEBDX/WEBIX) called by these code segments, are supplied as part of PixieWeb/PixieLink. They are used to convert traditional x/y positioning into Pixiel positioning used by web browsers. Also note the use of HTML placed directly into PickBasic code to produce other GUI effects.

Drop-Down List Box
* Generates the drop-down box for currency
CALL WEBDX(4,7,18,0,"Currency","","","",SC)
* Set up custom currency input selections:
CLIST = '<select id=fx2 size=1 class=field1 '
CLIST := 'onchange="JSCRIPT:EProcess(this);">'
CLIST := '<option value="NZD" selected>NZD - New Zealand Dollar'
CLIST := '<option value="AUD">AUD - Australian Dollar'
CLIST := '<option value="USD">USD - United States Dollar'
CLIST := '<option value="JPY">JPY - Japanese Yen'
CLIST := '<option value="CAD">CAD - Canadian Dollar'
CLIST := '<option value="EUR">EUR - Euro'
CLIST := '<option value="UKP">UKP - United Kingdom Pound'
CLIST := '</select>'
CALL WEBDX(18,7,8,0, CLIST, "", "", "", SC )

Produces the following drop-down list box.



Button
CALL WEBIX(36,18,6,0, "Exit", "fx94", "<BUTTON>", 'style="background-color:lightblue"', SC)

Produces the following button. Note the style TAG to produce a "blue" button.

As an example, the following code is executed when the button is clicked. The button has a field.id=fx94, and if the button is clicked a case statement will execute the following.
CASE FIELD.ID = "94"
   WRITE REC ON F.TERR, ITEM.ID
   SC = "MSGBOX|'":ITEM.ID:"' filed."
   CRT SC
   STOP

Call Another Program and Refresh Original Screen Upon Return

COMMON STACK.LEVEL
STACK.LEVEL = STACK.LEVEL + 1
CRT "^CACHE":
CALL fbf.cust
CRT "^CACHERETRIEVE|":STACK.LEVEL:
SC := "^VALID|fx0^FOCUS|fx0"
STACK.LEVEL = STACK.LEVEL - 1

NOTE: CACHE/CACHERETRIEVE are PixieWare commands to save and retrieve web pages. So after saving a web page in the cache, a new web page may be generated, and the original page may be refreshed when required. STACK.LEVEL keeps track of multiple levels of caching. Similar to the BACK button on the browser.


Message Box
Generates a standard message box which includes an "OK" confirmation button.

CRT "MSGBOX|ERROR: Cannot open file TERR":

Email: sales@pixieware.com


/   Site Map  /   About Us  /  General Products  /  MV Products  /  Outsourcing   / Home page   /