Mouse Coordinate issues caused by Scaling Components in a JScrollPane

Hi All,
I've been attempting to write a program that includes a simple modeler. However, I've been having some trouble with being able to select components when attempting to implement zoom functionality - when I "zoom" (which is done via scroll wheel) using the scale Graphics2D method, while it zooms correctly, the mouse location of components do not seem scale.
I've tried one of the solutions found on the forums here (create a custom event queue that adjusts the mouse coordinates) and while it seemed to work initially, if I zoom in and adjust the current view position using the scrollbars, certain components contained in the JPane will become un-selectable and I haven't been able to work out why.
I've attached a SSCCE that reproduces the problem below - it implements a JScrollPane with a JPane with a few selectable shapes set as the Viewport. The zoom is done using the mouse scroll wheel (with wheel up being zoom in and wheel down being zoom out)
Any help in order to fix the selection/de-selection issues on zoom would be greatly appreciated! I've spent some time reading through the forums here but have unfortunately not been able to find a workable solution around it.
import java.awt.*;
import java.awt.event.*;
import java.awt.geom.*;
import javax.swing.*;
public class Tester extends JScrollPane
    public Tester() {
        this.setViewportView(new Model());
    public static void main (String[] args) {
        JFrame main = new JFrame();
        main.add(new Tester());
        main.setSize(500,300);
        main.setResizable(false);
        main.setVisible(true);
class Model extends JPanel implements MouseListener, MouseWheelListener
    private GfxClass selection = null;
    private static double zoomLevel = 1;
    // zoom methods
    public void setZoom(double zoom) {
        if( zoom < 0 && zoomLevel > 1.0)
            zoomLevel += zoom;
        if( zoom > 0 && zoomLevel < 5.0)
            zoomLevel += zoom;
    public static double getZoom() { return zoomLevel; }
    public void resetZoom() { zoomLevel = 1; }
    public Model() {
        super(null);
        addMouseListener(this);
        addMouseWheelListener(this);
        MyEventQueue meq = new MyEventQueue();
        Toolkit.getDefaultToolkit().getSystemEventQueue().push(meq);
        for(int i = 0; i <7; i++) {
            double angle = Math.toRadians(i * 360 / 7);
            GfxClass oc_tmp = new GfxClass((int)(200 + 150 * Math.cos(angle)), (int)(125 + 100 * Math.sin(angle)), "Element"+i);
            add(oc_tmp);
        repaint();
    public void paint (Graphics g) {
        Graphics2D g2 = (Graphics2D) g.create();
        AffineTransform oldTr=g2.getTransform();
        g2.scale(getZoom(),getZoom());
        super.paint(g2);
        g2.setTransform(oldTr);
        setBackground (Color.white);
        super.paintBorder(g2);
    private static class MyEventQueue extends EventQueue  {
        protected void dispatchEvent(AWTEvent event) {
            AWTEvent event2=event;
            if ( !(event instanceof MouseWheelEvent) && (event instanceof MouseEvent) ) {
                if ( event.getSource() instanceof Component && event instanceof MouseEvent) {
                    MouseEvent me=(MouseEvent)event2;
                    Component c=(Component)event.getSource();
                    Component cursorComponent=SwingUtilities.getDeepestComponentAt(c, me.getX(), me.getY());
                    JPanel zContainer= getZoomedPanel(cursorComponent);
                    if (zContainer!=null) {
                        int x=me.getX();
                        Point p=SwingUtilities.convertPoint(zContainer,0,0,(Component)event.getSource());
                        int cX=me.getX()-p.x;
                        x=x-cX+(int)(cX/getZoom());
                        int y=me.getY();
                        int cY=me.getY()-p.y;
                        y=y-cY+(int)(cY/getZoom());
                        MouseEvent ze = new MouseEvent(me.getComponent(), me.getID(), me.getWhen(), me.getModifiers(), x, y, me.getClickCount(), me.isPopupTrigger());
                        event2=ze;
            super.dispatchEvent(event2);
    public static JPanel getZoomedPanel(Component c) {
        if (c == null)
            return null;
        else if (c instanceof Model)
            return (Model)c;
        else
            return getZoomedPanel(c.getParent());
    private void deselectAll() {
        if(selection != null)
            selection.setSelected(false);
        selection = null;
    public void mouseClicked(MouseEvent arg0)  {    }
    public void mouseEntered(MouseEvent arg0)  {    }
    public void mouseExited(MouseEvent arg0)   {    }
    public void mouseReleased(MouseEvent arg0) {    }   
    public void mousePressed(MouseEvent me) {
        Component c1 = findComponentAt(me.getX(),me.getY());
        if(c1 instanceof GfxClass)
            if(selection != null)
                selection.setSelected(false);
            selection = (GfxClass)c1;
            selection.setSelected(true);
        else
            deselectAll();
        repaint();
        return;
    public void mouseWheelMoved(MouseWheelEvent e) { // controls zoom
            int notches = e.getWheelRotation();
            if (notches < 0)
                setZoom(0.1);
            else
                setZoom(-0.1);
            this.setSize(new Dimension((int)(500*getZoom()),(int)(300*getZoom())));           
            this.setPreferredSize(new Dimension((int)(500*getZoom()),(int)(300*getZoom())));     
            repaint();
class GfxClass extends Component { // simple graphical component
    private boolean isSelected = false;
    private String name;
    public GfxClass(int xPos, int yPos, String name) {
        this.name = name;
        this.setLocation(xPos,yPos);
        this.setSize(100,35);
    public void setSelected(boolean b) {
        if( b == isSelected )
            return;
        isSelected = b;
        repaint();
    public boolean isSelected() {
        return isSelected;
    public void paint(Graphics g2) {
        Graphics2D g = (Graphics2D)g2;
        if( isSelected )
            g.setColor(Color.RED);
        else
            g.setColor(Color.BLUE);
        g.fill(new Ellipse2D.Double(0,0,100,35));
        g.setColor(Color.BLACK);
        g.drawString(name, getSize().width/2 - 25, getSize().height/2);
}Edited by: Kys99 on Feb 22, 2010 9:09 AM
Edited by: Kys99 on Feb 22, 2010 9:10 AM

Delete your EventQueue class. Change one line of code in your mouse pressed method.
public void mousePressed(MouseEvent me) {
    Component c1 = findComponentAt((int) (me.getX()/getZoom()),
                                   (int) (me.getY()/getZoom()));
}

Similar Messages

  • Mouse wheel event coordinates issue in LV2013

    I realized some unexpected behavior when using the mouse wheel event of an XYGraph:
    The event contains the mouse coordinates which should be relative to the origin of the pane according to the LabVIEW help (see Mouse Wheel (Control Event)). In my case these coordinates are shifted. At the same time, the coordinates returned by the Mouse Move and Mouse Down events are correct. I think the Mouse Move, Mouse Down and Mouse Wheel Event coords should all be the same, i.e. relative to the owning pane's origin? The graph is in a window divided by splitters. I am using LabVIEW 2013 Professional Development System.

    Hi maxicon,
    I tried to reproduce your described behavior - It works as expected (see the attached VI).
    Please try to reproduce the issue again with the attached VI.
    1. Move the mouse and see coords changing.
    2. Operate the mouse wheel and see the coords are the same.
    P.S. Zero-coordinates are marked in the frontpanel:
    Kind regards,
    Heinz
    Attachments:
    Mouse Wheel Coords.vi ‏10 KB

  • Flash player in firefox is not giving the exact mouse coordinates while running a flex application in firefox. Actually it was working fine in the previous versions. I mean in the ver 5.5. In the latest version its not working fine

    Hi Friends,
    I face some mouse issues with the later versions of the Firefox (6 and above). When a flex application is executed in a Firefox, It runs on the flash player in the browser. While getting the mouse coordinates, flash player is returning some bad coordinates. Please respond to this as soon as possible

    A good place to ask advice about web development is at the mozillaZine Web Development/Standards Evangelism forum.<br />
    The helpers at that forum are more knowledgeable about web development issues.<br />
    You need to register at the mozillaZine forum site in order to post at that forum.<br />
    See http://forums.mozillazine.org/viewforum.php?f=25

  • Mouse clicking issues

    For the last 2 weeks or so I all of a sudden have mouse clicking issues on a 2009 iMac. The mouse (I have tried 3 different ones from apple and Logitech) seem to be able to open files etc. on a click. I have to click repeatedly to get it done. When I run the disc utility it mostly goes away. Now, I run the disc repair every morning to make it go away. Annoying. I have seen other people having similar issues - it sounds like a OS issue????

    This same scenario has happened to me sporadically over the past few months and seems to be increasing. I have the Logitech Cordless Optical Mouse for Notebooks. Got it 3 years ago for use with my G4 PowerBook (1.5 GHz, 2 GB RAM, OS 10.4.8). First I thought it was the batteries, but then realized that if I'd just wait a few minutes the problem would usually go away. Nothing new electrical on my desk that would cause it. Gets really annoying. The mouse becomes sluggish and the clicks are non responsive (a right click will open a sub-menu window, but then no other clicks work. Trying to move the mouse around on the screen gives spotty results - stops and starts - as if I'm moving it on a reflective surface. After multiple clicks the window goes away. I can disconnect the USB transmitter and have complete control with the mousepad.
    Sometimes the problem won't occur all day long. Other times it comes and goes multiple times during an hour. A restart will usually get it out of that overly annoying loop.
    I bought a new Logitech Mouse a few days ago, thinking mine was wearing out, but the same thing happened within minutes.
    I can only think there's some conflict with an OSX update. VERY frustrating. I don't want to go back to a wired mouse.
    So I, too, am eager for a solution.
    Thanks,
    -Scott
    PowerBook G4, 15 in., 1.5 GHz   Mac OS X (10.4.8)   2 GB RAM; 2 LaCie 250 GB FW drives; 1 LaCie 500 GB FW drive

  • Mouse Coordinates and Timer Resolution

    First - I am not a Flash or ActionScript programmer. I have
    been asked by someone if I could port my ActiveX code (private) to
    the Flash client. In researching all of the Flash, Flex and
    ActionScript documentation, it appears that almost everything I
    need is present... Almost....
    A. My program relies on Mouse Coordinates being fed to it in
    twips. The only possible references I get to this issue have come
    from searching this forum.
    - Is it true that the X and Y coordinates are returned to
    ActionScript as floating point values that represent fractional
    pixel values that I can translate to twips?
    B. My program also relies on good timer resolution. The
    Windows GetTicks() API is not sufficient, because it is returned
    via the Windows message queue and can be off enormously at a
    MouseMove event. Therefore, in my ActiveX code, I call the
    QueryPerformanceCounter(), which gives me the resolution I need.
    - Can anyone tell me what timer API the Flash client engine
    is using for the values it returns?
    Thank you,
    Grant

    I still don't understand your problem and apparently nobody else does either since there are no responses. Why don't you write a simple program (like I did for you on your last post) that demonstrates the problem.
    "A picture is worth a thousand words".

  • How to find out the mouse Coordinates

    How can I find out the mouse coordinates, where I am clicking on the screen.
    I tried to use MouseEvent e, e.getX() and e.getY() but it is giving that particular components X,Y coordinates

    In SwingUtilities there is a method called that can be used to convert a local location to a screen location.
    public static void convertPointToScreen(Point p,
    Component c)
    Convert a point from a component's coordinate system to screen coordinates.
    Parameters:
    p - a Point object (converted to the new coordinate system)
    c - a Component object

  • An issue using the COM components supplied with SAP GUI 6.2 or 6.4

    We are having an issue using the COM components supplied with SAP GUI 6.2 or 6.4.  We used to have SAP 4.6c and now we have 5.0.  When we were on 4.6c, we used these COM components to logon and execute RFC calls and we had much success.  Now that we are on 5.0, we can’t seem to instance any SAP functions that have something to do with SAP Workflow.  We have experienced this problem when using VB6 or .NET, but our existing code that always worked is in VB 6.0.
    SAP Components used:
    o     SAP Logon Control
    o     SAP Function Control
    o     Librfc32.dll
    o     Other supporting C DLLs and/or COM object supplied with the SAP GUI installation.
    For example, if we want to call the RFC ARCHIV_CONNECTION_INSERT, this code fails in VB6 when the “Set objworkflow = objFuncCtrl.Add(strFunction)” line of code executes.  Instead of returning an instance of the object ARCHIV_CONNECTION_INSERT function, no object is created.  In 6.2, SAP raises no errors, but the object we are trying to create is still “Nothing”.  If we use 6.4, SAP raises an error “SAP data type not supported” via a message box and then the object is still = Nothing.  Interestingly enough, the 6.2 GUI COM controls don’t display the error dialog.  The message box that is shown comes from the SAP Function COM Object "SAP.Functions" (wdtfuncs.ocx).
    Now, what is interesting is if we use the same code to call a standard function or custom function that doesn’t have anything to do with SAP Workflow, then the code works fine.  Again, all of our code used to work just fine on an SAP 4.6 system.
    Here is the code that fails:
        'SAP Logon control - object for creating connections to an SAP system
        Dim objSAPLogonCtrl As Object
        'SAP connection object
        Dim objConnection As Object
        'Object that will represent the SAP function called
        Dim objSAP As Object
        'SAP function control object - object factory for creating other SAP function objects
        Dim objFuncCtrl As Object
        'Create instance of an SAP logon conrol
        Set objSAPLogonCtrl = CreateObject("SAP.Logoncontrol.1")
        'Create a connection object
        Set objConnection = objSAPLogonCtrl.NewConnection
        'Define connecion parameters
        objConnection.ApplicationServer = "sapvm"
        objConnection.SystemNumber = "00"
        objConnection.Client = "800"
        objConnection.User = "iissap"
        objConnection.Password = "tstadm"
        objConnection.Language = "E"
        objConnection.TraceLevel = 10
        'call the logon method of the connection object
        If objConnection.Logon(0, True) = False Then
            MsgBox Error
            Exit Sub
        End If
        'Create an instance of the SAP Function control object
        Set objFuncCtrl = CreateObject("SAP.Functions")
        'Set the function control connection object
        Set objFuncCtrl.Connection = objConnection
        'Function name to be generated and called
        Dim strFunction As String
        strFunction = <b>"ARCHIV_PROCESS_RFCINPUT"</b>
        'Create an instance of the function defined in strFunction
        Set objworkflow = objFuncCtrl.Add(strFunction)
        If objworkflow Is Nothing Then
            MsgBox "Could not create object " & strFunction
        Else
            MsgBox strFunction & " object created."
        End If
    If anyone has seen anything like this or has any ideas, please help!
    Mike and Hameed
    <b></b>

    Hi,
    documentation on the Scripting API is available at ftp://ftp.sap.com/pub/sapgui/win/640/scripting/docs/
    This API is a replacement of the existing, obsolete COM interfaces.
    Best regards,
    Christian

  • About get mouse coordinates on screen?

    how to get mouse coordinates in java, i don't look for a appropriate method.

    The MouseEvent which is given to the MouseMotionListener or the MouseListener has one getX() and one getY() method. That are the coordinates in your applicetion window starting with (0,0) in the upper left corner.
    Hope this helps
    Markus

  • [svn] 4690: * Fixed an issue caused by revision 4330.

    Revision: 4690
    Author: [email protected]
    Date: 2009-01-27 13:12:47 -0800 (Tue, 27 Jan 2009)
    Log Message:
    * Fixed an issue caused by revision 4330. Due to leaving the backing
    variables and functions in the public namespace, they were showing
    up in FlexBuilder's code hinting and DataGrid's without specified
    columns. Now they are "hidden" in the mx_internal namespace.
    tests Passed: checkintests, mxunit databinding
    Needs QA: YES
    Needs DOC: NO
    Bug fixes: SDK-18853, SDK-18604
    API Change: NO
    Reviewer: Pete F.
    Code-level description of changes:
    frameworks/projects/framework/src/mx/binding/BindingManager.as
    Modified set() to no longer require a userNamespace arg. The
    mx_internal namespace is now assumed.
    modules/compiler/src/java/flex2/compiler/as3/genext/GenerativeSecondPassEvaluator.java
    Renamed makeAttrListPublic() to makeMxInternalAndRemoveOverride(DefinitionNode)
    and updated it to handle IdentifierNodes in the
    AttributeListNode's items.
    Added makeMxInternalAndRemoveOverride(IdentifierNode, Iterator) as
    a helper method for common code in
    makeMxInternalAndRemoveOverride(DefinitionNode).
    modules/compiler/src/java/flex2/compiler/as3/genext/GenerativeClassInfo.java
    Modified AccessorInfo's constructor to create a more unique backingPrefix.
    Modified getQualifiedBackingPropertyName() to always use the
    mx_internal namespace.
    modules/compiler/src/java/flex2/compiler/as3/binding/BindableProperty.vm
    Modified BindingManager.set() call to no longer pass in the userNamespace.
    modules/compiler/src/java/flex2/compiler/as3/binding/BindableFirstPassEvaluator.java
    Modified evaluate(Context, ClassDefinitionNode) to add an import
    for mx_internal.
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-18853
    http://bugs.adobe.com/jira/browse/SDK-18604
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/framework/src/mx/binding/BindingManager.as
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/BindableFirstPassEval uator.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/BindableProperty.vm
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/genext/GenerativeClassInfo.ja va
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/genext/GenerativeSecondPassEv aluator.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/managed/ManagedProperty.vm

    After days of tweaking and suspecting antivirus behind the problems, I reverted back to MSI's default drivers as listed on the product webpage. It appears to be stable so far. Well at least I can use it now.
    I'm not sure if Killer's drivers are suck or MSI don't allow drivers 'not certified by them'. But its bad news if someone wants to use the latest drivers considering we're talking cutting edge gaming laptops here.

  • Mouse panning issues in Flipview

    Hi,
    I have a problem in mouse panning issues in WinJS Flipview control.
    Here is my sample:
    https://skydrive.live.com/redir?resid=533F417A2E04AEC4!1009
    My problem is: I can zoom images in flipview and panning, zooming or scrolling them via finger touch.
    So, is there a simple way to enable mouse panning, scrolling?
    I think it is useless to zoom if the user cannot drag image by mouse if there is no touch device.
    Thanks so much.
    Nick

    I think adding MSGesture is a fine idea. What you're experiencing here is just a difference in the native workings of touch and mouse, so you have to manually compensate for these differences.
    Because panning and pinch/zoom in touch mode give you behaviors that are not directly translatable to mouse actions, the mouse does not interpret similar actions unless you ask it do.
    Panning with a finger is the most natural thing to expect for touchmode, but it does not directly translate into click and drag, and for that reason, mouse does not pan.  However, you can just add the event so that you get the same behavior.  It's
    extra work, but you have to take into account that not all developers want the same behavior.  For example, I expect that someone will say "I don't want to pan when I touch the screen, I want to draw a line, like I can with a mouse.  How do
    I disable this behavior?"
    I hope this clears things up for you.
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
    objects and unknown namespaces.

  • Mouse Focus Issues

    hi,
    Are there any known mouse focus issues in r12 (r12.6) ?
    we have couple of users who have these problems. this isn't with all but few of them.
    thanks,
    jazz

    Jazz,
    Review the following documents, and see if it helps.
    Note: 457136.1 - On R12 Application, Randomly The Mouse Navigation Stops Working
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=457136.1
    Note: 468724.1 - Rel 12 : Mouse Cursor Is Frozen (Loss Of Focus In Applet) After Minimizing And On Restoring the Form To Normal Size
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=468724.1
    Note: 824000.1 - Unable to Use Mouse Cursor After Accessed on Folder Tools box
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=824000.1
    Regards,
    Hussein

  • JDev 10.1.3.3 - issues with imported Business Components

    Hi,
    I have got some issues with importing Business Components in JDev 10.1.3.3.
    I cannot discover/use the imported components.
    What I did is the folowing:
    1. In a existing project I extended the default base-classes to create our own layer
    2. created a project called ModelShared
    2a. configured the project to use the base-classes I created in step 1
    2b. created an entitybased-viewobject (RefCodesByDomain)
    2c. created bc deployment-descriptors
    3. created a project called RelatieModel in the same workspace as ModelShared
    3a. added dependencies to the deployment-descriptors as well as the project created in step 2
    3b. configured the project to use the base-classes I created in step 1
    3c. imported business components
    Although I did not recieve any errors during the import of business components, I am unable to add the vo (RefCodesByDomain) to a service.
    I do see the package which contains the vo but is has no entries.
    Importing the business components to a new BC Project in a seperate workspace did succeed (I could reuse the vo).
    I tested a little further and the folowing occurred:
    4. I created a new vo in the ModelShared Project
    5. I deployed the ModelShared
    6. Restarted JDeveloper
    7. Got the folowing error message in the console window when expanding a service in my datacontrol pallette:
    INFO: oracle.adf.share.config.ADFConfigFactory No META-INF/adf-config.xml found
    1-sep-2008 13:23:27 oracle.adf.dt.controls.DataControlsTreeWillExpandListener treeWillExpand
    FINER: THROW
    java.lang.NullPointerException
            at oracle.adf.dt.objects.JUDTViewReferenceAccessorDefinition.init(JUDTViewReferenceAccessorDefinition.java:108)
            at oracle.adf.dt.objects.JUDTViewReferenceAccessorDefinition.<init>(JUDTViewReferenceAccessorDefinition.java:98)
            at oracle.adfdt.internal.meta.bc4j.BC4JDataControlDefinition.createViewObjectDefinition(BC4JDataControlDefinition.java:228)
            at oracle.adfdt.internal.meta.bc4j.BC4JDataControlDefinition.addViewObjects(BC4JDataControlDefinition.java:208)
            at oracle.adfdt.internal.meta.bc4j.BC4JDataControlDefinition.loadStructure(BC4JDataControlDefinition.java:110)
            at oracle.adfdt.internal.meta.bc4j.BC4JDataControlDefinition.getStructure(BC4JDataControlDefinition.java:407)
            at oracle.adf.dt.controls.treemodel.jsr227.JSR227DataControlTreeNode.loadChildNodes(JSR227DataControlTreeNode.java:129)
    8. In my other "fresh" bc project I was able to use the newly created vo.
    9. When I added a VO to my shared project, all projects that are refering to the shared project loose their vo's in the data-controlpannel
    Do you have any suggestions?
    Regards,
    Romano

    Hi,
    since this appears to be a WebCenter related issue, I suggest to try the Webcenter forum WebCenter Portal or to log a bug
    Frank

  • In Photoshop CS6 how do I turn off the move tool popup showing the mouse coordinates?

    I just installed Creative Suite CS6 and in Photoshop, when I use the move tool a small popup window shows the mouse coordinates. I can't see any option to turn this off, either in the Options bar or the Preferences. It's really annoying. Can someone please help?
    Thanks,
    Joanne

    Thank you so much! Sometimes I miss the lack of user manuals but I know it saves trees.

  • Plotting on xy graph based on mouse coordinates

    I am looking into plotting Mouse coordinates on XY Graph continuously based on where i move. My computer's resolution is 1200x800 and i would like it to plot based on where i move.,
    Attached is my progress so far.
    Attachments:
    progress.png ‏74 KB

    The XY Graph has a method which converts coordinates to XY values. You can call it by right clicking the graph and selecting Create>>Invoke Node>>Map Coordinates to XY.
    However, if you look at the help for it, you will see that the coordinates it expects are those of the pane the graph is in, and the coordinates you have are of the screen. You can convert your global coords to pane coords by getting the VI's Front Panel Window. Panel Bounds property, building two matching XY clusters from the data and subtracting them (assuming the VI only has one pane) or you can use another loop with an event structure and a Mouse Move event (which returns local data) on the graph and then transfer the position data to your loop (you could also use a single loop, but that might be more complicated because the event structure will process every move of the mouse as a new event).
    You will also need to keep the data to place in the graph somewhere. If you open the context help window and hover over the graph's BD terminal, you will see the data types it expects and you will need to build one of those yourself. A shift register is something you might want to look into. There are also some examples showing working with graphs in the example finder (Help>>Find Examples).
    Try to take over the world!

  • Mouse coordinate in oracle form canvase

    Hi,
    Is there any way to know the mouse coordinate when the mouse is moving in oracle form canvase.
    I will appreciate for help..... Thanks.
    Regards,

    System variables should give u information
    this forms example might help
    /* Trigger:  When-Mouse-Click
    **   Example:  Dynamically repositions an item if:
    **             1) the operator clicks mouse button 2
    **                on an item and
    **             2) the operator subsequently clicks mouse button
    **                2 on an area of the canvas that is
    **                not directly on top of another item.
    DECLARE
       item_to_move       VARCHAR(50);
       the_button_pressed VARCHAR(50);
       target_x_position  NUMBER(3);
       target_y_position  NUMBER(3);
       the_button_pressed VARCHAR(1);
    BEGIN
       /* Get the name of the item that was clicked.
       item_to_move := :System.Mouse_Item;
       the_button_pressed := :System.Mouse_Button_Pressed;
       **  If the mouse was clicked on an area of a canvas that is
       **  not directly on top of another item, move the item to
       **  the new mouse location.
       IF item_to_move IS NOT NULL AND the_button_pressed =  '2' THEN
          target_x_position := To_Number(:System.Mouse_X_Pos);
          target_y_position := To_Number(:System.Mouse_Y_Pos);
          Set_Item_Property(item_to_move,position,
              target_x_position,target_y_position);
          target_x_position := NULL;
          target_y_position := NULL;
          item_to_move := NULL;
       END IF;
    END; plz mark correct/helpful if it is

Maybe you are looking for

  • How to track changes in text [column type]  changes in MDM

    Hi, How to keep track changes in Text[column type] in MDM tables.Is it the only way that I have to declare it as Name field?

  • Migration from Access to Oracle 10g (Problem with migration wizard)

    Hi I have an access database which I want to migrate to Oracle DB. I have created 2 connections. 1. Access connection with the source database 2. Oracle connection. I have associated the oracle connection to the repository. When I go through 'MIGRATI

  • SQL Server 2012 - xp_cmdshell - second call fails.

    I have just upgraded a system from 2008 R2 to 2012 SP1. I have an issue with a scheduled SP that fails 'randomly' whilst processing/emailing a series of files created by a previous SP. The SP gets a directory list and processes each file. The process

  • Loyalty Management: Change tiers manually

    Hi all,   within the Interaction Center (Profile: IC_LOY_AGENT) I select Membership Overview out of the navigation bar. There I get an overview of the membership tiers. I mark an active entry within this list of tiers and click on Change or Downgrade

  • Replying does not show original message

    After upgrading to Safari 4 (final release not beta), I started to notice that when replying an email the original message would not always show. I have selected all the correct settings in preferences. Does anyone have a suggestion?. As a side note,