Posts by Nigel63

BECOME PART OF THE COMMUNITY - Sign up here

    This example shows how you can display faders on a dialog. It also shows how a resize corner can be included to allow the user to change the size of the dialog. I've attached the LUA script for this.




    There appears to be a lot of UI controls available for creating dialogs.


    For example, take a look inside any of the "*.uixml" files that can be found below "C:\ProgramData\MALightingTechnology\gma3_1.5.2\shared\resource" on a Windows onPC installation. These files appear to contain an XML definition of the dialogs used by the MA system. This is a useful source of information regarding the names of the available UI controls and their properties.


    Also, if you look at some of the .lua files below that path you will find examples of the signalTable being used to respond to UI events.


    Hopefully that will be of help to others.

    They changed PopupInput() recently. Try this:


    Code
    function DisplayPopup(displayHandle)
        local modes = {"Off", "Auto", "Slow", "10% Steps", "Large Jumps", "Small Jumps", "Tiny Jumps", "Random"}
        local selectedIndex, selectedMode
        selectedIndex, selectedMode = PopupInput({title = "Mode", caller = displayHandle, items = modes})
        Echo("Selected index: " .. selectedIndex .. ", mode: " .. selectedMode)
    end
    
    return DisplayPopup

    Hi,


    If it isn't possible to add icons and control the background color of inputs using the MessageBox() function, does anyone know if it is possible to create your own custom modal dialogs?

    I notice the LUA test code that comes with the desk sometimes gets a ModalOverlay and then calls Append("Button").

    I'm wondering if this technique can be used to build your own modals from scratch. I've tried this, but without more information like a good example I've not managed to get very far!


    Thanks,

    Nigel

    Hi,

    I'm using the LUA MessageBox() command to display a dialog containing multiple inputs, and it works fine, as shown below.




    This results in the following dialog.



    What I'd like to do is display a different icon for each input at the start of each input row.
    Also, I'd like to set the background color of each input row differently.

    I've seen examples of this being done, but can't find out how to do it!

    I've tried the obvious. e.g. using "icon" and "backColor" properties on the inputs table, but it doesn't work.

    Any help would be appreciated.

    Thanks,

    Nigel