ObjectID =  event .object .create  (  Procedure ,  ObjectID ,  Flag ,  Index  )  
                                               
Description :

This instruction changes an Alambik 2D or 3D object into an interactive element which can react to the mouse.

Parameters :

  • Name of the procedure managing events.
  • ObjectID of the graphic object (2D or 3D).
  • ALL
    RELEASE_BUTTON
    PRESS_LEFT_BUTTON
    PRESS_RIGHT_BUTTON
    RELEASE_LEFT_BUTTON
    RELEASE_RIGHT_BUTTON
    DOUBLE_CLICK_LEFT_BUTTON
    DOUBLE_CLICK_RIGHT_BUTTON
    EXIT_ZONE
    ENTER_ZONE
    RELEASE_BUTTON
  • This parameter is facultative. If you create many events, it may be easier to call an Index rather than a ObjectID. To do so, place each ObjectID in a table and call the procedure using an index to the table.

Return Handle :

  • ObjectID of the event.

Notes :


When creating the procedure, you should always organize its three parameters in the following order: Event ObjectID, Event Status, Index.

Examples :