Touch to Mouse events conversion

Hi Everybody!
Does anybody know how correctly fire mouse events to Oracle Maps in javascript?
Default translation touch events in iPad Safari does not quite fit. It try zoom or pan browser window, not map. :(
If catch touch events and disable default translation I can zoom and pan MVMapView object.
But how fire "click","mousemove","mouseover" events on Map? I need dispatch event to ThemeBasedFOIs (InfoWindow Popup and other listeners)?

Yes. The Oracle Maps tutorial contains examples (the tutorial can be found in your mapviewer deployment
e.g. http://localhost:7001/mapviewer/fsmc/tutorial/index.html) and documentation in the API reference
(e.g. http://localhost:7001/mapviewer/fsmc/apidoc/index.html). Look at MVEvent and the attachEventListener function of MVMapView, MVThemeBasedFOI, and MVFOI classes for example.

Similar Messages

  • Mouse events triggered on touch

    In a multi-touch application, looks like the mouse events are triggered also on touch, so there is no way to detect if it was a cursor mouse down or a touch screen touch begin. Is this the case?
    Thanks, chr

    Hey Vishal,
    What version of the cwgraph are you using? I tried the following program with CWGraph version 7.1 and I did not receive mouse events for the invisible plot.
    CWGraph1.PlotY (y)
    CWGraph1.Plots(1).Visible = False
    CWGraph1.TrackMode = cwGTrackAllEvents
    I also tried the PlotMouseMove event and I received this event if the plot was visible and didn't if it was invisible. This event was a lot easier to test. It's hard to click on an invisible plot. Did you see the same behavior with PlotMouseMove?
    There are some known issues with invisible plots in earlier versions of Measurement Studio. Please see link below. If you are using an old version then I would assume this is the problem.
    RHIVEID=101&RNAME=ViewQuestion&HOID=5065000000080000007A2B0000&ECategory=Measurement+Studio.For+Visu...
    I hope this helps!
    Regards,
    Sarah Miracle
    National Instruments

  • Mouse Events on iOS Touch Devices

    I've noticed that mouse events like CLICK and MOUSE_DOWN work on the iPhone and iTouch devices.  Is there a down side to using Mouse events instead of the Gesture and touch events?
    -dis

    I used before mouseClick until I had to make two options with one finger.
    Play song one a click
    Sync song with finger move over component.
    This was archived with this.
    private function tapBegin(evt:TouchEvent):void {
                   _isTab = true;
                   if ( !isIconLabelItemRenderer(evt.target) ) {
                        return;
                   _touchTarget = evt.target as IconLabelItemRenderer;
              private function tapMove(evt:TouchEvent):void {
                   _isTab = false;
                   if ( !isIconLabelItemRenderer(evt.target) ) {
                        _touchTarget = null;
                        return;
                   if ( !_touchTarget ) {
                        return;
                   if ( _touchTarget.data.identifier != evt.target.data.identifier ) {
                        _touchTarget = null;
                        return;
              private function tapEnd(evt:TouchEvent):void {
                   if ( !_touchTarget ) {
                        return;
                   if ( _isTab ) {
                        Player.add(_touchTarget.data);
                        Logger.m(evt.type + " : " + "click");
                   } else {
                        DownloadManager.add(_touchTarget.data);
                        Logger.m(evt.type + " : " + "slide");

  • Resolved: The Install Badge requires a mouse event (?)

    Edit:
    I came across this page which specifies that the restriction of installing only within the context of user event handler is by design. Nuts.
    ===
    Hi,
    I've recently tweaked our application's install badge thru the fla provided with the sdk. All works well but apparently, calling the function installApplication from the loaded air.swf has no effect if the caller is not in the context of a mouse event handler. A Flash mouse event handler, that is, since calling from a js mouse event handler has no effect.
    Without this restriction, it would be easy to use air.swf as an installation engine, keeping all the UI in html and allocating to flash only a display area suitable for notifications such as 'installing AIR'. This would greatly facilitate the development of installation pages, no longer restricted by the properties exposed by the badge swf.
    Looking forward to a reply from the powers that be,
    David

    I'm trying to draw that way too but I'm not able to find the solution, i've searched long way from all docs and tutorials but it's not easy for a beginner. And the Apple's gesture drawing tutorial was "replaced" by a GL ES sample wich do not match my needing.
    I just want to draw a line following the touch using drawrect and touchesmoved.
    If anyone could help me i would really appreciate. Thank you.

  • Mouse events causing script to skip

    Hi all,
    The code itself is roughly 500 lines long so I'll only post snippets if needed, but here is the problem I am experiencing. I have a cocoa-applescript application for compressing files with ffmpeg and then rsycning over ssh to our servers at work. I use expect scripts as background processes (expect_command &> /tmp/output.txt &) to read and display progress
    Here is the problem I am experiencing. When the application is run (both inside and outside of Xcode, as well as on other machines) every time the mouse moves or clicks it causes the applescript to skip around. So for instance, if it is in the middle of compression and the mouse is moved it'll exit the repeat loop that is displaying progress and move to uploading. If I don't touch anything all works just fine. There is literally nothing in the code (save for GUI buttons that initiate sender routines) that has to do with mouse events, in fact I didn't even think it was possible to intercept mouse events with applescript.
    I am just looking for anything that could shed some light on this situation. Either ideas of what might be causing it (I've tried everything I can think of, i.e cleaning, rebuilding, testing on multiple platforms), or workarounds. Like I'd even be happy if I can just get it to ignore the mouse during my repeat loops for progress.
    First time poster, but long time reader so sorry if I am breaking any forum rules. I am happy to provide any info that can help diagnose this very very strange bug.

    Hard to say without seeing some code, but you might try adding some log statements around the code where it is moving on to the next step to see why the previous step is exiting. 
    In general you should avoid using any significant AppleScript repeat loops, since events will get backed up in the queue until the system is given some time to process them.  The timing of the actual problem may also be getting distorted by any backed up events, since they would be delayed while the script is in the loops.

  • Mouse events don't work on a button from a panel ran in a DLL

    Hi.
    I have a DLL that loads a panel.
    Since it's a DLL I can't do the RunUserInterface() function, because the DLL would be stuck waiting for the panel events.
    I only do the LoadPanel().
    When I click with the mouse on one of the buttons, the pushing down event (simulating the button being pressed) doesn't happen and the callback doesn't run.
    But if I press the tab button until the focus reaches the button and press Enter, the callback of the button is executed.
    An even more interesting aspect is that this happens when I call the DLL on TestStand, but on an application of mine that calls the DLL just for debug everything works fine.
    How can I enable the mouse events?
    Thanks for your help.
    Daniel Coelho
    VISToolkit - http://www.vistoolkit.com - Your Real Virtual Instrument Solution
    Controlar - Electronica Industrial e Sistemas, Lda
    Solved!
    Go to Solution.

    Hello Daniel,
    I got surprised when I read your post, because I am experiencing something almost the same as you do.
    I have a DLL (generated by an .fp instrument driver I wrote) which performs continious TCP communication with the UUT.
    It starts 2 threads, each for reading from one of the 2 different IPs the UUT has.
    Another DLL tests this UUT (with the help of the communication DLL above) by exporting functions to be called by TestStand steps.
    If the second DLL wants to display a CVI panel in order to wait for the user response or displays a popup (MessagePopup, ConfirmPopup, etc), user cannot press the buttons.
    Actually, there is a point your program and mine differ. I call RunUserInterface and the button's callbacks call QuitUserInterface, so the execution continues after a button is pressed. The problem is buttons cannot be pressed. I also tried looping on GetUserEvent  but it did not solve the problem.
    There are 2 findings:
    1. I had a small exe to test my instrument driver DLL and the popups in it worked pretty well (this coincides with Daniel's findings).
    2. We workedaround the problem by shutting down the communication threads in the instrument driver DLL before the popup appears and restrating them afterwards. Although they are separate threads in another DLL, they were somehow blocking user events on another DLL running.
    S. Eren BALCI
    www.aselsan.com.tr

  • Mouse Events are slow

    Hello everyone,
    I'm currently working on an standard as3 (1024x768) app that
    is running inside a chromeless Air window to take advantage of the
    transparency.
    All my tests where done using windows XP professional and AIR
    1.0 (the same problem existed in beta3).
    The issue I'm having is related with Mouse Events. Somehow
    the events take a lot of time to reach the swf file when the user
    clicks inside the transparent window.
    It's natural that the app runs slower inside a transparent
    window (the framerate drops) but I wasn't expecting the clicks to
    suffer from such delay (it takes sometimes 2-5sec).
    The app is very CPU intensive and the transparencies make it
    worse. Something inside the AIR framework is not dispatching the
    events properly.
    I say this because I tried using the virtualMouse class from
    senocular together with a socket to simulate the mouse clicks and
    that did the trick.
    In conclusion:
    Something in the AIR framework for windows XP is messing up
    the dispatch of the Mouse events when the app is under heavy cpu
    usage inside a chromeless window. I click on the window and it
    takes 1-2sec to receive the click event.
    However when I dispatch the MouseEvent.CLICK myself using
    the virtual mouse class the application immediately receives the
    event.
    I know this is a strange bug and not many people will have
    this problem, but I would like to know from someone with knowledge
    of the runtime why this could be happening.
    Thank you
    Tiago Bilou

    Hello everyone,
    I'm currently working on an standard as3 (1024x768) app that
    is running inside a chromeless Air window to take advantage of the
    transparency.
    All my tests where done using windows XP professional and AIR
    1.0 (the same problem existed in beta3).
    The issue I'm having is related with Mouse Events. Somehow
    the events take a lot of time to reach the swf file when the user
    clicks inside the transparent window.
    It's natural that the app runs slower inside a transparent
    window (the framerate drops) but I wasn't expecting the clicks to
    suffer from such delay (it takes sometimes 2-5sec).
    The app is very CPU intensive and the transparencies make it
    worse. Something inside the AIR framework is not dispatching the
    events properly.
    I say this because I tried using the virtualMouse class from
    senocular together with a socket to simulate the mouse clicks and
    that did the trick.
    In conclusion:
    Something in the AIR framework for windows XP is messing up
    the dispatch of the Mouse events when the app is under heavy cpu
    usage inside a chromeless window. I click on the window and it
    takes 1-2sec to receive the click event.
    However when I dispatch the MouseEvent.CLICK myself using
    the virtual mouse class the application immediately receives the
    event.
    I know this is a strange bug and not many people will have
    this problem, but I would like to know from someone with knowledge
    of the runtime why this could be happening.
    Thank you
    Tiago Bilou

  • Firefox mouse event not behaving the same on PC and Mac computers

    I use the FCKEditor and having a very strange problem. When I click on the FCKEditor's editing area, the keyboard gets disabled untill I click the mouse somewhere outside of the editing window. The problem only happen on Firefox (3.6.10) on Mac computer (Snowleopard 10.6.4). Doing exactly the same steps on PC works without any problem.
    What I want to know:
    - Is it possible that the Firefox on Mac is different than the PC in handling mouse events? Or some other areas?

    Sounds more that Firefox is treating that editor area as read-only.
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

  • Non modal PopUpManager blocking mouse events

    In our application we have a header, footer and center area.  We have a situation where we want to block the header and center area with a popup, but leave the footer area so it can be clicked on.  The code works fine and it all looks good, except the mouse events are blocked to the footer.  If we slightly resize the window (either with the mouse or programatically) it all "wakes up" and starts working.  I have tried all sorts of invalidateDisplayList, validateDisplayList, validateNow, etc.  I am throwing this out there to see if anyone else has had this problem and if there is something I am missing.  I can't easily share my code, but if I don't get a reply I'll put together a code example to see if I can recreate it.  Any ideas are very welcome.  Been scratching my head at this one for 3 days now. 

    I should point out that we are using "false" for the modal flag, just in case anyone was thinking that.  It all works fine once it "wakes up" through resizing, but I need to make that happen without the resizing.
    And we have tried all sorts of "callLater" behavior in conjuction with the invalidate/validate calls. 

  • Mouse events during Thread.sleep

    hi.
    I have an applet .
    I have a alghoritm simulator.
    Everytime I find a solution I call the method Thread.sleep .
    I want to pause the application and I create a JToggleButton Pause .
    When I press the Pause during sleep mouse event are managed at the end of alghoritm.
    How can I manage mouse events during sleep?

    All UI events (such as mouse events) occur on the event dispatch thread (EDT).
    That means if you sleep on the EDT, you lock up the UI. For this reason, you shouldn't be sleeping on the EDT.
    I'm not sure what your sleep is trying to do but you need to manage your threads a little more carefully. For instance, any time consuming process which is invoked as a result of a UI event needs to be fired on a new thread to prevent the UI freezing. The fun starts when you have to update the UI as a result of that process, because you should then hook back onto the EDT to avoid the risk of deadlock.
    Some utility classes are provided, such as SwingUtilities, and other example code is provided on Sun's site, such as SwingWorker - but if you do much UI work you'll probably end up with your own core set of threading tools and so on to make life easier.

  • HTML/JS: Capturing mouse events while Air is out of focus

    Hi,
    I've been trying to determine if it is possible to receive mouse events (like MOUSE_WHEEL) if the Air window does not currently have focus. I'd like my application to support the mouse wheel for scrolling while the cursor is over the application, without requiring the user to click the application and gain focus. My application uses JavaScript to scroll an unordered list within a DIV set to overflow:hidden (to prevent the native scrollbar from appearing).
    Thanks for your help!
    Andrew

    I doubt that AIR would pick up events fired while not having focus. Perhaps you could fake it by creating an AIR project that runs "fullscreen", but has a smaller active window. Anywhere your mouse went it would still capture the scrolling event, but you could conditionalize it so that it only worked in certain areas.

  • Mouse Events at the icon in systray.

    My program call library function to add, modify or delete icon into systray.
    Additionaly I'd like to get back information when any mouse event had happen under icon in systray like move mouse, right/left button click etc. to display popup menu (as an standart behaviour).
    I've tried Windows Message Queue, but it only works inside application window area.
    How could I do it ?
    Any suggestions, examples or advises ?
    Rumcajs.

    Requirements    Price: $29.95
     Application Software:
    LabVIEW 7.0+
     Toolkits Software:
     Additional Software:
     Language's:
    LabVIEW
    INVtray LabVIEW Toolkit allows the programmer to create a LabVIEW program that can be hidden from the task bar and accessed through the System Tray.  Comes with a sample VI that demonstrates all the features of the toolkit.

  • Disabling mouse events

    hi,
    I am having objects on a JFrame that respond to mouse events. I would like to know how I can disable these events. I use the addMouseListener to register a mouse event on something. Is there a way to remove or to deregister mouse events.
    I basically have a game of tiles on a JFrame and I am going to have the human player play against the computer. I want to be able to have turns; computer and human player turn.

    removeMouseListener()

  • How to catch the mouse event from the JTable cell of  the DefaultCellEditor

    Hi, my problem is:
    I have a JTable with the cells of DefaultCellEditor(JComboBox) and added the mouse listener to JTable. I can catch the mouse event from any editor cell when this cell didn't be focused. However, when I click the editor to select one JComboBox element, all the mouse events were intercepted by the editor.
    So, how can I catch the mouse event in this case? In other word, even if I do the operation over the editor, I also need to catch the cursor position.
    Any idea will be highly appreciated!
    Thanks in advance!

    Hi, bbritta,
    Thanks very much for your help. Really, your code could run well, but my case is to catch the JComboBox event. So, when I change the JTextField as JComboBox, it still fail to catch the event. The following is my code. Could you give me any other suggestion?
    Also, any one has a good idea for my problem? I look forward to the right solution to this problem.
    Thanks.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Test3
    extends JFrame {
    // JTextField jtf = new JTextField();
    Object[] as = {"aa","bb","cc","dd"};
    JComboBox box = new JComboBox(as);
    public Test3() {
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    Container content = getContentPane();
    String[] head = {
    "One", "Two", "Three"};
    String[][] data = {
    "R1-C1", "R1-C2", "R1-C3"}
    "R2-C1", "R2-C2", "R2-C3"}
    JTable jt = new JTable(data, head);
    box.addMouseListener(new MouseAdapter() {
    // jtf.addMouseListener(new MouseAdapter() {
    public void mouseClicked(MouseEvent e)
    System.out.println("-------------------JComboBox mouseclick....");
    jt.addMouseListener(new MouseAdapter() {
    public void mouseClicked(MouseEvent e)
    System.out.println("-------------------JTable mouseclick....");
    // jt.setDefaultEditor(Object.class, new DefaultCellEditor(jtf));
    jt.setDefaultEditor(Object.class, new DefaultCellEditor(box));
    content.add(new JScrollPane(jt), BorderLayout.CENTER);
    setSize(300, 300);
    public static void main(String[] args) {
    new Test3().setVisible(true);
    }

  • Mouse event not fires on drag and drop

    Please
    Can any one help and give any idea during draging(drag drop) mouse over of a button does not fires. I have a list of thumb in which I want to drag and drop the thumb at any location for reordering the thumb but due to  lot of item in list need to sscroll list.  I have my own custom scroll on button mouse over but when Item is dragging  mouse event does not fires.
    Thanks in advance,
    Premkant

    Hi there,
    Reject caption shows up when an unacceptable source is dropped on a Target. To configure the 'Accept criteria', select a drop target, Click on the 'Accept' button, Deselect the checkbox corresponding to the unacceptable source. (As shown below)
    Now whenever the user drops 'Unaccept' source on top of the target, the 'Reject' caption shows up.
    Thanks,
    Nimmy Sukumaran.

Maybe you are looking for

  • Help! Can't mount iPod to Mac OR PC, and neither Restore or Disk Mode work

    My 5th Generation iPod is not being recognized by my Windows or iTunes whenever I try to mount it, nor is it recognized by my friend's Mac or iTunes whenever I try to mount it on his. Because I cannot get my iPod to connect to a computer, I cannot Re

  • Creation of new task list in CharM not possible

    Hello! I am using SOLMAN 4.0 (SP13 with the newest SP) and the problem to create the task list in Tcode: SOLAR_PROJECT_ADMIN --> System Landscape --> Change requests --"Create task list". The following error occurs: The project is not released. Hence

  • Hdv print to video not working

    Hi, I am trying to print to video an HDV sequence, at HDV quality but neither my Macbook Pro nor G5 will see my Sony HVR10P or Canon XHA1. It is true that Final Cut Supports output to HDV decks using Print to Video yes? I can see the HDV Firewire 144

  • Barcode in a Report

    Hi friends,   I am trying to print Order Number in barcode.Even though i am able to print it in the output i am not able to display the whole report. Suppose i am writing barcode in the report after displaying 5 lines of data,  I am able to print the

  • I open my email and the Bing search box appears, this does not happen when using Internet Explorer

    When using the browser, when I go to aolmail and open my email account and click on my mail to open a message to read. The mail opens and content shows for a quick second and then goes blank. The Bing search box appears in the email content section.