How to detect control-mo​useclick event

I'm trying to make the Z-scale max property of an Intensity graph more flexible to modify from the front panel.  In the attached VI, I use an increment/decrement control and just detect a value change event (ignoring the value of the control).  This works fine, although it is a bit of a kludge.
I'd like to make it more functional though.  My main question is the following:  How can I detect a "control-mouseclick" event?  I plan to use this event to change the Intensity Graph max by a factor rather than by an additive value.
A second small question:  On the numeric control, is there a way I can get rid of the displayed number whitespace and leave only the increment/decrement buttons?
Thanks,
Allan
Solved!
Go to Solution.
Attachments:
intensity graph scale.vi ‏16 KB
intensity graph control.jpg ‏21 KB

tbob,
Thanks.  Your suggesetion solves my original problem, but it creates another.  With the platmods "ctrl" boolean hooked to a case statement, I can choose between those "ctrl click" and "regular click" cases.  However, with the "mouse down" event, I can't tell if the increment or decrement button was pressed.
I guess one solution is to replace a single inc/dec control with two booleans controls (increase and decrease) and to have two separate events .  Problem with that is that I'm really piling up event cases, because I'll need several copies of this type of control on my front panel.
Can you suggest any way to have both inc/dec button and ctrl-mouse functionality?  Maybe there is a way to combine the "value change" and "mouse down" events?
Allan

