1. IMPORTANT:
    We launched a new online community and this space is now closed. This community will be available as a read-only resources until further notice.
    JOIN US HERE

ui_text_edit and the listener

Discussion in 'Scripting Workshop' started by Lovechld2000, Sep 6, 2021.

  1. Lovechld2000

    Lovechld2000 NI Product Owner

    Messages:
    267
    ui_text_edit doesn't let you edit content if you're using the listener in certain ways. Here's a tested workaround.
    You have a "text edit" button that just suspends your intensive listener ops, and just switch the edit button off in the text_edit callback...

    Code:
    on init
      declare ui_text_edit @myte
      declare ui_switch $edittext
    end on
    
    on listener
        if($edittext = 0)
           all your hardcore listener stuff
        end if
    end on
    
    on ui_control(@myte)
      $edittext := 0
    end on