Tutorial 2008-04: Form Embedded Hotlinks
Hydra 4GL supports Hotlinks which can act like normal buttons or call up a browser window with a specified URL.
Hotlinks are used to trigger events (key or action) or to launch the browser
Acts like a button – but is displayed like a HTML Web-Hotlink
It can raise an action/key event or execute an URL/HTML
It will always be drawn ‘Underlined’
Are initialised ‘de-activated’ by default
Can/need to be
Activated DISPLAY “!” TO hl_save
Deactivated DISPLAY “*” TO hl_save
Radio buttons also support ‘Accelerator Keys’ (Example ALT-S) by adding a ‘&’ symbol prior to the label string
config=“F5 {&Save}",
The label text AND the event/URL is dynamic and can be changed at runtime
DISPLAY “F5 {my label text}” TO hl_save
DISPLAY “www.querix.com {my label text}” TO hl_save
Hotlinks are used to trigger events (key or action) or to launch the browser
Acts like a button – but is displayed like a HTML Web-Hotlink
It can raise an action/key event or execute an URL/HTML
It will always be drawn ‘Underlined’
Are initialised ‘de-activated’ by default
Can/need to be
Activated DISPLAY “!” TO hl_save
Deactivated DISPLAY “*” TO hl_save
Radio buttons also support ‘Accelerator Keys’ (Example ALT-S) by adding a ‘&’ symbol prior to the label string
config=“F5 {&Save}",
The label text AND the event/URL is dynamic and can be changed at runtime
DISPLAY “F5 {my label text}” TO hl_save
DISPLAY “www.querix.com {my label text}” TO hl_save
DISPLAY “www.google.com” TO hl_control
Hotlinks support following graphical attributes:
LEFT, RIGHT, CENTER
BOLD
COLOR (Red, Blue, Green, …)
UNDERLINE
Font (Script)
Hotlink as a Key/Action Event
Example:
hl_cust_email=formonly.hl_cust_email,
config=“F5 {Save}",
widget="hotlink",
color=bold Blue;
Hotlink as a URL - Website launcher
Will launch www.querix.com
Example:
hl_home=formonly.hl_home,
config=“http://www.querix.com
{Querix Home Page}",
widget="hotlink",
color=bold Blue Underline;
Hotlink as a URL - Email launcher
Will launch your default e-mail client
Example:
hl_cust_email=formonly.hl_cust_email,
config="mailto:info@querix.com
{Write me an e-mail}",
widget="hotlink",
color=bold Blue Underline;
Hotlink as a URL – File System launcher
Will launch your Browser for drive C:
Example:
hl_drive=formonly.hl_drive,
config=“file://c:
{Browse local C: Drive}",
widget="hotlink",
color=bold Blue Underline;