qdosmsq:traps:trap_3:pixq

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

qdosmsq:traps:trap_3:pixq [2009/05/17 16:40]
george.gwilt created
qdosmsq:traps:trap_3:pixq [2009/05/17 16:53] (current)
george.gwilt SD_CHENQ/IOW_CHRQ added
Line 1: Line 1:
-====== SD_PXENQ/​IOW_PIXQ ======+====== SD_PXENQ/​IOW_PIXQ ​& SD_CHENQ/​IOW_CHRQ ​======
  
  
-This trap returns ​the window size and cursor position in pixel coordinates.+These traps return ​the window size and cursor ​position. 
 +^Trap^Value of D0.B^Action^ 
 +|SD_PXENQ/​IOW_PIXQ|$0A|Cursor ​position in pixel coordinates
 +|SD_CHENQ/​IOW_CHRQ|$0B|Cursor position in character coordinates|
  
 ^Call Parameters^^Return Parameters^^ ^Call Parameters^^Return Parameters^^
-|D0.B|$0A|D0.L|Error return.|+|D0.B|See above|D0.L|Error return.|
 |D1.L| |D1.L|Corrupted.| |D1.L| |D1.L|Corrupted.|
 |D3.W|Timeout |D3.L|Preserved.| |D3.W|Timeout |D3.L|Preserved.|
Line 28: Line 31:
  
 ===== Example ===== ===== Example =====
-The example below shows the use of this trap call. It is assumed that A0 contains the window'​s ID.+The example below shows the use of this trap call to find the window size and the position of the cursor in pixel coordinates. It is assumed that A0 contains the window'​s ID.
  
 <​code>​ <​code>​
  • qdosmsq/traps/trap_3/pixq.txt
  • Last modified: 2009/05/17 16:53
  • by george.gwilt