Jump to content
Software FX Community

Problem with gallery "Area" and the RButtonDown event


User (Legacy)

Recommended Posts

Posted

Hi,

when I display a series with N values using the gallery "Area" and catch the

RButtonDown event from ChartFX, the argument nPoint will only assume values

0 to N-2, but never N-1. How is it possible to catch the event for the last

value in the series?

Best regards,

Thorsten Blawatt

Posted

Same way. I don't know what the problem is.

A BAR has a width and there is ONE bar for each point.

In an Area chart in the other hand, a point has no physical size, what is

drawn is a CONNECTING area between him and the next point. Therefore in an

area chart, you can not click in ONE point, you always click BEWEEN two

points. This is the nature of this chart type.

I do not understand how Customizing Context menus is related to the first

question. Can you please explain.

--

FP

Software FX, Inc.

  • 2 weeks later...
Posted

In our application, each point corresponds to an object containing some more

information than just the value itself. What we are trying to do is show a

menu when the user right-clicks on a point giving him the chance to perform

operations on the object associated with the respective point. In an area

chart, however, this doesn't seem to be possible for the last point in a

series because of the implementation you described. So it doesn't seem

possible for us to do what we want using an area chart. We'd just like to

know if there's any other way we can go or if we just should refrain from

using area charts.

Greetings,

Thorsten Blawatt

"SoftwareFX Support" <support@softwarefx.com> schrieb im Newsbeitrag

news:00h0zKFsDHA.3512@WEBSERVER1...

> Same way. I don't know what the problem is.

>

> A BAR has a width and there is ONE bar for each point.

>

> In an Area chart in the other hand, a point has no physical size, what is

> drawn is a CONNECTING area between him and the next point. Therefore in an

> area chart, you can not click in ONE point, you always click BEWEEN two

> points. This is the nature of this chart type.

>

> I do not understand how Customizing Context menus is related to the first

> question. Can you please explain.

>

> --

> FP

> Software FX, Inc.

>

>

Posted

What do you suggest ? You can implement pretty much anything you want it is

basically up to you.

If you want the right-click to act on the point to the right you can do so,

simply add 1 to the point index passed to you. This of course will make it

impossible to click the first point.

In other words the implementation can be anything, the important thing here

is: How do YOU want your users to select a point ? given all the

characteristics of the Area chart I explained before. This is not a

limitation on Chart FX, this is the nature of an Area chart. You need to

decide what do you want to do.

--

FP

Software FX, Inc.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...