| Both sides previous revision Previous revision Next revision | Previous revision |
| scripting:dialogs:paragraph [2015/03/12 17:34] – [Styles] admin | scripting:dialogs:paragraph [2018/01/10 20:41] (current) – external edit 127.0.0.1 |
|---|
| |
| <note>If text contains embedded link (href) no styles are applied and text rendered as normal (except of link)</note> | <note>If text contains embedded link (href) no styles are applied and text rendered as normal (except of link)</note> |
| | |
| | ===== Events ===== |
| | |
| | ^ Event ^ Description ^ |
| | | **[[scripting:dialogs:events:onclick|onclick]]** | event handler (function name) to be called, if link in text will be clicked. If not defined, default handler will be called which will open the link target in web browser| |
| |
| ===== Example ===== | ===== Example ===== |
| <paragraph text="Hello, World! This is a really long paragraph in order to show button alignment is centered." align="left"/> \ | <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="Testing the font" font="MS Shell Dlg 2" size="20" style="bold|underline" colour="#00FF00"/> \ |
| <paragraph text="Link to <A HREF="http://www.hippoedit.com/">The Link</A>"/> \ | <paragraph text="Link to web site: <A HREF="http://www.hippoedit.com/">The Link</A>"/> \ |
| | <paragraph text="Action link <a href="none">Click Me</a>" onclick="OnClick"/> \ |
| <group minwidth="75" minheight="23" uniform="true" align="center"> \ | <group minwidth="75" minheight="23" uniform="true" align="center"> \ |
| <button title="&OK" default="true" returnval="ok"/> \ | <button title="&OK" default="true" returnval="ok"/> \ |
| </group> \ | </group> \ |
| </dialog>@'; | </dialog>@'; |
| | |
| Output().writeln("Dialog 4 returns: " + dialog(dialog_template, varStorage)); | Output().writeln("Dialog 4 returns: " + dialog(dialog_template, varStorage)); |
| | |
| | function OnClick() { |
| | alert("Control Text: " + this.Text + "\r\nControl Name: " + this.Name); |
| | } |
| </file> | </file> |