Custom User Interfaces

Related API functions

V-REP offers a powerful user-customizable interface to simulations. That interface, called custom user interfaces, can take the form of dialogs that integrate buttons, edit-boxes, sliders or labels. Any action on custom user interfaces (e.g. button-click, text edition, slider movement) is reported as a message that can be intercepted by appropriate API calls. This allows customizing a simulation to a great extent. Following displays several custom user interface examples:

[Custom user interface examples]


Custom user interfaces can be free (unassociated), or associated with objects. In the case a custom user interface is associated with a scene object, copying/pasting/cutting/deleting the object will also automatically copy/paste/cut/delete the associated custom user interface. This is an important feature (e.g. when copying a robot that displays its proximity sensor readings in a custom user interface, you also want the sensor display to be copied). Custom user interfaces are saved together with a scene (all custom user interfaces are saved), or together with a model if associated with any object in the model. Custom user interfaces can also be saved/loaded on their own: [Menu bar --> File --> Save custom user interfaces as...] or [Menu bar --> File --> Load custom user interfaces...]

If you prefer using customized Windows style dialogs instead of custom user interfaces, refer to the plugin section (If you chose to do so, you will however have to implement all the association and duplication mechanisms yourself).


Recommended topics

  • Editing custom user interfaces
  • Custom user interface dialog