Forcing drag and drop event functions to return character co-ordinates

!compat dragchar

Force drag and drop event functions to return character co-ordinates


SYNTAX

!compat dragchar = 5

In a program compiled with scc 5.6.2 RC2 or later, the EV_DRAG… events now return the x and y co-ordinates in pixels if the program uses a pixel grid, and in characters if the program uses a character grid. Previously, these co-ordinates were always returned in characters.

This was implemented as a bug fix. However, existing programs may depend on the previous behaviour. To avoid the change, add the declaration !compat dragchar = 5 (or any number < 6) to programs before recompiling them with scc 5.6.2 RC2 or later.


RELATED TOPICS

Drag and drop

Drag and drop - target window event function