|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
MSChart axis labels always on a sideShow quote > *09.05.2005 22:25, johndoeit schrieb: Thank you again. As regards mouse events, however, there has been a
misunderstanding. If i right click with mouse, no selection is
produced. So my question was: how can I force the selection of an item
given mouse coordinates. Now, however, I found the answer: given the
X,Y mouse coordinates in twips (for instance in mouseUp event) , I can
use the method "TwipsToChartPart" to get where and what I'm clicking
and eventually force its selection using the "SelectPart" method
--
johndoeit
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------> > > [color=darkred] > > 2) There is a way to force the selection of a point in a series > with > > the right mouse button click? > > MSChart fires default VB-mouse events (down, move, up) that tell > you, > which button is pressed/released). > When you select datapoints on a series Chart fires events like > SeriesSelected, > PointSelected, PointLabelSelected that tell you the indexes of the > element. > Also you can select series, points or datapontlabels by code (see > Select-Method for these objects). > Also you can influence the way MSChart handles clicks. Clicks can > belong to a > series or to a datapoint. Have a look at the > 'AllowSeriesSelection'-property. > If you set it false, a click belongs to the next datapoint, and > PointSelected > is fired, rather than SeriesSelected, which is fired when > AllowSeriesSelection > is true. > > > > -- > > johndoeit > > > ------------------------------------------------------------------------ > > Posted via [url]http://www.codecomments.com[/url] > > > ------------------------------------------------------------------------ > > > > > -- > Gruesse, Christoph > > Rio Riay Riayo - Gordon Sumner, 1979 * |
|||||||||||||||||||||||