October 31, 2025, 11:52:48 AM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


ID position ?

Started by paja, June 02, 2009, 10:36:45 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

paja

June 02, 2009, 10:36:45 PM Last Edit: June 03, 2009, 01:32:23 AM by paja
Hi,

How can i read the x,y position of any ID (Button) in window ?


SnarlingSheep

June 03, 2009, 03:27:34 AM #1 Last Edit: June 03, 2009, 03:29:10 AM by SnarlingSheep
Use GETSIZE:

GETSIZE <window handle>, L, T, W, H,<Button ID>

Example:

DEF L,T,W,H  as INT
GETSIZE myWin, L, T, W, H, 1

'L' and 'T' will hold the x,y position you are looking for.