DRAGITEM Example


Example:

 

STOPB

BUTTON

 

RESULT

FORM

9

  

...

 

  

CREATE

STOPB=8:9:62:72,"Stop"

  

ACTIVATE

STOPB,STOPR,RESULT

  

DRAGITEM

STOPB,ON

  

...

 

STOPR

 

 

  

...

 

  

RETURN

 

 

This DRAGITEM instruction allows movement of the STOPB object on the screen. When the object is moved, the STOPR routine is called and the RESULT field contains the screen coordinates of the new position of the STOPB object.

 



PL/B Language Reference DMAKE Example DRELEASE Examples