PDA Mouse Down Event on Picture Control

While using the Mouse Down Event on the Picture Control for LabVIEW 7.1 PocketPC PDA, I want to get the xy coordinates on where the user tapped on the pict control. Any ideas or workarounds?
Robert

Hello Robert �
What do you mean by �outputting individual horizontal and vertical components�?
In the LabVIEW PDA module (and this applies to PocketPC and PalmOS), clusters will not show up in the PDA�s screen. You can use clusters to group controls/indicators but when there is need of sending a new value/showing the value in the screen, the bundle and unbundled functions have to be used, so that you can have individual controls/indicators to pass a new value/see the value, respectively.
So, from the Coords terminal in a Mouse Down/Up event, you need to unbundle the cluster and create individual indicators for each, the horizontal and vertical position.
I am attaching an example to show you what I mean. For PalmOS, the same applies.
H
ope this helps and if I misunderstood your post, please let me know.
Have a great day.
S Vences
Applications Engineer
National Instruments
Attachments:
PPC_Picture_Events.vi ‏30 KB

Similar Messages

  • Mouse down on 3D picture control

    Hi,
    i would like to know how to indicate mouse down on the 3D picture control as can be done for the picture function.
    http://forums.ni.com/ni/board/message?board.id=170&message.id=49423&query.id=66219#M49423
    regards
    king1

    Hi King1
    I have been able to modify an example VI which came with LabVIEW v8.2 which uses the 3d picture control. I have added an event structure to the code which allows the user to pause the rotation of 2 objects in the picture display area. I have added notes to the block diagram which should help in describing its behaviour. the file is attached with this post.
    I hope this is of some help, there are a few more 3d picture examples in the LabVIEW example directory which might also be of use.
    Best wishes
    Rob L
    Rob L
    NI Applications Engineer
    UK & Ireland
    It only takes a click to rate this message ;-)
    Attachments:
    3D Picture with User Selection.vi ‏61 KB

  • How to capture Mouse Down event outside a control?

    Mouse Capture doesn't work:
    public partial class MainWindow : Window
    public MainWindow()
    InitializeComponent();
    Button button1 = new Button();
    button1.Width = 50;
    button1.Height = 20;
    this.Content = button1;
    Mouse.Capture(button1);
    button1.PreviewMouseDown += Down;
    private void Down(object sender, MouseButtonEventArgs e)
    MessageBox.Show("Hello World!"); // doesn't show

    Hi Ziya,
    the Capture-method returns a bool whether the capture was successful or not. So when you do this, you'll see that your capture didn't work:
    public MainWindow()
    InitializeComponent();
    Button button1 = new Button();
    button1.Width = 50;
    button1.Height = 20;
    this.Content = button1;
    var success = Mouse.Capture(button1);
    if(!success)
    MessageBox.Show("Not captured");
    button1.PreviewMouseDown += Down;
    The problem with the code above is that your Window is not loaded at that time when the code in the constructor is executed. And as long as it is not loaded, there's nothing to capture. :-)
    So you should do your capture-logic in the Loaded-event of the window. That event occurs after the Window has been loaded. So the code below will work for you:
    public MainWindow()
    InitializeComponent();
    Button button1 = new Button();
    button1.Width = 50;
    button1.Height = 20;
    this.Content = button1;
    this.Loaded += (s, e) =>
    var success = Mouse.Capture(button1);
    if (!success)
    MessageBox.Show("Not captured");
    button1.PreviewMouseDown += Down;
    Thomas Claudius Huber
    "If you can't make your app run faster, make it at least look & feel extremly fast"
    My latest Pluralsight-courses:
    XAML Layout in Depth
    Windows Store Apps - Data Binding in Depth
    twitter: @thomasclaudiush
    homepage: www.thomasclaudiushuber.com

  • Mouse down event handling of table control in subvi

    Hello Everyone.......
    I have created a vi which has a table control and xy graph... the function of the vi is to plot the data of two particular column of table into xy-graph after user selects the data from table....  In this vi , I have used mouse down event for selecting data set so that the color of selected row get changed for user reference.......  the vi is working fine..... 
    My problem is that this vi is a part of main vi.. and I want to use this vi as a subvi.... So, in my main vi I have a table control which is connected as input to the subvi...  I come to know that I need to register event for triggering a event in a subvi.......
    (1) How to register Mouse down event of table control which is on Main Vi to trigger mouse down event of table in subvi.... Another Important thing is... how to link every property of table control of subvi to the table control of main vi... so it just act as single control adapting every property like when user selects a particular row its color changes in subvi....so it should be reflected even if user selects a row in main vi... I mean table control of main vi and subvi should be a single control...is it possible?
    I hope I am clear......Thanks ..

    See the modified version of the VI. I use the 'Point to Row Column' method to get the cell that was clicked on - your method also worked using 'Selection Start' but I thought I'd show you an alternative.
    I've used a single event structure to update two table controls - the point is that if you have the references to the controls you can update the control from anywhere. You can also 'register for events' to allow you to register for events from a different VI (again, using the references) that doesn't have the control on the front panel.
    Couple of things about your VI:
    You don't need to put a wait node if you have a timeout on your event structure.
    You don't need the for loop for the columns/rows - if you look at the help for the 'Active Cell' property you can use a value of -2 for the row/column to select all cells in the row/column.
    Certified LabVIEW Architect, Certified TestStand Developer
    NI Days (and A&DF): 2010, 2011, 2013, 2014
    NI Week: 2012, 2014
    Knowledgeable in all things Giant Tetris and WebSockets
    Attachments:
    Highlight Selected Row in Table Control_lv2009.vi ‏13 KB

  • Problems with Mouse Down event for a picture control embedded in tab.

    I noticed that when trying to get a Mouse Down event for a picture control that the Mouse Down will not be 'fired' if the picture is embedded in a tab control. It also appears that this problem exists for other controls (I only tested a slider in addition to the picture). It isn't much of an issue for me now as I can just poll the mouse property of the picture control, but the Mouse Down event has information that I may want access to in my next software revision (button pressed, and Alt mod). I could do that by handling the Mouse Down event for the tab itself and checking to see if the the mouse property isn't -1, -1 for the picture, but that seems a little bit too kludgy (sp?) to me and wouldn
    't address the issue with other control types. Any chance of this being addressed by a patch sometime in the next couple of months???
    Attachments:
    TabProblem.vi ‏69 KB

    The problem I reported above was in LV 6.1.
    As a work-around, I used the mouse down on the tab control and did the math to decide if the picture was clicked.
    I have been told that this was fixed in LV 7.0. I can not confirm.
    You could call NI and ask about the service request number I cited above.
    I hope this helps,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Mouse down event reading a string terminal trick

    Hi,
    I wondered why I was getting frustrated entering a pasword that was verified in the mouse down event of the OK button. This is becuase when you click the OK button the entered text is still in the buffer and not copied to the terminal. (Which is more natural than clicking somewhere on the FP first). Note pressing enter or tab gets the string control out of enter text mode.
    Turns out need update value while typing turned on if you want to gaurantee a correct read of a text input control in a mouse down event. As this is one of those not obvious but sometimes happens bugs... I have posted for reference for others :-)
    Example attached v8.6.1.
    Attachments:
    TestMouseDownEvent.vi ‏13 KB

    Nick wrote:
    Turns out need update value while typing turned on if you want to gaurantee a correct read of a text input control in a mouse down event.
    AFAIK, "Update value while typing" will trigger only a Value Change event of the Str Ctl.
    Mouse Down event will preceed a Value Change event, if you have both the event cases configured in your code.
    - Partha
    LabVIEW - Wires that catch bugs!

  • Mouse down event

    Is there anyway I can keep the control properties as shown in the image attached if I add another event to the same event structure case?
    I currently have an event structure case configured to execute on a mousedown event on a multi column listbox and would like to add a dynamic event to this case also yet keeping hold on the properties show in the image attached..
    Strokes
    Solved!
    Go to Solution.
    Attachments:
    Mouse down event for Multi Column Listbox.PNG ‏2 KB

    sebster wrote:
    Is it not just a case (pun not intended) of right-clicking the event structure and selecting Show Dynamic Event Terminals?
    I understand how to create, register and generate dynamic events but when I add the dynamic event to the event structure it changes (naturally enough) the "CtlRef, Coords,Button" properties to other ones like "time, type, source" etc...

  • Mouse down event and Click event in List Box Very urgent.

    Hi,
           How can i differentiate mouse down and itemclick in ListBox.Its very urgent.
    Regards,
    Jayagopal.

    Nick wrote:
    Turns out need update value while typing turned on if you want to gaurantee a correct read of a text input control in a mouse down event.
    AFAIK, "Update value while typing" will trigger only a Value Change event of the Str Ctl.
    Mouse Down event will preceed a Value Change event, if you have both the event cases configured in your code.
    - Partha
    LabVIEW - Wires that catch bugs!

  • Graph Mouse Down event issue

    I have an XY graph that is controlled by a mouse down event. When I use the any of the tools like zoom I zoom into an area with a cluster of plots when I go to click on a plot the plot selects but the graph then reinitialises back to its original state.  The VIs I'm using are attached
    Paul Power
    I have not lost my mind, it's backed up on a disk somewhere
    Attachments:
    XY graph - closest point.vi ‏24 KB
    scatter plot.vi ‏27 KB

    Yes, all the tools I'm using are from the graph palette. Say if I have 100 points on my graph and I use the graph palette zoom to zoom into an area of points on the graph I select a specific point with the mouse then the graph goes back to its unzoomed state showing the full plot
    Paul Power
    I have not lost my mind, it's backed up on a disk somewhere

  • Pane Mouse Down Event

    Dear sir,
    I am using state machine concept in one of my projects. In my VI i have total 20 controls with different events. I introduced the Pane mouse down event to front panel to validate my input parameters. If i click on controls first it is executing the pane mouse down event and then it is going to particular control event means two events are happening. If i click on Pane only Pane mouse down event is executing. I want to discard the pane mouse down event when i click on the controls.
    Kindly let me know how to implement this kind of events.
    Thanks & regards,
    S Nagaraju.

    Crosspost

  • Detect clicked cluster in mouse down event for clusters within multiple stacked clusters

    With the help of Ben (see http://forums.ni.com/t5/LabVIEW/Determine-cluster-element-clicked-in-mouse-down-event/td-p/1245770)
    I could easily find out what sub-cluster had been clicked on (mouse down event) within the main cluster, by using the Label.Text Property.
    However if you have a cluster within a cluster within a cluster then you probably have to use individual mouse down events for each sub-sub cluster.
    I just wanted to use one "Main Cluster":Mouse Down event and from that determine which of the sub-sub clusters had been clicked on - is this even remotely possible?
    Chris.

    Chris Reed wrote:
    With the help of Ben (see http://forums.ni.com/t5/LabVIEW/Determine-cluster-element-clicked-in-mouse-down-event/td-p/1245770)
    I could easily find out what sub-cluster had been clicked on (mouse down event) within the main cluster, by using the Label.Text Property.
    However if you have a cluster within a cluster within a cluster then you probably have to use individual mouse down events for each sub-sub cluster.
    I just wanted to use one "Main Cluster":Mouse Down event and from that determine which of the sub-sub clusters had been clicked on - is this even remotely possible?
    Chris.
    Yes but... you will have to pass through 26 Kudos worth of Nuggets to get there (Well maybe you can skip the last 5 or so).
    This Nugget by Ton teaches us how to use Dynamic Event Registration. (15 Kudos, must read and understand)
    This Nugget by me talks about getting at references inside arbitrary data structures. (11 Kudos, You don't have to read the whole thing, only enough to get at nested objects).
    SO use the stuff I wrote about to gather up the references to the clusters. Build them into an array and then use dynamic event registration and what you learned in that thread you linked in your question.
    So Possible? Yes!
    Easy? YOU tell me.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Determine cluster element clicked in mouse down event

    Is there anything similar to the ArrElem Property Node, that allows a user to detect which element in an array has been clicked on (mouse down event), but for a cluster?
    It seems the only way I can detect which sub-cluster in my main cluster (see attachment) has been clicked on, is to work out the screen coordinates of each element and compare that to the mouse coordinates of the click - is there any other (better) way?  There's is going to be eight of these main clusters all stacked vertically.
    NOTE: All sub-clusters in the main cluster are disabled so that nothing "pops-up" when the user clicks on an object.
    I was thinking of using an array of clusters, but I need the ability to set various properties (eg. blinking) for each individual object.
    Chris
    Attachments:
    Lane Bays.ctl ‏80 KB

    That's not bad Ben - thanks.
    I made up a quick VI based on your solution which works great if I have one cluster, but if I have eight+ Main Clusters I have to repeat this Event eight+ times - no?  I was wondering if there was a more scalable solution?
    I suppose I could just lump ALL the sub-clusters into one massive Main Cluster, but the text string for that Event is going to be very, very long eg. "Main Cluster.Cluster1"....."Main Cluster.Cluster24": Mouse Down
    Chris
    Attachments:
    Get Clicked Cluster Element.vi ‏13 KB

  • How Can I Move the Elements by Tap on Touchscreen or Mouse Down Event in Adobe Edge Animate?

    hi , how can i move the elements by tap on tochscreen or mouse down event in adobe edge animate? like action for moving car.

    in my idea is mousedown action or tap on touchscreen plays the role of car accelerator, (gas pedal) when i left click on mouse my car moves forward and the car doesnt move when I dont click or tap.
    Do you have a solution?

  • How do you make the "mouse down event" achnolage the area of an image

    Hi
    I am trying to program a simple game.
    In this game I would like to insert
    giff images, that when "clicked on"
    by the mouse, will finallly return some kind of action.
    In the book that I am reading, I have learnt how to
    use the basics of the "mousedown event".
    This I found out would be no use to me for what I am trying to achieve
    at this moment,
    because it only alows me to choose one coordinate at a time.
    Is there any class that will able me to click anywhere on the "area" of the giff image instead of only one coordinate?
    I hope I am clear enough..

    And this is how you create the JLabel:
    JLabel j = new JLabel(new ImageIcon("yourImage.gif"));

  • How to generate event on other control within one event

    Hello
    I am using event structure.
    When program is inside the event case of one control, I want to trigger the �mouse down� event on another control at that time (without operating that another control),
    so that next time, another control�s event is called.
    I have many controls and hence thrir event cases , after which I want to trigger a specific event case corresponding to a button control.
    (I wish to keep the contents of button2 case inside the event only)
    In attached example:
    When user clicks �button 1� or �button 3�, event must be generated so that contents of �button 2� event are executed when program comes there next time
    Thanks
    Attachments:
    Trigger_Other_Event.vi ‏35 KB

    Sorry, I just noticed that you only use LabVIEW 6.1 where signaling properties are missing.
    Here is a simple solution for LabVIEW 6.1:
    - set all buttons to latch.
    - set all button events to "value changed"
    - merge the timeout event with event 2
    In event cases 1 and 3 set timeout to zero, in all other cases to -1 (no timeout).
    See attached example. I placed a 500ms wait.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    Trigger_Other_EventMOD.vi ‏31 KB

Maybe you are looking for