BECOME PART OF THE COMMUNITY - Sign up here
  • Do you mean something like this?

    Code
    return function ()
        local dialog = GetFocusDisplay().ScreenOverlay:Append('BaseInput')
        dialog.H, dialog.W = 100, 300
        local swipe_button = dialog:Append("SwipeButton")
        swipe_button.target = CurrentProfile()
        swipe_button.Property="colorreadout"
    end
  • I recommend using "PropertyControl" UI object type then.

    Code
    return function ()
        local dialog = GetFocusDisplay().ScreenOverlay:Append('BaseInput')
        dialog.H, dialog.W = 100, 300
        local property_control = dialog:Append('PropertyControl')
        property_control.target = CurrentProfile()
        property_control.Property='colorreadout'
    end
  • Hello Guys,

    Is it possible to Assign a Lua genrated UI to a LayOut?

    I want to create a layout viewer witch has some sequences assigned so it and also a few Input fields vor variables and checkboxen

  • I recommend using "PropertyControl" UI object type then.

    Code
    return function ()
        local dialog = GetFocusDisplay().ScreenOverlay:Append('BaseInput')
        dialog.H, dialog.W = 100, 300
        local property_control = dialog:Append('PropertyControl')
        property_control.target = CurrentProfile()
        property_control.Property='colorreadout'
    end

    Aahhh thats more of what I'm looking for.

    How would you go about assigning a custom list of properties for the dropdown? Ive been doing ':Dump()' on everything I can think of to try and disect the CurrentProfile() behaviour you have but with a table of item I have created.

  • the concept of the special buttontypes like swipebutton, propertycontrol etc is that these are automatically populated by the property-values of the assigned object/property, so that the UI doesn't have to be reprogrammed if the property-values change or are expanded.

    if you want a non-object/property related button that opens a custom popup-list, you should make just that:

    here is one way to do it:

  • the concept of the special buttontypes like swipebutton, propertycontrol etc is that these are automatically populated by the property-values of the assigned object/property, so that the UI doesn't have to be reprogrammed if the property-values change or are expanded.

    if you want a non-object/property related button that opens a custom popup-list, you should make just that:

    here is one way to do it:

    Ok good,

    but it is better not to differentiate the buttons like this

    I would like to integrate it into my code but I already use select(3, ...)

    what are selects for?

    how many can we define?

    are they pointers?

  • doesn't matter if you already use select(3,...) you can use select multiple times, or rename my code to your varname for select3

    the first argument to the select function defines the starting position for the arguments that follows

    local forename, surname = select(2, 'Mr.', 'John', 'Doe', 'London', 'UK' )

    local city = select(4, 'Mr.', 'John', 'Doe', 'London', 'UK' )

    local name1, name2, town = select(2, 'Mr.', 'John', 'Doe', 'London', 'UK' )

  • Post by Ma3Pro (January 22, 2024 at 7:41 AM).

    This post was deleted by the author themselves (May 4, 2024 at 8:01 AM).
  • doesn't matter if you already use select(3,...) you can use select multiple times, or rename my code to your varname for select3

    the first argument to the select function defines the starting position for the arguments that follows

    local forename, surname = select(2, 'Mr.', 'John', 'Doe', 'London', 'UK' )

    local city = select(4, 'Mr.', 'John', 'Doe', 'London', 'UK' )

    local name1, name2, town = select(2, 'Mr.', 'John', 'Doe', 'London', 'UK' )

    thank you Andreas for these explanations.

    I made a very nice dialogue box :)

    but now when I call it in a function, my code continues and doesn't wait for the dialogue box to finish. :(

    Also impossible to make a return with this function??????;(:?:

    Code
    local return_Dialog = CreateInputDialog(display_Handle)
        if return_Dialog[1] then
            Echo("return")
        end

    of course in function CreateInputDialog(display_Handle) i make

  • but now when I call it in a function, my code continues and doesn't wait for the dialogue box to finish. :(

    Also impossible to make a return with this function??????;(:?:

  • OK I found my mistake.

    I wanted to change a messagebox to this dialbox.

    I have my dialbox in Main

    and called my various functions from this one

  • Returning to the SwipeButton. I can't find documentation for it. I need to make a choice between "Some 1", "Some 2", "Some 3". Something like that:

    How to do it right?

  • How to do it right?

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!