The Big Red Toolbox MGCENet Tools for the Net: HTML and IP Addresses October 24, 1999 © NSB Corporation. All rights reserved. |
Connect your Windows CE device to your desktop using ActiveSync. On the desktop, run the program MGCENet.exe. Follow the instructions on the screen to complete the installation. Both controls will be installed and registered automatically.
The IP Address control makes it easy to display and obtain an IP address from a user by providing the interface used in several other components, such as dial-up network setup, ethernet setup and so on. The IP Address control supports the following properties, methods and events:
addobject "MGCENet.IPAddress", "IPAddr", 10, 10, 140, 20
Value | Value sets and retrieves the current contents of the IP Address as a text string. Partial addresses may be specified as well as full four byte addresses.
|
Border | TRUE (non-zero) enables a border around the control (the default). FALSE (zero) removes the control border.
|
Enabled | TRUE (non-zero) enables the control, FALSE (zero) disables the control. The default is TRUE.
|
BackColor | Set and retrieve the control background color RGB value. The default value is White (16777215).
|
ForeColor | Set and retrieve the control text color, including the dots between numbers. The default value is Black (0)
|
FontName | Set and retrieve the name of the font used by the control. The default is "Arial"
|
FontSize | Set and retrieve the size of the font used by the control. The default value is 14.
|
FontBold | TRUE (non-zero) causes the control to display text using a bold font. FALSE (zero) sets it to use a non-bold font. The default is FALSE.
|
Tabstop | TRUE (non-zero) allows you to Tab to the control. FALSE (zero) prevents Tab from reaching the control. The default value is TRUE.
|
Version | Returns the version number of the control as an integer. |
Show | Call this method to make the control visible.
|
Hide | Call the Hide method to make the control invisible.
|
SetFocus | SetFocus sets the input focus to the first number in the control.
|
addobject "MGCENet.HTML","HTML",10,24,OUTPUT.Width-20,OUTPUT.Height-26
Border | Set Border to TRUE (non-zero) to display a border around the control or FALSE (zero) to remove the border. The default value is TRUE.
|
ForceFit | Set and retrieve the ForceFit flag. When set to TRUE, images are forced to to fit within the display area of the control. Set to FALSE to allow the images to display using their normal size regardless of the control size. The default value is FALSE.
|
Style | Set and retrieve the Style property which determines how the edge of the control is displayed. This is different from the Border property. Styles include:
|
Tabstop | TRUE (non-zero) allows you to Tab to the control. FALSE (zero) prevents Tab from reaching the control. The default value is TRUE.
|
Version | Returns the version number of the control as an integer. |
Clear | Remove all data from the HTML control by calling Clear.
|
Copy | The Copy method causes all selected text to copy to the clipboard.
|
Show | Call the Show method to make the control visible.
|
Hide | Call the Hide method to make the control invisible.
|
SetText | The SetText method clears the contents of the control and adds a specified HTML formatted text string.
HTML.SetText = "<font size=3><b><center>Fission Boosting</center>" |
AddText | AddText appends text to the control, adding it to existing data within the control.
HTML.AddText = "Your string here" |
SetTextFromFile | SetTextFromFile clears the control and adds new HTML formatted text from a specified ASCII file.
|
AddTextFromFile | This method adds HTML formatted text read from a specified ASCII file but does not clear the control. The text is appended to exist data.
|
ToAnchor | An "anchor" is an HTML tag which identifies a section of the text. You may create hyperlinks to the anchor and, upon receiving a click event from the control you may jump to that section by calling the ToAnchor method.
|
TextDone | Call this method when you are done adding text to the control until the next time Clear, SetText or SetTextFromFile are used. This causes the control to do "clean up" work, fixing any errors in HTML and finishing rendering, such as with images and tables.
|
SelectAll | SelectAll does just that, selects all text in the HTML control.
|
SetFocus | Call this method to set the input focus to the HTML control.
|
Click | The click event is triggered when a hyperlink is selected or a form is submitted. Two parameters are passed to the event handler, Text and Data. The text parameter ismost commly used and contains the hyperlink text or the ACTION text from a form. In addition, a form using "METHOD=GET" will cause the field names and data to be appended to the action text. For example, "formtext?Field1= Yes&Field2=My+Name&Field3=Yes". When a form using "METHOD=POST" is submitted, only the action text is sent as the Text parameter. The field names and data of a "METHOD=POST" type form is passed as the Data parameter. Using the first example, Text would contain "formtext" and Data would contain "?Field1=Yes& Field2=My+Name&Field3=Yes".
|
10/23/99: Added Copy method to HTML object.