I would like to display "tool tips" in a graph created with FW Tgraph class. See below a graph sample, created with a different software tool, to illustrate my request.
Here the mouse is over May 2010 Wires Bar.
[url][url=http://postimage.org/][/url]
By moving the mouse over a BAR the tooltip would display the information related to that series (ex. information with the X Legend and Y Value associated to it)
I did some testing by integrating the following method into TGRAPH class.
- Code: Select all Expand view RUN
- METHOD MouseMove( nRow, nCol, nKeyFlags ) CLASS TGraph
if ::lDrag
return ::Super:MouseMove( nRow, nCol, nKeyFlags )
else
::oWnd:SetMsg( ::cMsg ) // Many thanks to HMP
if ::oCursor != nil
SetCursor( ::oCursor:hCursor )
else
CursorIBeam()
endif
// Testing
msginfo(::aSeries[2,1])
if ::bMMoved != nil
return Eval( ::bMMoved, nRow, nCol, nKeyFlags )
endif
// if ::oBtn != nil
// ::oBtn:Refresh()
// endif
endif
return nil
However the tool tip is displayed as soon the mouse is inside in any position of Graph control.
How can we know when the mouse is over a specific Bar?
The graph below is using Fivewin TGRAPH Class
[url][url=http://postimage.org/][/url]
Any ideas?
Regards,
George