Showing Message dialogs and prompts in Helm panels

With Helm 4.7.1, you can now show simple dialog boxes and alerts in Helm panels.

You can use these with Lua scripting from PC-based Helm panels (but not WebPanels yet…)

The script functions are available using the RootPanel object, and are as follows

  • H.RootPanel:ShowError()
  • H.RootPanel:ShowWarning()
  • H.RootPanel:ShowInformation()

Each can take up to three parameters – the primary message, some details, and “expanded” information which is initially hidden from the user.  Here’s a sample

H.RootPanel:ShowError("Something bad happened","The details...", "and some extra stuff" )

You can use just a single parameter.

H.RootPanel:ShowError("Something bad happened")

 


Asking Questions

There are two functions for prompting the user input: AskYesNo and WarnOkCancel. Again, they take up to three parameters, but they return a boolean value ‘true’ if the user selects Yes or OK

if H.RootPanel:AskYesNo("Continue?") then
...
end

 


File Load and Save dialogs

… to be completed…

Privacy Preference Center

Essential

These cookies are required for technical reasons in order for this website to work, for example in order to login as a registered user and to speed up load times.

gdpr,__cfduid,wf_loginalerted_,wfwaf-authcookie-,wordpress_logged_in_,wordpress_sec_

Performance

These cookies enable us to track and monitor the interests of visitors to our website. We use this information to better understand how our website is being used and improve the user experience.

_gat1,_ga,_gid

External content

When you visit some pages that contain videos hosted on external sites these sites will set temporary cookies to provide this content.

ASP.NET_SessionId