problems with controlP5 - cannot move controls using alt and dragging mouse

edited November 2013 in Library Questions

Hi, i'm having a problem with the feature to allow dragging of control items. i'm using enableShortcuts() and setMoveable(true) but seem to be missing something. I CAN use alt-shift-H to show and hide the controls but if i try to use alt and click and drag on any control then nothing happens, anyone got any suggestions or is this broken in this version (latest).

Thanks!

Tagged:

Answers

  • Answer ✓

    Hi, works for me (for example for bang, button, slider, dropdownlist, knob, etc. - accordion though doesnt) when I use

    cp5 = new ControlP5(this);
    cp5.enableShortcuts();
    

    no need for setMoveable(true).

  • weirdly i got it to work after reading this by changing where i set the enableShortcuts() to right after instantiation and it worked! no idea why it was failing before and i don't want to spend the time to attempt to find out but thanks a lot, editing pixel values was not fun when i knew there was a better way

Sign In or Register to comment.