Handling multiple events simultaneously.

Hi,
I have a window with a CNiGraph inside. In the graph I have multple traces. I have a toolbar which has the following buttons:
* Pan
* Zoom Area
* ZoomX
* ZoomY
* Range mark
* Add annotation
When the user clicks a toolbar item I have to change the Tracking mode to the appropriate mode, eg
if (m_nMode == 0)
m_Graph2D.SetTrackMode(CNiGraph::TrackAllEvents);
else if (m_nMode == 1)
m_Graph2D.SetTrackMode(CNiGraph::TrackPanPlotAreaXY);
else if(m_nMode == 2)
m_Graph2D.SetTrackMode(CNiGraph::TrackZoomRectXY );
else if(m_nMode == 3)
m_Graph2D.SetTrackMode(CNiGraph::TrackZoomRectX);
else if(m_nMode == 4)
m_Graph2D.SetTrackMode(CNiGraph::TrackZoomRectY);
else if(m_nMode == 5)
m_Graph2D.SetTrackMode
(CNiGraph::TrackDragCursor);
else if (m_nMode == 6)
m_Graph2D.SetTrackMode(CNiGraph::TrackDragAnnotation)
My problem is the following. If the user has a cursor displayed and wants to zoom I set the trackmode, however if after the zoom he wants to move the cursor I have to change the trackmode. Is there a way to have multiple trackmodes at the same time. Meaning if the user creates a rectangle for zooming it zooms however if the user starts dragging an annotation or a cursor it will respond to that.
Since if I change to TrackAllEvents it will not track my cursor or my annotations, since the events are never fired.
Please help,
Thanks
Miklos

