Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with MoveUpDataCursor

Status
Not open for further replies.

Greenleaf

Programmer
Feb 14, 2002
93
IT
Hello I have a plot.
I need to assign two procedures. The first to
Plot.OnMouseMoveDataCursor and the second to
Plot.OnMouseUpDataCursor.

For the first, there is not problem, I wrote a procedure with the required parameters (consulted the help files) and everything's fine.
The second is big, and I say BIG, trouble. Help Files say that the event TPlot.OnMouseUpDataCursor needs a procedures whose only parameter is an integer. Fine, during compilation the compiler says :"Incompatible types: parameters lists differ". I've tried everything, I've tried to change the parameters but with no results. Please help me!
 
I just did a google search for "OnMouseUpDataCursor" and it returned a parameter list for VB and VC++.

iPlotCustomX.OnMouseUpDataCursor
iPlotCustomX
Occurs when the user releases a mouse button that was pressed with the mouse pointer over a DataCursor.

Visual Basic OnMouseUpDataCursor (Index As Long, Button As Long, Shift As Long, X As Long, Y As Long)
Visual C++ OnMouseUpDataCursor (long Index, short Button, short Shift, long X, long Y)

Description
Use OnMouseUpDataCursor to perform actions after the mouse pointer is released over a DataCursor. The index of the DataCursor object is passed as the Index parameter.

So, assuming this is the same component you are using the parameter list would probably be something like:
Code:
OnMouseUpDataCursor(Sender: TObject; Button: TMouseButton; Shift: TShiftState; Index, X, Y: Integer);
but maybe in a different order.

Clive
Runner_1Revised.gif

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"To err is human, but to really foul things up you need a computer." (Paul Ehrlich)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To get the best answers from this forum see: faq102-5096
 
I tried putting different parameters and I think I tried also the parameters suggested by you but the compiler says:
"tbutton non compatible with object",
I delete tobject and it says "tbutton non compatible with shift", so i delete shift and he goes on "Integer not compatible with tbutton" so I say A-ha:"so that's integer that you want!" I leave integer and the problem starts again...........
 
What is the exact type of the plot component you are using?

Clive
Runner_1Revised.gif

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"To err is human, but to really foul things up you need a computer." (Paul Ehrlich)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To get the best answers from this forum see: faq102-5096
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top