On 10 Jan 2011, at 14:32, Lee Privett wrote: > > 10 AT 10,20 PRINT "FRED"; > 20 PRINT LOCX : remark this would return 24 > 30 PRINT LOCY: remark this would return 20 > > > 10 AT 10,20 PRINT "FRED" > 20 PRINT LOCX : remark this would return 1 (or 0) > 30 PRINT LOCY: remark this would return 11
As a matter of fact, I see that the extensions for TURBOptr contain two functions, GETCU(k) and GETPX(k). Given the ID of a window, k, these functions return the number 2^16*x-position + y-position. GETCU returns the character position and GETPX the pixel position. Thus GETCU(CHANNEL_ID(#1)) and GETPX(CHANNEL_ID(#1)) will give the information for channel #1. CHANNEL_ID is a keyword in TURBO TK Code. George _______________________________________________ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
