Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

OnPan with CWGraph

Bonjour

 

Comment utiliser l'événement OnPan du CWGraph. Déjà, je n'ai trouvé aucune trace de cet événement dans la documentation du CWGraph, elle n'est présente que dans la documentation du CWGraph3D (qui a 3paramètres : X, Y et Z, on peut supposer que pour le CWGraph, le Z est absent)

Ensuite quel est le numéro d'événement de OnPan ainsi que la syntaxe de ses paramètres ? J'ai bien trouvé un exemple avec OnCursorChange que j'utilise déjà :

    ON_EVENT(CCWGraph, IDC_CWGRAPH, 1, OnCursorChange, VTS_PI4 VTS_PVARIANT VTS_PVARIANT VTS_PBOOL)
mais aucun avec OnPan.

 

 

Merci d'avance

0 Kudos
Message 1 of 3
(6,683 Views)

Good morning,

 

In this part of the forum, it's better to speak in english as it's an international part (if you want there is a french community 😉 : http://forums.ni.com/ni/board?board.id=4170 )
Then the OnPan event can indicates the end of the panning operation.

My first question is why do you want to use this event? And what is the version of your measurement Studio?

Regards,

Nacer M. | Certified LabVIEW Architecte

0 Kudos
Message 2 of 3
(6,669 Views)

Hi

 

I just wanted to synchronise multiple CWGraph (cursors & X axis position). I've already synchronised cursors of each CWGraph using OnCursorChange Event.

Finally I decided to use DISPID_MOUSEMOVE and CursorChange events to do this.

If the 2 events occur successively, I consider the user want to move the cursor, and I dispatch the Event to others CWgraph.
If only the first event occurs, I set the track mode to TrackPanPlotAreaX to move plots, and I synchronise minimum and maximum of others CWGraph.
 
It works. Finally the OnPan cannot be used in my case if it only occurs at the end of the pan
(each CWGraph should continously follow the CWGraph currently panning)
 
Multiple CWGraphs 
 
 I've seen this example in Graph3D Events project example:
 
    ON_EVENT(CEventsDlg, IDC_CWGRAPH3D, 8 /* Pan */, OnPanCwgraph3d, VTS_PVARIANT VTS_PVARIANT VTS_PVARIANT)
 
but, it seems not working with CWGraph.
 
Regards.

 

Message Edité par thy31 le 04-23-2009 06:55 AM
0 Kudos
Message 3 of 3
(6,661 Views)