Disable mouse events in ActiveX control

Hi,
I am using the Quicktime COM/ActiveX control for Windows from C# but want to change its default behaviour slightly.
Currently when the mouse is pressed on the player control it pauses, resumes when double clicked or if already playing reverts to fullscreen mode.
How can I disable this behaviour so that mouse clicks on the control do nothing?
I can respond to mouse down events and intercept the message in WndProc but the control still seems to recieve the message before my application code.
I get the feeling that I just need to change a property of the player, but which one?
Thanks in advance for your help.
James

Mate, you are a total life saver!!!!!!!!!
Thanks so much again.

Similar Messages

  • DISABLE MOUSE EVENT on jlabel

    Dear all,
    I have a jlabel on which i perform a click and the embbeded image switch between start and stop image.
    My problem consists in preventing from performing multiples click/or disabling mouse event while the application starts loading some parameters.
    switchViewLabel.addMouseListener(new MouseAdapter() {
                   public void mouseClicked(MouseEvent e) {
                        //it takes a long time
                                   onSwitchViewButtonClick();
    protected void onSwitchViewButtonClick() {
              System.out.println("onSwitchViewButtonClick");
              if (canGo) {
                   System.out.println("canGo");
                   canGo = false;
                   MainWindowPeer.getInstance().setCursorToWait();
                         //this action load parameter
                            CommandWindow.getInstance().switchView();
                         refreshSwitchViewButton();
                   MainWindowPeer.getInstance().setCursorToDefault();
                   canGo = true;
         } But on my console i have noticed :
    canGo
    onSwitchViewButtonClick
    canGo
    onSwitchViewButtonClick
    canGo.....
    It looks like we store mouse event anywhere and for each event we execute onSwitchViewButtonClick code and consume event.(it seems to not be asynchronous)....
    How to do ???
    Thanks for any helps..

    Dear all,
    yes i want to ignore mouse events until the processing is done.But how to perform process in separate thread and what is a semaphore.Is it possible to have much more explanation...
    Shall i do following code..
    mouseAdapter = new MouseAdapter() {
                   public void mouseClicked(MouseEvent e) {
                        SwingUtilities.invokeLater(new Runnable(){
                             public void run() {
                                  //switchViewLabel.removeMouseListener(mouseAdapter);
                                  onSwitchViewButtonClick();
                                  //switchViewLabel.addMouseListener(mouseAdapter);
              };Thanks you in advance...

  • Handling events of ActiveX controls in TestStand!rol

    Hi,
    I want to use the Microsoft WINSOCK control with existing ActiveX Automation Adapter of TestStand. These control generates an event in case of incomming data.
    Question:
    Is there any way to treat the events of such controls in TestStand (same problem with MSCOMM control) or can this only be realized by polling the size of incomming buffer?
    In case of answer two, i would be interested in any realized example.
    Regards,
    Sunny

    Hi Sunny,
    Currently, you cannot call ActiveX controls using the ActiveX Automation Adapter in TestStand. To do this, you would need to call a code module that was set to display/utilize the control, and retrieve all of the events generated by the control. TestStand can only currently call ActiveX servers (either DLL or EXE) that support the IDispatch interface. Hope this answers your question.
    Regards,
    Bob

  • 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()

  • Disable Mouse Events

    There is an area of the application I am working on in which one frame is calling another frame to open. The frame that is being called takes about 10 seconds to load. My problem is that while the frame is loading, I want to disable the user from clicking their mouse while this frame loads. I have read about glass panes, but was wondering if there was a way to just disable the mouse click.

    you could unistall the mouse handler for the object, or use a flag in the mouse handler that would be set for a wait condition, and thus, instructing the handler to process or pass through.

  • Stage3D disabled in ActiveX Control?

    Could someone shed some light on why Stage3D (and StageVideo) are disabled for non-IE ActiveX controls?
    May be I am missing something obvious because both seem to have such valid uses in local applications; I had assumed Adobe was targeting Flash towards this area.
    Any assistance would be appreciated.

    Hi Squall,
    Thanks for posting!
    It's the only browser that supports ActiveX but other applications in Windows can support ActiveX controls. For example embedding Flash Player in a Windows application using a C++ ActiveX control.
    Flash used to have a few articles on it (a few years back) but they seem to have disappeared.
    I can supply an example configuration if anyone's interested?

  • Event structure does not capture mouse click event on toolbar activeX control

    Hi
    We have a toolbar activeX control on FP.  It works perfectly on my computer, but on my coworkers deskyop,  somehow the event structure doesn't capture mouse click event.
    Any idea?  Thanks a lot for any help.
    Anne

    It's a standard activeX control.  I attach a simple vi .
    thanks  for any help.
    Attachments:
    toolbar test.vi ‏41 KB

  • Overlay an item over an activex control and/ or disabling the mouse scroll wheel

    There seems to be several references in the discussion forum to placing a picture control over an activex item to prevent the activex item being selected etc.
    The thing is, I can't seem to do it: the activex control is always on top, no matter what I do and no matter what control, or decoration I use.
    What am I doing wrong?
    Failing that, is there another way of stopping the user getting access to the activx control?
    Essentially what I want to do is stop them accidentally scrolling through the control's pages with the mouse scroll wheel. I've stopped them accessing the scroll bars, BUT it is still possible to use the scroll wheel unfortunately.
    Something else I tried was a tab control: placing the activex control on a page and then trying to make the page on top transparent. Needless to say that didn't work....
    Andy

    Important questions:
    What ActiveX control are you using?
    I'm using the PDF activex control to display a PDF on the front panel of my VI.
    What version of LabVIEW are you using?
     I'm using LabVIEW 7.1
    What "control pages" are you talking about?
    The pages of the PDF: it has several pages. If a mouse is held over it the user can scroll using the scroll wheel, or if they right click they can access the Adobe menu.
    It's these that I'd like to inhibit them doing.
    Thanks
    Andy
    Attachments:
    Display PDF 7.1.vi ‏98 KB

  • Using activex component in openGL app:  mouse event issues.....

    i'm trying to get the Flash ActiveX control to work in an
    OpenGL app. so far i've managed to get the bitmap data and map it
    to a texture succesfully. but i'm having problems getting the mouse
    interaction to work.
    i get an hWnd from IShockWaveFlash's IOleWindow. when i send
    mouse messages to it, the mouse is interpreted correctly by
    actionscript (for example, i have a custom mouse cursor tracking
    _xmouse, _ymouse which works fine).
    however, buttons do not behave correctly. rollover is
    erratic, and only in rare circumstances can i get a button's
    onPress handler to fire.
    am i sending the mouse events in correctly? any ideas of any
    other way to send them in?

    Thank you for you mail,
    After I read this article
    http://digital.ni.com/public.nsf/3efedde4322fef198​62567740067f3cc/610540bb3ea4ebdd862568960055e498?O​penDocument
    I realized that ActiveX events are not supported on CVI 5.01 at all since
    its introduced as a new feature of CVI 5.5
    "Azucena" wrote:
    >Daniel,>>Have you tried the function CA_RegisterEventCallback function?
    (I am using>CVI 5.5)>>This function is used by the functions generated by
    the Automation>Controller Instrument Driver Wizard.>It is not intended to
    be used directly.>>It basically registers a callback for an ActiveX Automation
    server object>event.>To register the callback, you must specify the CAObjHandle
    of the server>object from which you want to receive events.>>W
    ith CVI 5.5,
    there is an example for IE with Active X under the>samples/activeX directory.>>Hope
    this helps,>>Azucena>>"Daniel Bentolila" wrote in message>news:[email protected]..>>>>
    Has anybody tried to capture an ActiveX component event in a CVI>application>>
    ?>>>> for example I've created a new instance of the Internet Explorer>application>>
    from the CVI , using the ActiveX Automation controler I choosed the>Microsoft>>
    internet controls then I selected IWebBrowser2 and the IWebBrowserEvents2>>
    classes and generated the fp file for the CVI.>> Under the the IWebBrowserEvents2
    I see there are events fucntion for>example>> OnQuit, and I wanted my CVI
    app. to attach the quit event when the user>closes>> the IE window.>> Now
    at this point I expected to find some mechanism that let me to install>>
    some callback function where I can put my customised code to the quit>event,>>
    somehow I have to tell the IE to call my function whenever the OnQuit>callback>>
    fun
    ction is attached and I don't know how to do this.>>

  • Right click disabled on ActiveX Control

    Hi all.
    Is it possible to disable the right click shortcut menu in an ActiveX control? I know that I can do in a LabView control (right click on it --> Advanced--> Run-Time ShortCut Menu --> Disable), but I don't know for ActiveX controls, because they are different applications embedded on them and have their own events and shortcut menus...
    Thanks,
    Francisco.

    Hi, smercurio_fc.
    Thanks for your reply. But sorry I can't understand you completely. For example, I drop an instance of an Adobe PDF Viewer into an ActiveX Container, and this control has its own Run-Time menu you can access by pressing right button on it (this menu isn't that every LabView control has, but an embedded one). Is it possible to disable it through LabView? I mean, I want to right click this control and don't want this menu to appear...
    Regards,
    Francisco
    Attachments:
    Run-time menu. ActiveX Control.png ‏53 KB

  • It seems that NI dropped the Activex Events from the Control Panel in LabVIEW 7.0. Why???

    I have Labview 6.0/6.1 Activex vi's that no longer work in LabView 7.0 There are no longer ActiveX Events vi's in the Communications->ActiveX control set. What is the deal with that??? Pretty much makes my $2400 upgrade investment worth nothing as far as I can see.

    kup,
    Are you sure that your VIs no longer work? They should. The support VIs are located in "vi.lib\Platform\ax-events.llb". The functionality was not taken away, the VIs were simply removed from the function palette. Also, ActiveX Events may now also be handled using calback VIs. This is much better, IMO. Seach the examples for "ActiveX" and "callback".
    -Jim

  • Flex ActiveX Control Event is Missing

    Hi,
    I wrote an ATL CAxDialogImpl based dialog DLL to host a flash
    activex control. When I launched the DLL dialog box from a command
    line C# program, I can get all the events sent from the flash
    activex control to the dialog instance object, e.g. fscommand,
    FlashCall, OnReadyStateChange, etc.
    Now, I try to load the dialog DLL in IE using a simple local
    html with VBScript, the dialog box shows up and the flash shows up
    too. But I can no longer get fscommand, and FlashCall events from
    the Flash activex control to the dialog instance object,
    interestingly, I can still get the OnReadStateChange events.
    I don't know if this is a known problem already, or it's a
    bug, or is there any workaround for it, or I simply did something
    wrong.
    Your help is highly appreciated.
    Best Regards,
    EJIANG

    Hi,
    This is due to security functionality introduced in Flash
    8.0. I have read the
    Security
    Changes in Flash Player 8 and pages linked in the
    fscommand
    function documentation several times but it's unclear for me in
    which sandbox are put files opened in hosted ActveX Flash control.
    If someone knows this would be very helpful.
    Adobe states that embeding Flash Player ActiveX is not
    supported and stays quiet. Maybe SliverLight guys will be more
    comunicative.
    We have resolved this by using AxWebBrowser control and
    hosting the Flash player in a webpage instead of hosting it in
    Flash ActiveX.
    Another solution if you are using only local files is to try
    to use "file://YOUR_PATH_TO_FILE" as an argument for LoadMovie
    method. But this works only on local files.
    Hope this helps

  • Need to disable script or ActiveX control in WebHelp project

    Two of our WebHelp projects display the following two
    messages prior to loading the first page:
    1) "To help protect your security, Internet Explorer has
    restricted this file form showing active content that could access
    your computer. Click here for options."
    2) "It seems javascript is disabled in your browser, please
    enable it abd reload again, or click here to view without
    javascript."
    I don't know my way around well enough in RoboHelp to solve
    these problems. I've read that you can disable the ActiveX issue
    through options in the Windows Control Panel, but that is not a
    valid resolution for these customers, as that will pose security
    vulnerabilities. Not sure either about how to enable javascript, as
    indicated in the second message.
    Obviously there is something in these WebHelp projects that
    cause these messages to display. I want to address the issues at
    the project level - not the OS level. Is there a way to search a
    WebHelp project foe embedded ActiveX controls and java scripts that
    may cause these messages, and then figure out a way to change this
    behavior?
    I am using RoboHelp HTML, version 5.0.2, build 801, and
    generating the primary layout as WebHelp. I've played with the
    Preferrred Format options when I generate the project, but nothing
    has solved the problem yet.
    Any suggestions? Help! This novice is stumped.

    It's because you are viewing the help locally. Your users
    will be viewing it from a server so they will not have this issue.
    To fix it to help you work, see Snippet 19 on my site.

  • Disable JTree and stop it from receiving mouse events

    Hi,
    I have a JTree which has a mouse listener associated with (which is used for right-click operations)..,..anyway I am trying to disable the tree, so I call setEnabled(false)...which, as documented, disables the tree but it will still receive mouse events. I also tried, setEditable(false)..... the only way I can think of is to remove the mouse listener, and then when I want to re-enable the tree, I have to add it back.
    is there some other way?
    thanks

    Hi,
    I have a JTree which has a mouse listener
    ner associated with (which is used for right-click
    operations)..,..anyway I am trying to disable the
    tree, so I call setEnabled(false)...which, as
    documented, disables the tree but it will still
    receive mouse events. I also tried,
    setEditable(false)..... the only way I can think of
    is to remove the mouse listener, and then when I want
    to re-enable the tree, I have to add it back.
    is there some other way?Why do you want another way? This seems like a perfectly viable way to accomplish what you want.

  • Mouse Events on Disabled Buttons

    Hi,
    In my application I should make a disabled button to show a tool tip when mouse is entered onto it.
    I'm using java.awt.container not Jcontainer.
    I have searched in SDN forums and after reading some of the comments what I understood is �disabled Swing button can react to Mouse events but a disabled awt button can not react to mouse events�.
    Is that true or did I not understand correctly?
    And how would I be able to implement the required functionality in my
    application?
    Thanks.

    import java.awt.*;
    import java.awt.event.*;
    public class AwtTooltip {
        private Panel getContent(Frame f) {
            Button left = new Button("left");
            left.setEnabled(false);
            Button right = new Button("right");
            Panel panel = new Panel(new GridBagLayout());
            new TipManager(panel, f);
            GridBagConstraints gbc = new GridBagConstraints();
            gbc.weightx = 1.0;
            panel.add(left, gbc);
            panel.add(right, gbc);
            return panel;
        public static void main(String[] args) {
            AwtTooltip test = new AwtTooltip();
            Frame f = new Frame();
            f.addWindowListener(closer);
            f.add(test.getContent(f));
            f.setSize(300,100);
            f.setLocation(200,200);
            f.setVisible(true);
        private static WindowListener closer = new WindowAdapter() {
            public void windowClosing(WindowEvent e) {
                System.exit(0);
    class TipManager extends MouseMotionAdapter {
        Panel component;
        Window tooltip;
        Label label;
        public TipManager(Panel panel, Frame frame) {
            component = panel;
            panel.addMouseMotionListener(this);
            initTooltip(frame);
         * Since enabled Buttons consume MouseEvents we will
         * receive events sent only from disabled Buttons.
        public void mouseMoved(MouseEvent e) {
            Point p = e.getPoint();
            boolean hovering = false;
            Component[] c = component.getComponents();
            for(int j = 0; j < c.length; j++) {
                Rectangle r = c[j].getBounds();
                if(r.contains(p)) {
                    hovering = true;
                    if(!tooltip.isShowing())
                        showTooltip(c[j], p);
                    break;
            if(!hovering && tooltip.isShowing()) {
                tooltip.setVisible(false);
        private void showTooltip(Component c, Point p) {
            String text = ((Button)c).getLabel();
            label.setText(text);
            tooltip.pack();
            convertPointToScreen(p, component);
            tooltip.setLocation(p.x+10, p.y-15);
            tooltip.setVisible(true);
        /** Copied from SwingUtilities source code. */
        public void convertPointToScreen(Point p, Component c) {
            Rectangle b;
            int x,y;
            do {
                if(c instanceof Window) {
                    try {
                        Point pp = c.getLocationOnScreen();
                        x = pp.x;
                        y = pp.y;
                    } catch (IllegalComponentStateException icse) {
                        x = c.getX();
                        y = c.getY();
                } else {
                    x = c.getX();
                    y = c.getY();
                p.x += x;
                p.y += y;
                if(c instanceof Window)
                    break;
                c = c.getParent();
            } while(c != null);
        private void initTooltip(Frame owner) {
            label = new Label();
            label.setBackground(new Color(184,207,229));
            tooltip = new Window(owner);
            tooltip.add(label);
    }

Maybe you are looking for

  • How to collect physical and logical disk counters using query?

    Hai friends, i want to view physical and logical disk counters in sql server like Avg. Disk sec/Read, Avg. Disk Bytes/Read, Avg. Disk sec/Write, Avg. Disk Bytes/Write, etc.,  Can anyone tell me how to vies this by using query? Thanks in advance..

  • Can't open an Excel doc (w/ macros and VBA) in Excel 2011 for Mac. Anyone have any ideas (other than using a pc instead)?

    Hi all,    I am trying to open a document created in Excel in Windows on my Excel 2011 for mac copy.  The issue seems to be related to using the Macros and VB associated with the .xlsm doc.  The specific error I get in Excel is: Compile error in hidd

  • Vendor master mapping

    Hello Experts, I am mapping vendor master data from legacy data. Legacy data has differrent ordering address accounts  for one vendor number. The problem here is to map that one vendor number to which primary address. in the legacy system we could no

  • For Macbook pro Retina and Macbook Air Users Please Help

    Hi i Want Ask Macbook pro Retina and Macbook Air Users how use this macs both ( Only how use  both ) we sit many hours on laptop that will hurt our eyes what the macbook less strain on eyes what the best macbook screen not hurt our eyes sorry my engl

  • Period parameter

    Hello, i am stuck up in building a report thru Report Painter from GRR1. The report involves ratio calculation like debt-equity, RONW, etc.. In the Lead column, i have put various selection parameters like Fiscal Year, Co Code, Period etc which is wo