Saltar al contenido principal

Búsqueda

Búsqueda

Dropdown List And Autofill

Comentarios

3 comentarios

  • Avatar
    Shotaro Ito
    Hi Scott,
    There's no option to automatically update user prompt value, correspond to prompt input by user.

    What you can do is update value after prompt is closed by Vb Script onPostPrompt event.

    attached is a simple format, which allows user to select a value in dropdown (G / Y / R), then update a label text (to Green / Yellow / Red) depends on selected value.

    Give sharename to 2 texts ("TX1" for dropdown source, "TX2" for another text)
    and create a text object with Event control VB Script source.

    in OnPostPrompt Event:
    [code]'Update substring TX2 depends on TX1's value
    If TX1 = "G" Then TX2 = "Green"
    If TX1 = "Y" Then TX2 = "Yellow"
    If TX1 = "R" Then TX2 = "Red"
    [/code]

    in OnAutoSelected event:
    [code]'give default value of this text
    Value = "Script"
    [/code]

    The sample works BarTender 8.01 Professional or later.
    There might be another way of achieving your requirement.
    0
  • Avatar
    Legacy Poster
    Arigatou Shotaro. That helped my situation and the example label you attached was very very helpful!
    0
  • Avatar
    Legacy Poster
    The downloadlink doesnt work.... Can anyone help me out?

    Thnx!!

    Gijs
    0

Iniciar sesión para dejar un comentario.