Similar Messages

  • How to detect the line wrap event of JTextPane?

    Hi all,
    I'd like to detect the line wrapping event of JTextPane, so as to adjust the visible rows of JTextPane. How could I do this? Thanks!
    Yi Bing

    there is no wrap event.
    Wrap happens during relayout. The event which invokes relayout could be different. E.g. change size or chane model (document).
    Just add document listener and componnet listener.
    Regards,
    Stas

  • How to detect a mouse release event?

    AE SDK provides events for mouse click and mouse drag over effect plugin custom UIs, however there does not seem to be events for mouse release events.
    Are we supposed to keep ourselves an internal track of the mouse status? In that case, do we need to use OS-specific functions? Or is there a more clever way to do it?

    @shachar
    Yes, I set send_drag during the DoClick event callback, like they do in the SDK samples.
    Anyway, for the time being I found that using OS-specific functions (for example GetAsyncKeyState for Windows) does the job.

  • How to detect space key pressed event

    I am working on a japplet where it is needed to pause the applet on the occurrence of a space bar key pressed event can anybody help
    thanks in advance

    Have a look at the tutorial:
    http://java.sun.com/docs/books/tutorial/uiswing/events/keylistener.html
    http://java.sun.com/docs/books/tutorial/uiswing/misc/keybinding.html
    -Puce

  • How to detect a selected row in ALV GRID

    Hi,
    Can anyone tell me how to detect and catch an event when a row is selected in an ALV GRID?
    I would like to catch such event when the end user presses Ctrl + Shif + Space bar.
    Thank you and best regards.
    Hassane.

    Hi,
    Use this wiki link, to have a checkbox with all the records in ALV Grid and to process those selected records at a user command, as per the requirement.
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/alv%252bgrid%252bdisplay%252bwith%252bcheckbox%252bto%252bprocess%252bselected%252brecords%252bat%252bruntime
    Hope this solves your problem.
    Thanks & Regards,
    Tarun Gambhir

  • How to detect the key enter with a numerical control without using loop event?

    I want to accept a numerical value only when the key enter is pressed, but without using the event. How to detect the char "enter" with a numerical control?
    Thanks!

    When the user edits a numeric control with a keyboard, its property "key focus" is true. When the user hits enter, key focus becomes false. Poll the property to latch the control valuse at the true-false transition. That won't work if the user modify the control using up and down arrows.
    LabVIEW, C'est LabVIEW

  • How do I control the order of all day events in iCal?

    How do I control the order of all day events in iCal?  Even if I painstakingly try to
    re-order the events the way I want them, when they print, they are in a different order.
    I have searched other forums and no one seems to have an answer to this.  Has
    anyone found the solution?  Thanks!

    I also have this issue, where the events in iCal change when viewing in print preview or printing. I even notice they will switch if I try to print again??!!! I am using different calendars to show different colours. and they are setup on iCloud not on my mac.
    it is becomign frustrating when I print 2 months worth and ssome events are correct in order and alas some will change when I print again!
    Can anyone help please?
    thanks

  • How could control the scroll events in ALV OO?

    Hello experts!
    I'm programing a report, inside there is a field that need time of processing. I'm using ALV OO.
    I have thought that it could only calculate the field for the lines that visualize.
    How could control the scroll events to calculate the field of the visualized lines?
    I'm using CL_SALV_TABLE class and cl_salv_events_table to control the events, but there aren't any event to control the scroll.
    best regards!

    Hi Sriram,
    I did view the information that you was attaching, but this don't resolve my problem. With methods get_scroll_info_via_id and set_scroll_info_via_id, we can get and put information of selection and view rows in the screen but we don't control when the user click in the scroll for advance or to back down a page.
    I would like to refresh the data in ALV when the user view news rows.
    I want your genial ideas.
    Best regards!

  • How to detect the HTML extension window close in In-design? Does the In-design throws any event on opening/closing of extensions?

    How to detect the HTML extension window close in In-design? Does the In-design throws any event on opening/closing of extensions?
    I have a HTML extension running in In-design CC 2014 version.
    I want to perform some required set of actions before my extension window is closed(by clicking on the cross button on top right corner).
    Does In-design throws any event for it? Or can we capture it using C++ plugin in some way?

    Naah.......haven't got any event for that yet.
    Although, since HTML extensions are using chromium browser,  as a workaround, u can attach listener to HTML onClose event, but it won't solve any purpose if you
    are looking to logout session or do some business login in your code.

  • How to detect key board event

    HI,
    How to detect keyboard event (Like CTRL key press shift key press) in Swing�any can any body suggest classes and interface for that�.
    Thanks

    [url http://java.sun.com/docs/books/tutorial/uiswing/misc/keybinding.html]How to use Key Bindings

  • How to detect keystroke and control a digital potentiometer?

    Dear All,
    I want to use PCI-1200 to control a Xicor X9C103P digital potentiometer.
    The procedure is as follows: If the computer detects any keystroke from
    either UP or DOWN arrow keys, it send a chain of digital signals to a
    digital potentionmeter to increase or decrease its resistance accordingly.
    Each keystroke control the potentiometer to change a fixed amount, say,
    around 500 Ohm. How to detect these keystrokes using LabVIEW and
    send to digital potentiometer through PCI-1200?

    If you are refering to the ability to capture user key strokes you will need to add a listener to the class. If is a matter of is it a charater or a number then look into isDigit. Or are you trying to capture Hot-Keys? Please specify and will see if we can help - Bart

  • How to detect AIR for Android closing app event? AIR analog to Activity.onDestroy()

    How to detect AIR for Android closing app event (remove app from dock "Recent Apps")?
    In AndroidActivityWrapper.StateChangeCallback exist method onActivityStateChanged. But he have only DESTROYED state, which it seems received where app finish exiting. Activity.onDestroy() called if app start exiting.

    DPI aside, you can just set your resolution on the project to the target devices resolution to preview how it will look. While vectors will render much smoother on the device (higher DPI), it's a very easy way to target various resolutions for testing.
    If you have the full CC suite you might want to consider using Flash Builder 4.7 which has many different device presets and allows you to create your own presets to mimic tablets and phones. It really depends how complex your project is to move over to FB.

  • How to detect back browser event in javascript?

    How to detect browser event in javascript?
    Not working for me. Since i love mozilla to use.
    Working in IE.
    function HandleBackFunctionality(event)
    if(window.event)
    alert("Browser1");
    if(window.event.clientX < 40 && window.event.clientY < 0)
    alert("Browser back button is clicked...");
    else
    alert("Browser refresh button is clicked...");
    else
    alert("Browser2");
    if(event.currentTarget.performance.navigation.type == 1)
    alert("Browser refresh button is clicked...");
    if(event.currentTarget.performance.navigation.type == 2)
    alert("Browser back button is clicked...");
    }

    Firefox doesn't have a catch-all event object (window.event), but you can create event listeners for the objects of interest. I don't know whether the toolbar is one of those; probably not, since why should web pages be able to see what you are doing on the toolbar??
    If we discard the idea of looking for events outside of the page and focus on what is happening inside the page, have you looked at this:
    https://developer.mozilla.org/en-US/docs/Web/API/Window.onbeforeunload

  • How to detect browser close event in flex ?

    How to detect browser close event in flex ?

    This link may help:
    http://cookbooks.adobe.com/post_Close_event_of_browser_or_browser_tab-18211.html
    Best,

  • How to detect window close event and do some task before exiting

    Hi 
    Anyone knows how to detect window close event and do some task before exiting ?
    Sridhar
    Solved!
    Go to Solution.
    Attachments:
    window close event.JPG ‏34 KB

    Yes .You can discard the panel close event by passing "TRUE" boolean value to the "discard ?" terminal which is lied in the right side of that panel close(filter) event.& It will work in executables.  See attached picture.
    Attachments:
    Panel Close.JPG ‏12 KB

Maybe you are looking for

  • Every day flagged on calendar

    I synced with my Outlook 2003 and now my Iphone calendar has everyday flagged, even if there is nothing on that day. I have tried to artificially erase the flag, but can't seem to find out a way to clear the flags. Anyone have any tips?

  • Importing VHS to be converted and burned to DVD.

    I want to import my family VHS footage to my IMac G-5 with Tiger 4.2, to be burned on DVD . What software and hardware do I need to accomplish this and how do I do it?

  • Manula transfer order using function modules

    Hi,      I am trying to create a transfer order using l_to_create_single. very thing works fine. the only problem is vbeln value is not updated in to table ltak. here i am creating a TO for single material. If i use l_to_create_dn, vbeln value is upd

  • Why can I only get mini player when i try to access my library

    I am having real problems getting into my Itunes . I am just getting mini player and no library help.

  • AppStore Show "too many HTTP redirects" .. HELP

    Im from Malysia, when i try to view apps in my iphone 5 apps store, it gives the ''too many HTTP redirects" message, what is the problem? someone enlighten me please.