How to know current selection rectangle

Hello,
I need to know (with SDK) the current selection rectangle.
I use listener to create my action fonction but listener let to Set a selection but not Get.
If someone can help me...
Thanks

There is a bounds to a selection of a document. BEWARE: This is the bounding rectangle of the selection. If you have a selection with holes in it then you may not be getting what you expect.

Similar Messages

  • How to know the select statement perfomence

    how to know the select statement perfomence. suppose i have 10 select statements in my program. how will i know which select statement not performance wise poor.

    Go to ST04/
    Click on Detail Analysis menu button.
    Click on the SQL Request button.
    In the pup up give <table name> and execute.
    Then you will get a list of all the programs that have a select on that table.
    Or ST05 transaction t start the trace and run your program .Deactivate the trace in st05 .
    and display the trace.
    Regards,
    Ravi

  • How to detect Current Selection in a TextBox

    Hi All,
    I faced an issue regarding how to detect current selection in a Word Document TextBox. The Document looks like this,
    I tried to use Application_WindowSelectionChange(Word.Selection Sel)
    event to handle,
    private void Application_WindowSelectionChange(Word.Selection Sel)
    if (Sel.Range.ShapeRange.Count != 0)
    return;
    I found Sel.Range.ShapeRange.Count always 0. 
    To reproduce this issue, I upload the test document in OneDrive, you can download from
    here.
    How to solve this issue?
    Thanks a lot!
    The future belongs to those who believe in the beauty of their dreams.

    Hi friend,
    Just use Sel.ShapeRange.Count instead.
    On the other hand, to get selected text, we could use Sel.Text, to get whole selected
    TextBox’s text, we could use Sel.ShapeRange.TextFrame.TextRange.Text.
    Good job!
    Regards
    Starain
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How we know the selected node in a Tree object in a form?

    In a TREE object in forms, how can we know the current selected node by clicking a push button.
    lets say , there are 10 nodes in my tree, and 5th one i selected. But i want to store the selected node in a variable, when i click a button.
    please help
    thanks

    Hello
    I've just notice what might be a bug in Oracle forms because when I have the when-tree-node-selected trigger present for the tree (It does not matter if it executes null or some code), the code in option 1 works fine on a when-button-pressed trigger on a button item. This is what I had done to give you a reply.
    My second option will work because you're populating a parameter with when-tree-node-selected trigger which is then readable form anywhere else in the form. All you add is a check on when-button-pressed. Also for bug handling you need to consider setting the value to null when deselecting. I have this option working currently in one of my applications.
    DECLARE
         num_selected NUMBER;
         htree ITEM;
    curren_node FTREE.NODE;
    BEGIN
    htree := find_item('tree.form_list');
    num_selected := ftree.get_tree_property(htree,ftree.selection_count);
    for j in 1..num_selected
    LOOP
    curren_node := ftree.get_tree_selection(htree,j);
    message('hello :'||ftree.Get_Tree_Node_Property(htree,curren_node,ftree.node_value),acknowledge);
    end loop;
    END;     
    cheers
    Q

  • How to know current bandwidth to be able to increase or decrease reserved streaming units ?

    Hi,
    how to know egress bandwidth by Azure Api to be able to increase reserved streaming unit if bandwidth reaches over 80%. Currently it is set to 1, but should be able to increase it when bandwidth is more than 160 mpbs(80% of available bandwidth which is 200mbps) 
    Thanks for your feedback in advance.

    Hi Sandhya,
    For now you can use Azure portal dashboard to check "Streaming Data Out". The chart will give you 30 minute aggregated values.
    Thanks,
    Cenk
    

  • WPF: How to know the selection is come from datagrid or from ListBox?

    Our application has a page which includes DataGrid and ListBox.
    Both ItemSource are binding to PlateCells.
    public ObservableCollection<CellVM> PlateCells
    public class CellVM : BaseViewModel
    public CellVM(int wellNumber)
    WellNumber = wellNumber;
    Row = wellNumber / define.NumberofWellsInRow;
    Col = wellNumber % define.NumberofWellsInRow;
    // row and col are 0-based
    public int WellNumber { get; set; }
    public int Row { get; set; }
    public int Col { get; set; }
    bool _isSelected;
    public bool IsSelected
    get { return _isSelected; }
    set
    _isSelected = value;
    OnPropertyChanged("IsSelected");
    string _sampleId;
    public string SampleId
    { get { return _sampleId; }
    set
    _sampleId = value;
    OnPropertyChanged("SampleId");
    when a cell is selected, the cell will be highlight in both DataGrid and ListBox.
    We also implement SelectAll button for both DataGrid and ListBox.
    And SelectAll is ToggleButton. First time click is select All cells and second time click, it will unselect All cells.
    What we notice when SelectAll button is click, all cells in both DataGrid and List box  are highlight.
    After that click on a grid any cell, all cells becomes unselected in both DataGrid and ListBox.
     We assume this the behavior from DataGrid, after click SelectAll and click any cell in DataGrid will remove all selection and only highlight one cell in the datagrid.
    However, this is behavior does not happen in ListBox. click any cell in ListBox only unselect that cell and not unselect all cells.
    So we need to know click(selection) is coming from DataGrid or ListBox and take different actions.
    How do we know the click is coming from DataGrid or ListBox? Thx!
    JaneC

    >>How do we know the click is coming from DataGrid or ListBox? Thx!
    It depends on where in the code you want to be able to determine this. In the view model class you cannot really know if the user clicked in the ListBox or in the DataGrid because the view model knows nothing (and shouldn't know either) about any of these
    controls. It only exposes a property that may be set from anywhere.
    Handling the GotFocus event for any or each of the controls seems to be a good solution because then you can take the appropriate action depending on which control was focused/clicked.
    You could of course move the code that is being executed when the GotFocus event occurs, i.e. the code in your event handler, from the code-behind of the view to the view model class by using a command in the view model class and then hook up the GotFocus
    event to this command using event triggers:
    <DataGrid>
    <i:Interaction.Triggers>
    <i:EventTrigger EventName="GotFocus" >
    <i:InvokeCommandAction Command="{Binding YourCommand}" />
    </i:EventTrigger>
    </i:Interaction.Triggers>
    </DataGrid>
    How to do this is a topic of its own though. Please refer to my blog post about how to handle events in MVVM for more information:
    http://blog.magnusmontin.net/2013/06/30/handling-events-in-an-mvvm-wpf-application/. You will need to reference an assembly that is part of the Expression Blend SDK which you can download from here:
    http://www.microsoft.com/en-us/download/details.aspx?id=10801.
    Anyway, as mentioned, handling the GotFocus event seems like a good idea here since you cannot determine which control that was clicked in the setter of the source property in the view model class.
    Hope that helps.
    Please remember to close your threads by marking helpful posts as answer and please start a new thread if you have a new question.

  • How to know current speed of connection in Kbps?

    Does anyone know how to know the speed of network/internet connection? I couldn't find any member method of JAVA's class that returns this value. Very appreciate for all your hints.

    Try something like this:public class Test
      public static void main(String[] argv)
        try
          URL url = new URL("http://java.sun.com"); /* put a pointer to some big image here */
          InputStream is = url.openConnection().getInputStream();
          int bytes = 0;
          long ms = System.currentTimeMillis();
          while(is.read() != -1) bytes++;
          ms = System.currentTimeMillis() - ms;
          double kbps = ((double)bytes / ((double)ms / 1000)) / 1024;
          System.out.println("kbps = " + (long)kbps);
          System.exit(0);
        catch(Throwable t)
          t.printStackTrace();
          System.exit(-1);
    }I suggest you repeat this test for several pointers and take the average...

  • How to make a selection rectangle with draggable handles

    Hi,
    I'm trying to write a program to visualize large trees in java. The idea is to have a thumbnail view of the tree with a movable selection rectangle that can be used to focus on certain parts of the tree. Parts inside the rectangle will be displayed in greater detail in another view.
    I was wondering if there are any libraries available for making this kind of selection rectangle in Java2D (it'd also be nice to have 8 handles for changing the size of the rectangle) or if anyone has any implementation ideas. I'd appreciate any help. Thanks!
    Wayne

    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import javax.swing.*;
    import javax.swing.event.MouseInputAdapter;
    public class DragLens extends JPanel
        Lens lens;
        public DragLens()
            lens = new Lens(this);
        protected void paintComponent(Graphics g)
            super.paintComponent(g);
            Graphics2D g2 = (Graphics2D)g;
            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                                RenderingHints.VALUE_ANTIALIAS_ON);
            lens.draw(g2);
        public static void main(String[] args)
            DragLens dragLens = new DragLens();
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(dragLens);
            f.setSize(400,400);
            f.setLocation(200,200);
            f.setVisible(true);
    class Lens extends MouseInputAdapter
        DragLens dragLens;
        Point2D.Double[] centers;
        Rectangle2D hunter;
        int selectedIndex;
        Point2D.Double offset;
        boolean dragging;
        final int S = 10;
        public Lens(DragLens dl)
            dragLens = dl;
            dragLens.addMouseListener(this);
            dragLens.addMouseMotionListener(this);
            initPoints();
            hunter = new Rectangle2D.Double(0,0,S,S);
            offset = new Point2D.Double();
            dragging = false;
        public void draw(Graphics2D g2)
            // draw rects
            g2.setPaint(Color.blue);
            for(int j = 0; j < centers.length; j++)
                g2.draw(new Rectangle2D.Double(centers[j].x-S/2, centers[j].y-S/2, S, S));
            // draw lines
            g2.setPaint(Color.red);
            g2.draw(new Line2D.Double(centers[0].x+S/2, centers[0].y+S/2,  // west
                                      centers[1].x+S/2, centers[1].y-S/2));
            g2.draw(new Line2D.Double(centers[1].x+S/2, centers[1].y-S/2,  // south
                                      centers[2].x-S/2, centers[2].y-S/2));
            g2.draw(new Line2D.Double(centers[2].x-S/2, centers[2].y-S/2,  // east
                                      centers[3].x-S/2, centers[3].y+S/2));
            g2.draw(new Line2D.Double(centers[3].x-S/2, centers[3].y+S/2,  // north
                                      centers[0].x+S/2, centers[0].y+S/2));
        public void mousePressed(MouseEvent e)
            Point p = e.getPoint();
            hunter.setFrameFromCenter(p.x, p.y, p.x+S/2, p.y+S/2);
            for(int j = 0; j < centers.length; j++)
                if(hunter.contains(centers[j]))
                    offset.x = p.x - centers[j].x;
                    offset.y = p.y - centers[j].y;
                    selectedIndex = j;
                    dragging = true;
                    break;
        public void mouseReleased(MouseEvent e)
            dragging = false;
        public void mouseDragged(MouseEvent e)
            if(dragging)
                double x = e.getX() - offset.x;
                double y = e.getY() - offset.y;
                translate(x, y);
                dragLens.repaint();
        private void translate(double x, double y)
            switch(selectedIndex)
                case 0:
                    centers[3].y = y;
                    centers[1].x = x;
                    break;
                case 1:
                    centers[0].x = x;
                    centers[2].y = y;
                    break;
                case 2:
                    centers[1].y = y;
                    centers[3].x = x;
                    break;
                case 3:
                    centers[2].x = x;
                    centers[0].y = y;
            centers[selectedIndex].x = x;
            centers[selectedIndex].y = y;
        private void initPoints()
            int[] x = { 0, 0, 1, 1 };
            int[] y = { 0, 1, 1, 0 };
            centers = new Point2D.Double[x.length];
            for(int j = 0; j < centers.length; j++)
                centers[j] = new Point2D.Double(x[j], y[j]);
            AffineTransform at = AffineTransform.getScaleInstance(80,40);
            at.translate(1,2);
            at.transform(centers, 0, centers, 0, 4);
    }

  • How to know currently running ddl  by dba_views in oracle 9i

    sql_hash_value in v$session is showing 0 .presently create table is running which is done by copying from another table.
    Edited by: apusumit on May 16, 2012 1:46 AM
    Edited by: apusumit on May 17, 2012 12:08 AM

    apusumit wrote:
    sql_hash_value in v$session is showing 0 .presently create table is running
    Edited by: apusumit on May 16, 2012 1:46 AMSQL_HASH_VALUE 0 means sql has been completed. If you are sure that it is still running and showing SQL_HASH_VALUE 0, then show us what are you doing and how Oracle is responding you by simply copy and paste SQLplus screen text by below commands :
    set linesize 200
    set pagesize 1000
    select sql_text from v$sql where (ADDRESS,HASH_VALUE) in (select sql_address,sql_hash_value from v$session where sid= &sid_number);
    Anand @ find the current sql which is running against database
    OR
    select c.spid b1, b.osuser c1, b.username c2, b.sid b2, b.serial# b3,
    a.sql_text
    from v$sqltext a, v$session b, v$process c
    where a.address = b.sql_address
    -- and b.status = 'ACTIVE' /* YOU CAN CHOOSE THIS OPTION ONLY TO SEE
    -- ACTVE TRANSACTION ON THAT MOMENT */
    and b.paddr = c.addr
    and a.hash_value = b.sql_hash_value
    order by c.spid,a.hash_value,a.piece
    Adith @ What are current query running
    You can too check LAST_DDL_TIME of user_objects view.
    Regards
    Girish Sharma

  • UWL: How to know user selected in forward

    Hi,
    In UWL inbox,When I try to forward an item to another user, I get a separate UI to select user to Forward the item. How can i get to know (i want to know to whom it was forwarded within the code) the person who was selected.
    Regards,
    Naveen

    I get it, Tausif.
    You're saying that because SBO_SP_TransactionNotification gives me the opportunity to return an error code to roll back a transaction which has already been entered, the info I need is already in the database. I only have to use the key(s) given to me by @list_of_cols_val_tab_del to look up the new record and query it for whatever I want to know. In this case, UserSign tells me the UserID of the person attempting the change.
    Thanks!

  • How to know current form name in oracle applications 11i.

    Hi all,
    By clicking on Help menu-> About Oracle Applications, it will display environment variables info, and current form info, on which we r working.
    I want to know from where this information is coming,
    Where oracle applicaitons will store this information.
    Is there any database table which regularly updates the current form info.
    Or is there any log which contains info about current form name.

    Hi
    For viewing this information you need to read system administration guide , Go through this pdf file
    http://download-uk.oracle.com/docs/cd/B11454_01/11.5.9/acrobat/115saug.pdf
    Nitin

  • Newbie question: how to know current namespace in dbx debugging environment

    Good afternoon,
    I have an application, running on a Solaris 5.8.
    This application gives errors because of namespace issues, therefore I would like to check the namespace I am working in while debugging with dbx, but I don't find the command for this.
    Does anybody know which command to launch within a dbx environment for displaying the current namespace?
    Thanks
    Dominique

    (dbx) help -k namespace
    scopes (command)
    (dbx) scopes
    Function PSeudoClass::plain_function()
    namespace PSeudoClass
    File "ambig.cc"
    Loadobject /export/home/test/c++/namespace/a.out

  • How to know the select stmt used in creating a table?

    Hi,
    If we create a table by selecting some records form another table, can we see the select statement used to create that table.
    example: Create table emp2 as select * from emp where deptno=20;
    is there any data dictionary table which stores select * from emp where deptno=20
    Thanks in advance.
    Edited by: 805791 on Jul 28, 2012 9:01 PM

    No. The SELECT statement is not associated with the table in the data dictionary.
    If the statement was executed recently, you may find the entire CREATE TABLE in the V$SQL view. Or, if you have licensed the AWR, you may find it in the DBA_HIST_SQLTEXT view. But there is no guarantee that the query will be in either view.
    Justin
    Edited by: Justin Cave on Jul 29, 2012 3:46 AM
    Additionally, this question doesn't appear to relate to the Oracle Call Interface so it should probably have been asked in a different forum. The General Questions forum or the SQL and PL/SQL forum would have been more appropriate.

  • How to know current row is a new row ?

    Hi,
    i need to implement some logic in my BC4J JSP form commit process, but when it's a new row only.
    how can i do that ?
    Thanks,
    Ricky H.P.

    See:
    re:How to identify inserted/modified row(s) in a VO
    Regards

  • How to get to know the current selected service?

    Can anyone tell me how to get the current selected service in MHP? I tried to find one but no result. Can javax.tv.media.MediaSelectControl.getCurrentSelection() gives me the answer?

    servicecontext.getService()

