Quantcast
Channel: DIAdem topics
Viewing all articles
Browse latest Browse all 3198

DIAdem 2012 : VIEW with User Dialog Box - Detect user action in VIEW

$
0
0

Hi everybody,


I'm quite new to DIAdem but I've been discovering the power of this tool in the past weeks. For now, I'm only using VIEW and a lot of scripts.


I have a layout with 3 areas : 2 for graphics and one for a SUD with the ViewConnector object.


I have no problem managing events from my SUD but I still use VIEW built-in features such as Band Zoom and I'd like to detect that the user zooms on a graphic because I want my 2 graphs to have the same X-axis scale at all time. I know which properties I need to monitor in order to detect when the user zooms but I just can't find a way to trigger an event.


The ViewConnector Event_ActiveAreaChanged in my SUD is good for some functionalities but I need to create a custom event for the Band Zoom.


I don't think that my SUD has to be involved in all that but I just can't figure out how to run a monitoring script in VIEW that runs permanently to detect if the user uses the zoom. I thought about running a script in Windows background outside of DIAdem and use the TOCommand object with the method: CmdExecuteSync to read the running DIAdem instance properties. As far as I know, this method do not recognize anything object oriented such as the 2 properties I need to detect the Band Zoom utilisation on my first graph :
             View.Sheets("Sheet1").Areas("GraphArea1").DisplayObj.XBegin
             View.Sheets("Sheet1").Areas("GraphArea1").DisplayObj.XEnd


I could do all the zoomings from the SUD instead but I would really prefer to keep all the VIEW built-in features and trigger some event in background to accomodate my preferences.


Thank you for your help!


Viewing all articles
Browse latest Browse all 3198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>