PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

POINT definition ???

I am trying to interpret POINT p from the stylusdown(...), stylusUp(..), etc virtual members of CGAPIapplication.


What is POINT?

thanks
joe
Hi Joe,

Try right-clicking on "POINT" and choose "Go to definition". You will be asked if you want to recompile with browse information if you use EVC/VS6.0, choose Yes. You will then get to the definition of the POINT structure.

Basically a POINT structure only has two members: x and y.

So.. If you have a POINT p, to get the x-koordinate you simply write:
DWORD dwXCoord = p.x;

Also, another tip: Don't do any processing-intensive work on key/stylus events, since they will lock the message pump. Only set variables here (such as m_dwXstylus = p.x) and take any action on ProcessNextFrame().

/Johan