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

Solved waveform - disable midi drag and drop icon

Discussion in 'Scripting Workshop' started by mindblower23!, Sep 18, 2021.

  1. mindblower23!

    mindblower23! NI Product Owner

    Messages:
    40
    How do I get rid of the midi drag and drop icon on a waveform ui element?

    Screenshot 2021-09-18 at 15.40.33.png
     
  2. EvilDragon

    EvilDragon Well-Known Member

    Messages:
    19,938
    You need to disable the UI_WAVEFORM_USE_MIDI_DRAG flag by using set_ui_wf_property(). See KSP Reference.
     
    • Like Like x 1
  3. mindblower23!

    mindblower23! NI Product Owner

    Messages:
    40
    This one is quite buried in the manual ... and it's also hard to grasp for me why it needs to be done after an attach_zone ... but that's probably because I I don't know anything about slices yet o_O

    Many, many thanks, this did the trick: set_ui_wf_property(p_sample_waveform, UI_WF_PROP_FLAGS, 0, 0)