The Measurement Studio C++ graph does not support enabling multiple interaction modes. As you suggest, the way to do this is to have a toolbar, in which the user can select the interaction mode that he or she wants.
On a side note, the Measurement Studio .NET graph does support enabling multiple interaction modes. However, using the Measurement Studio .NET graph would require that you use a managed language (e.g. C#, VB.NET, Managed C++) for your user interface.

Similar Messages

  • Is it possible to handle multiple events using Jscript for a button in Apex

    Hi,
    I've application wherein in one of the pages for a button, I need to trigger 2 events as: 1. redirect to a new page upon 'click' of the button
    2. display a set of values on 'mouse over' that button.
    I'm able to handle both separately, but not in one button. I would like to know if there is any limitation in Apex that we cant handle multiple events? Currently I've put a text item near the button, and called the Jscript for mouse over event in that as a temporary workaround. Can someone let me know if this is feasible? If not any other alternative to handle this?
    Thanks in advance,
    gsachidh

    Hi Gsachidh,
    well interesting problem you're facinng. Indeed, it can't be specified using the 'Button Attributes' So we have to come up with an workaround.
    A quick en dirty solution would be to specify it with the 'Optional URL Redirect options'. In a normal button, with processing on same page, this would be 'no target'. but in case of additional things to be done this can be used, using an target URL. I used this many times, in example with popUp windows for refreshing the caller object when changes are made. In your case we have to add next to the href an onmouseover event. this can be done with;
    Target set to => URL
    URL - target => javascript:doSubmit('<button_name>');" onMouseOver="javascript:showTooltip('tooltip');"
    Here the " is the key, letting ApEx know the target (href) is doSubmit('<button_name>'), just like when no target would be specified and adding a new javascript event; onMouseOver.
    Although this is a dirty solution in my opinion, it is the best i could come up with. I have another idea in how to do this, that is by adding this event dynamically with javascript with an addEvent. But i don't have an example at the moment for this scenario.
    Simon
    Message was edited by:
    S1M0N

  • Handling multiple events in web application

    We are converting a window application to a web application. We are facing an issue while implementing the web application with Java on front end and Oracle DB in back end. Consider a field with a car registration number which needs to be verified if it exists in the DB and fetch the remaining values related to the car and display it. At the same time we also need to save the car registration number in the form (displayed in the browser) so that other operations (such as invoicing) can happen on the car. We have a constraint that we cannot touch any of the server procedures in the DB (which handles all DB calls) but could only play with the functions in the UI.
    Now the verification of the reg. no. happens whenever we go 'out of focus' from the text box where the reg.no. is written. However, if the user presses 'save' button to save the reg.no., verification should also occur and data should be saved. Now the problem we are facing is that on pressing the save button, two events are occurring simultaneously - 1. textbox with reg.no. is getting 'out of focus' and 2. save button is getting pressed resulting in verifying the reg.no. again. Due to this two events happening simultaneously, one or other method is failing leading to the car reg.no. not getting verified and saved as it should be.
    Could anyone think of any solution to overcome the issue?
    /Mayank

    Hi,
    Your assumptions are all correct. Indeed there is Javascript code executing on focus change and AJAX is doing the validations by inturn calling an oracle procedure through some Java rountine. The two requests are overlapping and hence blocking the complete execution of either, leading to the validation not taking place at all.
    The webpage gets refreshed everytime an event occurs and thus the next event can take place only after the page has refreshed once (after completing all the validations linked to that event). The problem is occuring since the page is not getting time to refresh. With simultaneous execution of 2 events, the validations related to 'Out of focus' remains incomplete before the 'save function' starts. I am constrained not to put the validation related to 'Out of Focus' in the beginning of 'save' event since that would alter functionality of the 'save' event. Again, I am not allowed to change any of the server procedures on the DB side and have to pass exactly the same i/o parameters for it to function properly.
    What I am trying to find is: Whether it is possible to find out (using some global variables) that when the 2 events are happening simultaneously, their functionalities could be combined and serialized in just one refresh of the webpage. and how?
    I am trying to get this project done by Java resources and am myself not very technical with Java. If a solution exists and I get to know it exists, I can guide the programmers to try out the approach that come up.
    Thanks so much :)

  • I wanna know handling multiple sessionbean simultanously like threadProgramming

    I should like to get return value through processing three sessionbean
    simultaneously in EJB like Thread Programing in normal programming.
    Simple for example...
    SimpleManager
    simpleMethod(String id)
         // this part must be done like multithread programming...
         String a = aRemote.get(id);
         String b = bRemote.get(id);
         String c = cRemote.get(id);
         return a+b+c;
    *) here, SimpleManager, aRemote, bRemote, cRemote is SessionBean
    Simply for example like this way, it call each remote sessionbean step by step.
    i know to call these remote sessionbean simultaneously, not step by step like
    multithread programming .
    (jsp
         -> call sessionbean
         -> call multiple sessionbeans like thread programming
         -> summing data
         -> return)
    And after all is done, i must know each return value. (a, b, c...)
    I wanna know how to find solution.
    Because it is not recommended to use Thread in EJB...
    sorry for my poor english...
    i wait your answer, bye ~~

    Use asynchronous programming, like JMS, MDBs. Use 2 queues: one for input,
    one for results. Wait until all results are gathered. This may time out.
    Other solution:
    1- Use a startup class to create N worker threads.
    2- Use a singleton class to control the threads.
    3- Access the singleton to invoke threads, as in
    String tid = Thread.currentThread().getName();
    ThreadManager.process(tid, id); //does not block
    ThreadManager.process(tid, id);
    ThreadManager.process(tid, id);
    String [] abc = ThreadManager.getAllResults(tid); //blocks with timeout
    TreadManager.resetResultArray(tid); //one array per thread name
    This method is a grey area and may not be portable.
    Emmanuel
    "JeongGil Choi" <[email protected]> wrote in message
    news:[email protected]..
    >
    I should like to get return value through processing three sessionbean
    simultaneously in EJB like Thread Programing in normal programming.
    Simple for example...
    SimpleManager
    simpleMethod(String id)
    // this part must be done like multithread programming...
    String a = aRemote.get(id);
    String b = bRemote.get(id);
    String c = cRemote.get(id);
    return a+b+c;
    *) here, SimpleManager, aRemote, bRemote, cRemote is SessionBean
    Simply for example like this way, it call each remote sessionbean step bystep.
    i know to call these remote sessionbean simultaneously, not step by steplike
    multithread programming .
    (jsp
    -> call sessionbean
    -> call multiple sessionbeans like thread programming
    -> summing data
    -> return)
    And after all is done, i must know each return value. (a, b, c...)
    I wanna know how to find solution.
    Because it is not recommended to use Thread in EJB...
    sorry for my poor english...
    i wait your answer, bye ~~

  • Multiple Event Handler

    Hey,
    This is probably a really stupid question but is there a way
    to declare an event handle on an Actions layer that handles
    multiple events?
    For example, both of these are equivalent:
    // on button
    on (rollOut)
    // on action layer
    btnTest.onRollOut = function()
    // on button
    on(rollOut, releaseOutside)
    // on action layer

    btnTest.onRollOut = btnTest.onReleaseOutside = function(){
    }

  • MVC �Best Practice� (handling multiple views per action/event)

    Looking for the best approach for handling multiple views for one action/event class? Background: I have a small application using a basic MVC model, one controller servlet, multiple event classes, and multiple JSP views. For performance reasons, the controller Servlet is loaded once, and each event class is an instance within it. Each event has an �eventProcess()� and an �eventForward()� method called by the controller, standard stuff.
    However, because event classes should not use instance variables, how should I communicate which view to forward to should based upon eventProcess() logic (e.g. if error, error.jsp, if success, success.sjp)? Currently, there is only one view mapped per event, and I'm having to put error handling logic in the JSP, which goes against the JSP being for just view only.
    My though was 1) A session object/variable that the eventProcess() sets, and the eventForward() reads, or 2) Have eventProcess() return a mapping key and have the conroller lookup a view page based upon that key, as opposed to 1-1 event/view mapping.
    Would like your thoughts!
    Thanks
    bRi

    Your solution seems ok to me, but maybe the Struts framework from Apache
    that implements MVC for JSP is a better solution for you:
    http://jakarta.apache.org/struts/index.html
    You should take a look at it. It has in addition some useful taglibs that makes life much easier.
    We have successfully used it in a project with about 50 pages.

  • Multiple event handling

    hi ,
    Please can i have the soultion for the problem which i am facing.
    My page is consists of the table where a single column is defined as MessageInputText.
    The data is accepted int and validited by PPR on the InputText.( i.e either by tabbing out the inputtext or by clicking the mouse outside the text box. )
    But in the rare senario when the user inputs the data and immediately clicks on the save or cancel button without tabbing out , the button functionality is not handled, as PPR is only activated.
    Can i know how to make the system recoginize to handle both the events simultanously.
    regards
    lakshmi

    Read "PPR Event Queuing" topic in PPR chapter of devguide.
    This is what it has to say
    PPR Event Queuing
    By default, when a PPR event fires, all subsequent events on the page are ignored. So, for example, assume you have a text input field configured to fire a PPR event when the user leaves, and you also have a submit button on the page. The user makes a change to the data in the text input field, and then uses her mouse to select the submit button. In this case, the text field's PPR event fires and the button click is ignored.
    If you want to change this behavior so the first event generated after the PPR event is processed immediately after the PPR event response is received (so the subsequent event is sent in a separate request), add the following code to your page's controller:
    import oracle.apps.fnd.framework.webui.beans.OABodyBean;
    import oracle.apps.fnd.framework.webui.OAWebBeanConstants;
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OAWebBean body = pageContext.getRootWebBean();
    if (body instanceof OABodyBean)
    body.setAttributeValue(OAWebBeanConstants.FIRST_CLICK_PASSED_ATTR, Boolean.TRUE);
    With this code, the button click described in the example above would no longer be ignored.
    Thanks
    Tapash

  • Can I have multiple event structures with the same event cases?

    Hello, 
    I'm doing an application that reproduces the front panel of the HP6675A power supply. To achieve this, I have done a state machine with different states
    (initialize, measures, voltage, current, ocp, ov, store, recall, etc). In each state, should have an event structure that catches the events of the buttons, like for example: if the current state is the Voltage mode and the user press the current button the next state will be the Current mode. For this in each state of the state machine should be the same event structure with the same events.
    My problem is that the Vi doesn't work properly when I have multiple event structures with the same event cases. There are some possibily to do this, and how? Or is impossible to have multiple events? I have been reading some posts, but I don't find solutions. 
    Any help is appreciated.
    Thank you very much.
    Solved!
    Go to Solution.

    natasftw wrote:
    Or as others mentioned, make two parallel loops.  In one loop, have your state machine.  In the other, have just the Event Handler.  Pass the events from the handler to the state machine by way of queues.
    A proper state machine will not need the second loop.  The "Wait For Event" or "Idle" state (whatever you want to call it) is all you really need in order to catch the user button presses.  The setup is almost there.  Maybe add a shift register to keep track of which state to go to in the case of a timeout on the Event Structure.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How to handle multiple selection in the Spark List control with checkbox as itemrenderer?

    Hi All,
    I am using checkbox as an ItemRenderer in spark list.
    I have a query.
    how to handle multiple selection in the Spark List control with checkbox as itemrenderer?
    how to retrieve the selected item label?
    Thank you in advance.

    Hi there, I'll tweak your code a little bit to something like this:
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
                    layout="vertical">
        <mx:Script>
            <![CDATA[
                 import mx.events.ListEvent;
                 import mx.controls.CheckBox;
               [Bindable]
               private var mySelectedIndexes:ArrayCollection=new ArrayCollection();
                private function onChange(e:ListEvent):void
                   if(CheckBox(e.itemRenderer).selected){
                             mySelectedIndexes.addItem(e.rowIndex);
                   }else{
                                  mySelectedIndexes.removeItemAt(mySelectedIndexes.getItemIndex(e.rowIndex));     
                   chkList.selectedIndices=mySelectedIndexes.toArray();
            ]]>
        </mx:Script>
    <mx:ArrayCollection id="collection">
            <mx:Object label="Test A"/>
            <mx:Object label="Test B"/>
            <mx:Object label="Test C"/>
            <mx:Object label="Test D"/>
            <mx:Object label="Test E"/>
            <mx:Object label="Test F"/>
            <mx:Object label="Test G"/>
        </mx:ArrayCollection>
    <mx:List id="chkList" dataProvider="{collection}" itemRenderer="mx.controls.CheckBox"  itemClick="onChange(event);" allowMultipleSelection="true"/>
    </mx:Application>

  • Best way to handle several events that may occur simultaneosly

    Hi all,
    I have an application vi in which I need to take care of several user generated events like menu bar selections, mouse clicks on controls (both single & double clicks) and many more.Also, all these events can occur simultaneously.Which would be the best method or architecture to handle all these events with ease?..All suggestions are welcome.
    Can I use dynamic event handling for this?..If so,how can I implement it? (I went through several documents & examples for dynamic handling but none of them explained properly in this context).

    mnx wrote:
    [..] several user generated events like menu bar selections, mouse clicks on controls (both single & double clicks) and many more.Also, all these events can occur simultaneously.[...]
    Hm, can you enlighten us how a user will create these events simultaneously?
    Or maybe i am a bad user as i always use either mouse OR keyboard to control an application, most often not both the same time (starting different "events" concurrently).
    Beside of this discussion, Producer/Consumer is a very good starting point to address this kind of requirement, as already stated above.
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • A frame failed to render while using Render Multiple Frames Simultaneously

    Hello fellow AE users:
    I've read other threads which deal with this issue, however they don't seem to be exactly what I'm experiencing so I'm starting a new thread. I did do several hours of due diligence by research others' handling of this issue, so I'm not just blindly reposting this question without having done some legwork.
    I'm getting this message when rendering one of my compositions:
    "After Effects warning: A frame failed to render while using Render Multiple Frames Simultaneously. Allocating more memory to the background processes in Memory & Multiprocessing Preferences may fix this problem. (26  ::  142)"
    First, some background on what led up to this. I've built an entirely new system from scratch based on the new Intel 5960X 8-Core processor, with 64GB of RAM on an Asus X99-Deluxe Mobo.Brand new install of Windows 8.1, and brand new install of After Effects CC (latest versions as of this posting) and all of my plug-ins (mostly Red Giant, also all updated to current versions.) I have a new video card in this system (Gigabyte GTX 980 G1 Gaming) however this issue also happened with my old 4GB GTX 680 as well, which was in the original i7-950 system (see below.)
    I've set up Multiprocessing preferences for 6GB reserved for system, 8 CPUs reserved for other applications which leaves "Actual CPUs that will be used: 8", with each CPU having a 6GB RAM allocation. That's 8x6=46G, leaving 18GB free for the operating system, which should be more than enough.
    One could speculate that there is some plug-in that is using too much memory, or something weird with QuickTime or H.264 decoding (the source is one Canon 5D mk II H.264 .mov and one jpeg file). However, this issue did *NOT* happen on my old system, which was 4-core Intel i7-950, 24GB RAM, running the same version of After Effects CC and my plug-ins, and with only 3GB/Thread of ram allocated instead of the 6GB/Thread i'm using here.
    I've simply loaded the old project on the new install and attempted to render. I have not changed any settings. I DID do the thing where you hold CTRL-SHIFT-ALT (or something like that) to reset all of the preferences when loading AE just in case that was the issue.
    So, why would this be able to render using multiple processes on my old box with only 3GB/thread, while it will NOT render on this new system with double that, 6GB/thread allocated?
    Please let me know if there is any other information I can provide that would be helpful to debug this.
    Many thanks in advance for your help!

    Thank you very much for the quick reply, Todd. I'll give that a shot. There also seems to be a problem with the Red Giant Cosmo plug-in. I get Cosmo engine initialization failures, but it's intermittent.

  • Multiple event structures in one VI

    I have two event structures in a single VI, one that handles events that freeze the user interface and one for events that don't. The latter group are all triggered acquisition tasks, where you arm the  data acquisition, but possibly might want to abort it (or do other things, while waiting for the data to come. Obviously you need a stop button to be active and responsive. In retrospect, using two loops was possibly a poor choice, but one I made because it never occured to me that these things would only fire once and have to be put in a while loop to be kept active. No other language does that as far as I know. Anyway, the question is how do I keep both active? Do I enclose both in a single while loop? Do I give each there own while loop. Do I give up and merge the two event structures into one. For clarity I would like to keep them seperate, but that is not essential. I'ld like to know what my options are.
    Solved!
    Go to Solution.

    rossu wrote:
    If they are in sperate while loops will they both run. If they are in one loop will the loop recycle if one structue is still waiting for an event to occur?
    The answer to this is fundamental to how LabVIEW works. A loop will not proceed to the next cycle until everything inside it completes. If you have two event structures in the same loop, both of them need to process an event (or a timeout) before the loop will iterate.
    You can have multiple event structures in the same VI.
    By "freeze the UI," do you mean the "Lock front panel..." checkbox in the event dialog? There is no problem with having some events that do lock the front panel and some that do not in the same event structure. I'm not sure that this is what you mean by "freezing" the UI, though.
    EDIT: and one more comment. Generally you should not put long-running tasks (like data acquisition) inside an event structure. Instead, the event case should pass those tasks off to a separate loop (for example using a queue) so that the event structure can quickly go back to listening for other events.

  • Event Structure: Multiple Events ??

    All
    I have a project where I have an event structure handling about 10 individual events. Would it be possible to fire multiple events at the same time ? For instance, if my event 3 is triggered and the corresponding process is running, can I trigger an event 7 to have it's process running ?
    Kudos always welcome for helpful posts

    Edit your event and make sure to uncheck "Lock front panel until the event case for this event completes", else you won't be able to do much.
    Attached is a simple example using two event structures. (All that said, maybe there is a better solution than using two events, just re-think your code).
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    2events.vi ‏42 KB

  • How do I select multiple events in iCal 8.0?

    In OSX Mavericks, I used to be able to select multiple events in iCal in the event list view. I could select the initial event in the span of events to be selected. Then hold Shift while selecting the final even in the span of events. As a result, all of the events in that span would be selected.
    in OSX Yosemite, this is no longer possible. There appears to be no list view, and holding the Shift button does not allow me to select a span of events.
    What is the best way to select a span of events, say as much as 30 events?
    Thank you.

    Empty Caches
    1. Safari > Preference > Advanced
        Checkmark the box for "Show Develop menu in menu bar".
        "Develop" menu will appear in the Safari menu bar.
        Click Develop and select "Empty Caches" from the dropdown.
    2. Quit Safari if open.
        Option click the "Go" menu in the Finder menu bar.
        Select "Library" and then "Caches".
        Look for the folder 'com.apple.Safari"
        Right click "com.apple.Safari" and select "Move to Trash"
        Relaunch Safari.

  • IE running under XP can't handle multiple SWF files, Why?

    I noticed that IE 8 running under Windows XP cannot handle multiple swf files in one page.
    Up to about 10 files is no problem they are loaded and we can play them ( buttons that start a small audio file).
    But more of these files in one page will stop IE.
    Firefox ( 3.6.28) runs them fine.
    And also IE 8 and/or Firefox under Windows 7 handles them perfectly.
    Has anyone any idea what can cause this and how to resolve this?
    Thanks,
    Onno Tomson
    The Netherlands

    Sorry...I still don't get it. What is it about Windows FUS that keeps iTunes from running running the process twice? It can run many other non-Apple windows apps in multiple user sessions (commercial apps, open source apps, audio/video apps, networked apps). I can even run two different virtual machines at the same time under two different user sessions.
    Why can iTunesHelper.exe run twice but iTunes.exe cannot? Why can I run Safari at the same time? Quicktime Player runs fine under multiple user sessions.
    Blaming it on Windows and/or FUS sounds like FUD. Can anyone give a valid technical reason? Semaphores? Mutexes? An admission (and explanation) that the Windows version is purposely crippled?

Maybe you are looking for

  • How use Time Machine to restore/transfer all mail folders, accounts, mail s

    I did an erase of my HD & a new install of Snow Leopard. Had Leopard OS X 10.8 b4 (corrupted SBBD, freezes had to use Disk Warrior to fix file structure) I tried Archive & Install 1st - but it failed. The plan was to fix Leopard 10.8 & once fixed upd

  • HBO GO and NBC sports

    After prompting me for MYVERIZON username and password, both HBO GO and NBC Sports are telling me I'm not subscribed to FIOS TV.

  • Anyone having problems with adobe reader. not being able to view email attachments?

    I have been recieving emails now for the last 9 days & I have not been able to view attachments  for some reason?

  • Statistics in BW

    Hi gurus.. i want to know if is possible to know this: 1) how much users access to a particular query.. 2) how much times a users logon to the system Is it possible to do from a transaction code ?¿? (suim , st02, st03.. etc) I see inthe business cont

  • Illustrator installation with error.

    I'm trying to do the installation of the illustrator but giving this error 82829s5 already checked the procedures that are reported, but still could not install the program.