Difference: 520NewTextWidgets (2 vs. 3)

Revision 32012-07-12 - JeanNeron

Line: 1 to 1
 
META TOPICPARENT name="APPX520Features"

Better HTML Widget

Changed:
<
<
A more capable HTML Viewer Widget is included in this Release.
>
>
More capable HTML Viewer Widget types are included in this Release.
 

Overview:

Changed:
<
<
A more capable HTML Viewer Widget is included in this Release. This is in addition to the standard HTML VIEWER control. This new widget can display full web pages (with or without controls), flash files, media files and can also act as an HTML Editor.

Defining the new HTML Widget

>
>
More capable HTML Viewer Widget types are included in this Release. This is in addition to the standard HTML VIEWER control. This new widget types can display full web pages (with or without controls), flash files, media files and can also act as an HTML Editor.

Using the new HTML Widget Types

 
Changed:
<
<
Define an HTML VIEWER widget on your image as usual, and at the end of the Tooltip, add the string @SHTML=<value>. Possible values are:
  • Blank. The control will display the web page indicated by the value in your field. The web page will be displayed without any controls (ie, no location field, back buttons, etc).
  • BROWSE. Same as Blank, except the widget will have controls for the user to enter a web address, go back a page, reload the current page, etc.
  • EDIT. The control will become an HTML editor, complete with a toolbar for changing fonts, sizes, colours, alignment, indentation, etc, etc.
  • FLASH. The control will play the flash file indicated by the value in your field.
  • MEDIA. The control will play the Media file indicated by the value in your field (Windows platforms only).
  • VLC. An alternative media player. This requires the installation of the VLC viewer from http://www.videolan.org/vlc.
  • CODEJS. The control will display the contents of your field with javascript syntax highlighting.
This viewer also supports the ability to fire user options via <a href="1">Click here for User 1</a>, same as the old viewer.
>
>
Put a text field on your image as usual, then in GUI Attributes, select one the following Widget Types:
  • WEB BROWSER to display a web page in a browser. The text field should contain the web address to display. At runtime, you can set --- WIDGET SHOW DECORATE to Y or N to control whether or not the browser controls should be displayed.
  • CODE VIEWER to display code with syntax highlighting. The text field should contain the code to display. At runtime you can also set --- WIDGET CONTENT TYPE to indicate the type of code (javascript, PHP, etc).
  • HTML EDITOR to display HTML code that the user can also edit. The text field should contain the HTML code to edit/display.
  • FLASH PLAYER to play a Flash file. The text field should contain the name of the flash file to play.
  • MEDIA PLAYER to play a media file. The text field should contain a path to a media file (avi, mp3, mp4, etc).
 
Changed:
<
<
The @SHTML technique will be replaced with Widget attributes in the final release (?).
>
>
The WEB BROWSER type also supports the ability to fire user options via <a href="1">Click here for User 1</a>, same as the HTML VIEWER control.

(Question: Is there a VLC option? This requires the installation of the VLC viewer from http://www.videolan.org/vlc. for non windows clients?)

 

Comments:

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback