•  Back 
  •  XCONTROL Callback Functions 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  %About 
  •  Show info about hypertext 
  •  View a new file 
Topic       : The ATARI Compendium
Author      : Scott Sanders / JAY Software
Version     : 1.25 (20/6/2003)
Subject     : Documentation
Nodes       : 1117
Index Size  : 32614
HCP-Version : 6
Compiled on : Atari
@charset    : UTF-8
@lang       : en
@default    : 
@help       : %About
@options    : +g -i -t4 +y +z
@width      : 100
View Ref-FileXCONTROL Callback Functions
cpx_button()                                                       XCONTROL

Syntax

VOID (*cpx_button)( mrets, nclicks, event )
MRETS *mrets;
WORD nclicks;
WORD *event;

Function      cpx_button() is called in an Event CPX when a MU_BUTTON
              event has occurred.

Parameters    mrets points to a structure containing the mouse event which
              triggered the function as follows:

              typedef struct
              {
               WORD x;   /* X position of mouse */
               WORD y;   /* Y position of mouse */
               WORD buttons;  /* Mask of buttons depressed */
               WORD kstate;  /* Keyboard shift state */
              } MRETS;


              nclicks specifies the number of clicks processed. If this
              event should terminate the CPX, the function should place
              a 1 in the WORD pointed to by event.

Binding       cpxinfo.cpx_button = cpx_button;

              return ( &cpxinfo );

Comments      This function will only be called if Set_Evnt_Mask() is
              called with MU_BUTTON specified as an event to wait for.

Group         XCONTROL Callback Functions