Jump to content
Software FX Community

How can I know


User (Legacy)

Recommended Posts

Hello All!

I've got the following problem.

I want to know which point was selected by user.

The ChartFX documentation contains the event "LButtonUp( short x,

short y, short* shRes )". I use following code to convert this coordinate

to the number of series and number of point in series:

CComVariant v;

com_err = m_spChart->PaintInfo(

ChartfxLib::CPI_PIXELTOMARKER,

CComVariant(MAKELONG(x, y)),

&v);

com_err = v.ChangeType(VT_I4);

const WORD wSeries = LOWORD(v.lVal);

const WORD wPoint = HIWORD(v.lVal);

But number of point for series can be more

then WORD - 2 byte (). Everywhere else (in ChartFX documentation) the number

of point can be long - 4 byte. If I try use this event it will arouse an

error when user click on the point with number (for example) 70000 in

sieries. Have you got any work around to resolve the issue?

Thanks, Kirill

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...