On Thu, 15 Nov 2001 09:05:04 -0000, Norman Dunbar <[EMAIL PROTECTED]> wrote:
> I'm having a couple of problems on QPV2V2 calling the SD_PXENQ trap (sorry, > I don't have the SMSQ name for it - I'm an old lag !) It's IOW.PIXQ (TRAP #3 with D0=$A). > I have my 4 word buffer filled with values, but I'm getting incorrect > results for the xpos and ypos values - offsets 4 and 6 in the buffer. > > The buffer is 4 words and is in the following order - width, height, xpos, > ypos - at least that's what it is supposed to be. I get correct values for > width and height, but garbage for xpos and ypos as follows : > > #0 444x40a0x30 > #1 444x200a0x190 > #2 444x200a0x190 > > If I open a new channel #3 as 'scr_100x150a50x70', I get > > #3 100x150a0x0 > > Which is totally wrong as far as positioning is concerned. NO !!! It's perfectly right on the contrary: IOW.PIXQ returns the window size and the CURSOR POSITION in pixel (NOT the window origin !). When the window is defined, the pixel coordinates are of course set to 0x0; try to print something in #3 and then re-call IOW.PIXQ: you will get a new value for words at offset 4 and 6. BTW, if you want good info on SMSQ/E (or, QDOS, SMSQ, ARGOS,...) assembly programming, I warmly recommend you to buy the QDOS/SMS reference manual from Jochen Merz ! QDOS/SMS forever ! Thierry ([EMAIL PROTECTED]).
