scripting:dialogs:paragraph

This is an old revision of the document!


Paragraph Control

Textview control for not editable descriptive text, field labels, links. Support different fonts, sizes, styles etc. Paragraph control example

Property Default Value Description
id empty id (name) of the script data object associated with control
align stretched Alignment of the control
style none Styles of the edit control (can be combined)
required false required property of the control (if control is initial, “positive” buttons will be disabled)
minwidth 0 Minimum width, in characters, of the edit box control
minheight 0 Minimum heights, in characters, of the edit box control. Only relevant for multiline edit box
cuebanner empty Prompt shown in control background if no text is entered
autocomplete empty Autocomplete mode
Style Description
none Default mode
password Characters are hidden under asterisk symbols (used for password fields)
lowercase Characters are auto converted to lower case
uppercase Characters are auto converted to UPPER case
number Control allows only decimal digits (0-9) to be entered
readonly Control is grayed and displayed text is not editable
multiline Editor allows to show multiline text (height may be controlled with minheight property)
wantreturn Editor accepts Enter keystroke for inserting new line
wordwrap Editor does a word wrap of lines, if it does not fit into control width and horizontal scrolling is disabled
vscroll Control shows vertical scroll bar (in multiline mode only)
hscroll Control shows horizontal scroll bar (in multiline mode only)
paragraph.hejs
var varStorage = new Storage(); 
var dialog_template = 
'@<dialog title="Test Dialog" resizing="both"> \
   <image sys_icon="information"/> \
   <columnbreak/> \
   <paragraph text="Hello, World! This is a really long paragraph in order to show button alignment is centered." align="left"/> \
   <paragraph text="Testing the font" font="MS Shell Dlg 2" size="20" style="bold|underline" colour="#00FF00"/> \
   <paragraph text="Link to &lt;A HREF=&quot;http://www.hippoedit.com/&quot;&gt;The Link&lt;/A&gt;"/> \
   <group minwidth="75" minheight="23" uniform="true" align="center"> \
   		<button title="&amp;OK" default="true" returnval="ok"/> \
   		<button title="&amp;Cancel" returnval="cancel"/> \
   </group> \
</dialog>@';
Output().writeln("Dialog 4 returns: " + dialog(dialog_template, varStorage));