Maybe you are looking for

  • Help Needed on Null Pointer Exception

    Hi All, Am using the wls10 platform. Any help would be appriciated. Have been struggling on this for a bit now. Thanks, The the relevant control code is: @JdbcControl.SQL(statement = "SELECT p.PATCH_ID, p.REQUIRES,ps.PRODUCT_DISPLAY_NAME, v.VERSION_N

  • Problem updating infoobject master data from a dso.

    Hi all, i'm updating the master data of an infoobject from another ods, the two table have the same key. When i update the infoobject with full repair i get errors about duplicate records and the data load stops, when i delete the request and launch

  • FB 4.7 Released Today: What does it include?

    In another discussion, it was posted that FB 4.7 was released today: http://www.adobe.com/products/flash-builder.html The site is not very clear about Flex. Does it include Flex? Which version? What about Air 3.5?

  • Issue with Java Application with ECC - Connection Issue

    Hi We have developed one java application to connect to SAP to extract some data. We are using java API (sapjco) to connect to the SAP. Now we are facing one issue u2013 for the ECC while connecting through the java application we are getting u201CUs

  • Adobe Illustrator CS6 crashes on every quit (on Windows 7 system)

    Hello, Each time I close the program on my Windows 7 system Illustrator crashes. The program works fine while it is open and starts up just fine also, the problem on exists when closing. After the program crashes this is what happens: Then sometimes