Re: similar method for get correct position mouse in node

The MouseEvent itself has the data you need to compute similar coordinates that the SwingUtilities method does:
e.getX(); e.getY(); // coordinates of the mouse relative to the component on which the event was fired
e.getSceneX(); e.getSceneY(); // coordinates of the mouse in the Scene
e.getScreenX(); e.getScreenY(); // coordinates of the mouse on the Screen
If you want to get the row in a ListView (or TableView) for a mouse event, however, I would recommend setting a custom cell factory that handles the mouse event for each cell:
ListView<T> list  = ... ;
list.setCellFactory(new Callback<ListView<T>, ListCell<T>>() {
     @Override
     public ListCell<T> call(ListView<T> listView) {
          final ListCell<T> cell = new ListCell<T>();
          cell.setOnMouseDragged(new EventHandler<MouseEvent>() {
               @Override
               public void handle(MouseEvent event) {
                    int index = cell.getIndex(); // list index: may be out of range if this is an empty cell
                    T item = cell.getItem(); // Item displayed in the cell: may be null if this is an empty cell
          return cell ;
(I just typed that in here without testing: it may have typos. Obviously replace T with the type for your ListView.)

The only way I know to do that is to implement a full drag and drop and use the setOnDragOver handler on the cell. Something like:
      list.setCellFactory(new Callback<ListView<T>, ListCell<T>>() {
            @Override
            public ListCell<T> call(ListView<T> listView) {
                final ListCell<T> cell = new ListCell<>();
                cell.setOnDragDetected(new EventHandler<MouseEvent>() {
                    @Override
                    public void handle(MouseEvent event) {
                        if (cell.getItem() != null) {
                            Dragboard db = cell.startDragAndDrop(TransferMode.MOVE);
                            ClipboardContent cc = new ClipboardContent();
                            cc.put(dataFormat, cell.getIndex());
                            db.setContent(cc);
                cell.setOnDragOver(new EventHandler<DragEvent>() {
                    @Override
                    public void handle(DragEvent event) {
                        if (cell.getItem() != null) {
                            System.out.println(cell.getIndex());
                return cell;
You may want to do other things with the drag too (setOnDragDropped to process when the drag is ended on a cell, etc.)

Similar Messages

  • Why can I no longer, after having downloaded Lion, write accents and other diacriticals when in the Google, Yahoo, FaceBook, or even here in this post? The new method for getting at the "option" symbols works fine in other places like spotlight, but now e

    Why can I no longer, after having downloaded Lion, write accents and other diacriticals when in the Google, Yahoo, FaceBook, or even here in this post? The new method for getting at the "option" symbols works fine in other places like spotlight, but now even the older "option+letter" doesn't work in most places.

    Chrome doesn't support the new accent/diacritics/macron chooser. I'm not sure about other browsers such as Firefox. You can use the old Option+letter combination that Doug suggested. Hopefully updates will solve these little incompatibilities shortly.
    Neill

  • Method for getting list of Oracle/SQL keywords

    Hi
    I am Parsing dtd file and creating sequence of relational schema from that. But sometimes the dtd file use some element name that are keywords for the SQL. So before issuing a CREATE TABLE ststement,I like to check whether the table has any column name that is a keyword .For that I need to know is there any method by which I can get the list of SQL/Oracle keywords ? PLs help. THANKS

    Class: java.sql.DatabaseMetadata
    Method: getSQLKeywords
    Desc: Returns a comma-delimited list of all non-SQL92 keywords used by the database
    Example (Source http://javaalmanac.com/egs/java.sql/GetSqlKeywords.html?l=rel ):
    import java.sql.Connection;
    import java.sql.DatabaseMetaData;
    public String[] getSQLKeywords(Connection connection) {  
       String[] keywords = null;  
       try {       
          DatabaseMetaData dbmd = connection.getMetaData();       
          keywords = dbmd.getSQLKeywords().split(",\\s*");   
       } catch (SQLException e) {
          // Handle Exception   
       return keywords;
    SQL92 Keywords
    The SQL92 specification is available for purchase. However, if you just want the full list of reserved words / keywords for a particular type of database, there is usually documentation provided by the database vendor.
    Full Keyword List Oracle 8.0:
    http://www-rohan.sdsu.edu/doc/oracle/server803/A54656_01/vol2_wor.htm#421705
    For Other Oracle Versions:
    - Visit technet.oracle.com
    - Register for free
    - Go to Documentation
    - Look under K for Keywords in index for newer versions of Oracle
    - Look under Programmer's Guide to the Oracle Call Interface for older versions of Oracle

  • What's an effective method for getting replies to your questions?

    Hey guys so hopefully I get a response to this cause recently this has been bugging me a lot.
    I've been making topics on here over a period of about a year or so and almost none of them i've been getting replies and I know most of these questions are problems that i Know professionals like yourselves can answer. So my question is what am I doing wrong? Is it that no one knows? Am I too vague or too specific? Is it cause I made it confusing? Let me know if you can. Thanks a lot!!
    If you want a sample of what I mean, here's a couple links if you need one to give me a good answer:
    http://discussions.apple.com/thread.jspa?threadID=2451877&tstart=0

    In your sample post you write:
    it says "Attempting to copy the disk "Ipod" failed. You do not have the privilages to make the chanages."
    Then right behind it it says "The ipod cannot by synced. You do not have enough privilages for this opperation"
    Now i've read up on this already on many sites...
    Potential respondents are more likely to also read up on the problem if you quote the error messages accurately — then they can do a quick copy & paste into Google. But with "privileges" misspelt twice and "be", "changes" and "operation" all misspelt, potential respondents have to do a lot of editing before looking up those error messages. Note that in Compose mode you can click on this symbol to activate the spell checker:
    You also write "Ipod/ipod" instead of "iPod". You may not think this makes much difference, but Apple apparently does as they consistently refer to their product as "iPod".
    Midnight Pharaoh wrote:
    ...here's a couple links if you need one to give me a good answer:
    http://discussions.apple.com/thread.jspa?threadID=2451877&tstart=0
    So where's the +*other link*+ of the +"couple links"?!+
    Your +Public Profile+ indicates you're using Mac OS X (10.6.2) — is that true? (The current version is 10.6.3.)
    ...Try taking time to present your question and error messages accurately and see if you receive more replies to your questions.

  • What is best method for getting most capacity when burning DVDs?

    Supposedly there's 4.7 gigs on your average one layer DVD that you get in a spindle at the office supply store, but I've never got that much on one.
    This Apple error message is frustratingly backwards and rediculous:
    "Files 001 is too large to fit on disc. Remove some files and try again."
    I don't want to take files out one at a time and try again and again and again and again. I want the exact amount of space available when I insert the DVD. Is this too complicated for a computer company like Apple to figure out?
    What do you guys do to streamline? Partitions? How big? TIA!

    You are falling for the same old Madison Avenue hype that affects all computers and computer storage devices. Salesmen think that a megabyte is 1 million bytes, but in reality, all computers consider a megabyte to be 1024,000,000 bytes. This leads to the common problem of not actually getting 80GB with an 80GB drive (actually formats to something like 74GB). A 1TB drive actually formats to 931GB.
    A 4.7GB DVD actually holds 4.37GB of data. A Dual Layer 8.5GB DVD (sometimes referred to as DV9) actually holds about 7.9GB of data. In addition, a very small portion of every disk is used to keep track of the files on the disk.
    Mac, Windows, Linux - no operating system agrees with Salesmen
    Message was edited by: dechamp

  • When bouncing- what's best method for smallest file size/highest quality?

    I am in the process of embedding 3 mp3's into a PDF to submit as a portfolio. The PDF also has text, and two scores included, and with the 3 embedded mp3's it can't be more than 10mb.
    So my question is: When bouncing a project out of Logic, what is the best method for getting the smallest file size, but retaining the best audio quality? And once it's out of Logic and it is an mp3 or other type of audio file, is there a best format for compressing it further, and still maintaining the relative quality?
    I bounced out the three projects into wav's. Now I am using Switch for Mac to compress them down to smaller Mp3's. I basically need them to be about 3 mb each. Two of the recordings sound OK at that size, but they are just MIDI(one project is piano and string quartet, the other is just piano- all software instruments. The recording that combines MIDI and Audio and has more tracks (three audio tracks and 10 Midi/software instrument tracks)and sounds completely horrible if I get it under 5 mb as an mp3. The problem is that I need all three to equal around 9mb, but still sound good enough to submit as a portfolio for consideration into a Master's program.
    If anyone can help I would really appreciate it. Please be detailed in your response, because I am new to logic and I really need the step by step.
    Thank you...

    MUYconfundido wrote:
    I am in the process of embedding 3 mp3's into a PDF to submit as a portfolio. The PDF also has text, and two scores included, and with the 3 embedded mp3's it can't be more than 10mb.
    So my question is: When bouncing a project out of Logic, what is the best method for getting the smallest file size, but retaining the best audio quality?
    The highest bitrate that falls within your limits. You'll have to calculate how big your MP3's can be, then choose the bitrate that keeps the size within your limit. The formula is simple: bitrate is the number of kilobits per second, so a 46 second stereo file at 96 kbps would be 96 x 46 = 4416 kbits / 8* = 552 kBytes or 0.552 MB. (*8 bits = 1 Byte)
    So if you know the length of your tracks you can calculate what bitrate you need to keep it within 10 MB total.
    I consider 128 kbps the lowest bearable bitrate for popsongs and other modern drumkit based music. Deterioration of sound quality is often directly related to the quality of the initial mix and the type of instruments used in it. Piano(-like) tones tend to sound watery pretty quickly at lower bitrates, as do crash and ride cymbals. But don't take my word for it, try it out.
    And once it's out of Logic and it is an mp3 or other type of audio file, is there a best format for compressing it further, and still maintaining the relative quality?
    You can only ZIP the whole thing after that, but that is just for transport. You'll have to unzip it again to use it. And no, you cannot compress an MP3 any further and still play it.
    I bounced out the three projects into wav's. Now I am using Switch for Mac to compress them down to smaller Mp3's.
    That is silly, you could have done that in Logic, which has one of the best MP3 encoders built in. And how good encoders are will especially come out at bitrates around or below 128, which you might be looking at.
    I basically need them to be about 3 mb each.
    So, one more scrap of info we need here: how long are those three pieces, exactly? I'll calculate the bitrate for you - but please bounce 'm directly out of Logic as MP3's. They will very probably sound better than your WAV-conversions made with Switch.
    !http://farm5.static.flickr.com/4084/4996323899_071398b89a.jpg!
    Two of the recordings sound OK at that size, but they are just MIDI(one project is piano and string quartet, the other is just piano- all software instruments. The recording that combines MIDI and Audio and has more tracks (three audio tracks and 10 Midi/software instrument tracks)and sounds completely horrible if I get it under 5 mb as an mp3. The problem is that I need all three to equal around 9mb, but still sound good enough to submit as a portfolio for consideration into a Master's program.
    Length of the piece? And does the .Wav bounce you have sound OK?

  • Clean Methods for adding HTML5 content to CP6?

    This seems to be a major missing piece of the mLearning wokflow. As far as I can tell the only viable methods for getting Hype/Edge/etc.. HTML5 animation content into a Captivate project are as follows:
    1. Convert animation to HTML5 compatible video file (not very slick and a file size hog, IMHO)
    2. Use a webpage widget to embed the animation from an external page (not a huge fan of third party dependencies)
    3. Add content after the fact using Dreamweaver or some other HTML editor (makes changes and revisions a multistep productivity nightmare)
    4. Use a beta tool that appears to have stalled out in development e.g, Lacuna (Brilliant name, BTW)
    Have any of the brilliant Captivate masters in this forum come up with any more favorable solutions? I seems so half baked that Adobe would allow CP6 to ship with "HTML5 support" but not allow HTML5 embeds. Am I completey missing something here?
    Cheers!
    -Ryan

    Thanks for the reply Jim. I have used your widgets in the past and I appreciate the work you have done. No ill will towards widget developers intended . I'm glad I didn't miss anything and this is truly the is the state of things.
    Seemed like sunch a simple thing to do, in concept, but in practice, not so much. Just the ability to add html code to a slide would be a major boon. (I agree about the current state of HTML5, but the most obvious application of this feature is for mobile devices where HTML5 support is far more widespread than the desktop segment)
    I was wondering though, with your experirnce in widget development: Would it be practical to create a simple widget that contains the animation and then place that?
    BTW, I have applied to beta that Lacuna app that you linked me too, but have heard nothing from the developers. Have you any insight as to the progress of that project?
    Thanks again,
    Ryan

  • Org unit is not getting defaulted for the selected position in infotype0001

    Org unit is not getting defaulted for the selected position in infotype 0001 during the hiring action.
    In OM Org. units and positions have been created.
    The Org. unit to Position relationship is also created.
    But inspite of this, In infotype 0001, the after selecting a position, the Org unit is still getting defaulted to "00000000" instead of the Org. unit Id to which the position belongs. (Please note: At the time of selecting the position, I do structure search and the position is shown under the correct Or. unit)
    Have I missed any step?

    Have u run the RHINTE programmes properly ?
    are u able to save the record?
    As some times it may be display probolem, if u r able to save the record then check the relationship in pp10/po13.
    and U have not answered what Mr. Valeri is asking about your Implementation/support because these type we come accress if data is not uploaded properly.
    Regards
    vinmax

  • Swap method for list of Nodes not working correctly

    Ok so I'm basically messing with a list of nodes, swapping, reversing, and cycling. My only problem is the swap method that I am implementing.
    It starts out with a boolean to see if the position is valid, and if so, it will go through the instructions.
    The first condition is that if the the position to be swapped( which is named secondPosition) equals 2, it goes through a certain method, which I have no problem with...BUT in the second condition, if secondPosition is greater than 2, I have to use a different way of swapping them...Of course, I have to change their references and not positions, since that's the way nodes work. Also, at the end of the list of nodes, the reference will be null, so I have to deal with that as well, which is to set it to the first node in the list. I am very sure I am writing the code for swapping correctly, but yet it seems that the lists that I swap in the second condition don't even change at all! I don't really see how its happening...could anyone help???
    Here is the run:
    TESTING SWAP
    Trying an invalid swap (position 0)
    Passed test
    Passed test
    Trying an invalid swap (position 4/list size 3)
    Passed test
    Passed test
    Trying a valid swap (position 3/list size 3)
    Passed test
    *** Failed test (bad list on swap)
    *// the result is supposed to be: John Jack Jill, but the list stays in its initial state*
    Jack
    Jill
    John
    Trying a valid swap (position 3/list size 4)
    Passed test
    *** Failed test (bad list on swap)
    *// result is supposed to be Jill Jack John Jerry, yet the list stays in its initial state*
    Jill
    John
    Jack
    Jerry
    Trying a valid swap (position 4/list size 4)
    Passed test
    *** Failed test (bad list on swap)
    *//result is supposed to be Jill Jack John Jerry, yet it still stays in its initial state*
    Jill
    John
    Jack
    Jerry
    Trying a valid swap (position 2/list size 3)
    Passed test
    Passed test
    Here is the method:
         public boolean swap(int secondPosition)
              boolean valid = false;
              if( secondPosition == 2)
                   valid = true;
                   Node<T> nodeOne = this.firstNode;
                   Node<T> nodeTwo = nodeOne.getNextNode();
                   Node<T> nodeThree = nodeTwo.getNextNode();
                   firstNode = nodeThree;
                   nodeThree = nodeOne;
                   nodeOne = nodeTwo;
              else if( secondPosition > 2 && secondPosition <= length)  //this loop is where I'm having problems
                   valid = true;
                   Node<T> nodeBefore = getNodeAt(secondPosition -2);
                   Node<T> nodeOne = nodeBefore.getNextNode();
                   Node<T> nodeTwo = nodeOne.getNextNode();
                   Node<T> nodeAfter = nodeTwo.getNextNode();
                   if( nodeAfter == null)
                        nodeAfter = firstNode;
                   nodeBefore = nodeTwo;
                   nodeTwo = nodeOne;
                   nodeOne = nodeAfter;
              return valid;
         }

    I'm sure there is a bug in swap method.
    if( secondPosition == 2)
                   valid = true;
                   Node<T> nodeOne = this.firstNode;
                   Node<T> nodeTwo = nodeOne.getNextNode();
                   Node<T> nodeThree = nodeTwo.getNextNode();
                   firstNode = nodeThree;
                   nodeThree = nodeOne;
                   nodeOne = nodeTwo;
              }All this code does not actually reorder your nodes. All it does is move a bunch of pointers about. For example firstNode will end up pointing to the last node in the list but this does not automagically make it the first node. If you were to make a call to firstNode .getNextNode I'm sure it will return null and not the next node in the list like you think.

  • Getting the position of a component in a container for repainting

    This may be a stupid question but, I want to get the position of a custom component as it lays in a JFrame. This is needed for a repaint of the special component. getX() and getY() return the origin of the component as it is painted in paintComponent(). How might this be done without messy parameters to an overridden repaint method?
    I need the position so that I can cut out a portion of an underlying background image in the JFrame, so that I can repaint the component's text without clearing away the image or painting over it with a color. If anyone has a better idea, I'm all ears. . .
    Thanks.

    as a near solution to my problem, I have created the following method to locate the exact origin of the custom component:
         private int[] getAbsolutePosition(Component c)
              int pos[] = {this.getX(), this.getY()};
              int x = 0;
              int y = 0;
              Container parent = c.getParent();
              while (parent != null)
                   x = parent.getX();
                   pos[0] += x; // append next width
                   y = parent.getY();
                   pos[1] += y; // append next height
                   parent = parent.getParent();
              pos[0] -= x;     // Remove the position of the parent frame
              pos[1] -= y;     // from the totals.
              return pos;
         }The custom component has 3 JPanels, one Container, and a JFrame beneath it. I remove the JFrame positions becuase they would mess things up. Still, the x values it returns are off by a small but noticible amount. Does anyone know what might account for this?

  • Get screenshot with mouse cursor and send for client application

    I took
    this function for getting a screenshot from a client application. I to tried adapt this function in my project, but I can not capture desktop showing mouse cursor (coming from a remote pc) in my server application (controller).
    Here is my adaptation (in client side) but without success:
    void SendScreenProc()
    // Send First Bitmap
    MemoryStream streamScreen = new MemoryStream();
    this.bmpScreenSend = CaptureScreen(true);//new Bitmap(this.boundScreen.Width, this.boundScreen.Height, PixelFormat.Format24bppRgb);
    Graphics g = Graphics.FromImage(this.bmpScreenSend);
    g.CopyFromScreen(0, 0, 0, 0, this.boundScreen.Size);
    this.bmpScreenSend.Save(streamScreen, System.Drawing.Imaging.ImageFormat.Png);
    Compress.CompressStream(streamScreen);
    Byte[] bufferScreen = streamScreen.ToArray();
    mreSendData.WaitOne();
    this.queueSendData.AddScreen(streamScreen.GetBuffer());
    streamScreen.Close();
    this.receivedScreen = 0;
    while (this.remoted)
    // Send next bitmap result by difference with previous bitmap.
    if(this.receivedScreen == 0) {
    } else {
    Bitmap bmpCurrentScreen = CaptureScreen(true);//new Bitmap(this.boundScreen.Width, this.boundScreen.Height, PixelFormat.Format24bppRgb);
    g = Graphics.FromImage(bmpCurrentScreen);
    g.CopyFromScreen(0, 0, 0, 0, this.boundScreen.Size);
    if (this.receivedScreen == 1) {
    if(this.bmpScreen != null) {
    this.bmpScreen.Dispose();
    this.bmpScreen = this.bmpScreenSend;
    } else if(this.receivedScreen == 2) {
    if (queueSendData.AvailableScreenAdd && IsDifferent(bmpCurrentScreen, this.bmpScreen))
    streamScreen = new MemoryStream();
    Bitmap bmpDiff = XorBitmap(this.bmpScreen, bmpCurrentScreen);
    bmpDiff.Save(streamScreen, System.Drawing.Imaging.ImageFormat.Png);
    this.bmpScreenSend.Dispose();
    bmpDiff.Dispose();
    this.bmpScreenSend = bmpCurrentScreen;
    mreSendData.WaitOne();
    this.queueSendData.AddScreen(streamScreen.GetBuffer());
    streamScreen.Close();
    this.receivedScreen = 0;
    else
    bmpCurrentScreen.Dispose();
    Thread.Sleep(30);

     Hi FlashCoder,
    Do you mean like this capture? Use mouse cursor to capture the specified area.
    If so, here is a sample that I wrote. It should meet your requirement.  If not, please feel free to let me know.
    The following is ScreenForm code
    public partial class ScreenForm : Form
    public ScreenForm()
    InitializeComponent();
    public event copyToFatherTextBox copytoFather;
    public bool begin = false;
    public bool isDoubleClick = false;
    public Point firstPoint = new Point(0, 0);
    public Point secondPoint = new Point(0, 0);
    public Image cachImage = null;
    public int halfWidth = 0;
    public int halfHeight = 0;
    /*Copy the entire screen, and form fill the screen*/
    public void copyScreen()
    Rectangle r = Screen.PrimaryScreen.Bounds;
    Image img = new Bitmap(r.Width, r.Height);
    Graphics g = Graphics.FromImage(img);
    g.CopyFromScreen(new Point(0, 0), new Point(0, 0), r.Size);
    //Maximize form
    this.Width = r.Width;
    this.Height = r.Height;
    this.Left = 0;
    this.Top = 0;
    pictureBox1.Width = r.Width;
    pictureBox1.Height = r.Height;
    pictureBox1.BackgroundImage = img;
    cachImage = img;
    halfWidth = r.Width / 2;
    halfHeight = r.Height / 2;
    this.Cursor = new Cursor(GetType(), "MyCursor.cur");
    private void ScreenForm_Load(object sender, EventArgs e)
    copyScreen();
    /*Begins when the mouse is pressed screenshots*/
    private void pictureBox1_MouseDown(object sender, MouseEventArgs e)
    if(!isDoubleClick)
    begin = true;
    firstPoint = new Point(e.X, e.Y);
    changePoint(e.X, e.Y);
    msg.Visible = true;
    /*Displayed when the mouse moves to intercept the border*/
    private void pictureBox1_MouseMove(object sender, MouseEventArgs e)
    if (begin)
    //Redraw the background image
    secondPoint = new Point(e.X, e.Y);
    int minX = Math.Min(firstPoint.X, secondPoint.X);
    int minY = Math.Min(firstPoint.Y, secondPoint.Y);
    int maxX = Math.Max(firstPoint.X, secondPoint.X);
    int maxY = Math.Max(firstPoint.Y, secondPoint.Y);
    Image tempimage = new Bitmap(cachImage);
    Graphics g = Graphics.FromImage(tempimage);
    //Picture cropping frames
    g.DrawRectangle(new Pen(Color.Red),minX,minY,maxX-minX,maxY-minY);
    pictureBox1.Image = tempimage;
    //Calculation of coordinate information
    msg.Text = "Upper left corner coordinates:(" + minX.ToString() + "," + minY.ToString() + ")\r\n";
    msg.Text += "Lower right corner coordinates:(" + maxX.ToString() + "," + maxY.ToString() + ")\r\n";
    msg.Text += "Screenshot size:" + (maxX - minX) + "×" + (maxY - minY) + "\r\n";
    msg.Text += "Double-click end screenshots anywhere!";
    changePoint((minX + maxX) / 2, (minY + maxY) / 2);
    /*Dynamically adjusts the displayed location, enter the parameters for the current screen mouse position*/
    public void changePoint(int x, int y)
    if (x < halfWidth)
    if (y < halfHeight)
    { msg.Top = halfHeight; msg.Left = halfWidth; }
    else
    { msg.Top = 0; msg.Left = halfWidth; }
    else
    if (y < halfHeight)
    { msg.Top = halfHeight; msg.Left = 0; }
    else
    { msg.Top = 0; msg.Left = 0; }
    /*Screenshot is completed when you let go of the mouse operation */
    private void pictureBox1_MouseUp(object sender, MouseEventArgs e)
    begin = false;
    isDoubleClick = true;
    /*When I double-click a screenshot when notifying parent form complete screenshot action, while closing the form*/
    private void pictureBox1_DoubleClick(object sender, EventArgs e)
    if (firstPoint != secondPoint)
    int minX = Math.Min(firstPoint.X, secondPoint.X);
    int minY = Math.Min(firstPoint.Y, secondPoint.Y);
    int maxX = Math.Max(firstPoint.X, secondPoint.X);
    int maxY = Math.Max(firstPoint.Y, secondPoint.Y);
    Rectangle r = new Rectangle(minX, minY, maxX - minX, maxY - minY);
    copytoFather(r);
    this.Close();
    //msg.Text = r.ToString();
    This is the mainFrom code.
    public delegate void copyToFatherTextBox(Rectangle r);
    public partial class Form1 : Form
    public Form1()
    InitializeComponent();
    /*Start screenshot*/
    private void button1_Click(object sender, EventArgs e)
    ScreenForm screen = new ScreenForm();
    screen.copytoFather += new copyToFatherTextBox(copytoTextBox);
    screen.ShowDialog();
    /*Screenshot of subsequent operations*/
    public void copytoTextBox(Rectangle rec)
    Rectangle rec2=rec;
    if(rec.Width>2&&rec.Height>2)
    rec2= new Rectangle(rec.X + 1, rec.Y + 1, rec.Width - 2, rec.Height - 2);
    Rectangle r = Screen.PrimaryScreen.Bounds;
    Image img = new Bitmap(rec2.Width, rec2.Height);
    Graphics g = Graphics.FromImage(img);
    g.CopyFromScreen(rec2.Location, new Point(0, 0), rec2.Size);
    Clipboard.SetDataObject(img, false);
    richTextBox1.Paste();
    Best regards,
    Kristin
    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.

  • Oracle.jbo.AttrValException: JBO-27019: Get method for attribute

    Hi Guys,
    I am trying to add a new column to Oracle quoting.It has already been customized by some consultant few years back. I followed the note 392728.1 on metalink and also have the documentation by the previous consultant but getting the error oracle.jbo.AttrValException: JBO-27019: Get method for attribute Draft in HeaderVO could not be resolved after adding my column, when I try to print the quote.
    Here are the steps I took
    1) added a column to the query (at the end) in HeaderVO.xml
    2) added the below code in the HeaderVO.xml
    <ViewAttribute
    Name="DRAFT"
    IsQueriable="false"
    IsPersistent="false"
    Precision="100"
    Type="java.lang.String"
    AliasName="DRAFT"
    ColumnType="VARCHAR2"
    Expression="DRAFT"
    SQLType="VARCHAR" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="100" />
    </DesignTime>
    </ViewAttribute>
    3). Modify HeaderVORowImpl.java file to add setters and getters for the newly added view attribute. For example,
    a) case 67: //
    setDRAFT((String)obj);
    return;
    b) case 67:
    return getDRAFT();
    c) ublic void setDRAFT(String s)
    setAttributeInternal(67, s);
    public String getDRAFT()
    return (String)getAttributeInternal(67);
    d) protected static final int DRAFT = 67;
    Everything is dont exactly as per the manual but not sure why I am getting this issue. Any help will be appreciated.

    a) case 67: //
    setDraft((String)obj);
    return;
    b) case 67:
    return getDraft();
    c)public void setDraft(String s){
    setAttributeInternal(67, s);
    public String getDraft(){
    return (String)getAttributeInternal(67);
    d) protected static final int DRAFT = 67;
    can u change it as explained above.. setDRAFT should be setDraft.. and getDRAFT should be getDraft..
    and make sure that the index.. number is exactly matching with the attribute order in the VO

  • I already have a valid payment method for my iTunes account, but can't get past the Family Sharing setup prompt telling me to add a payment method . What to do?

    I already have a valid payment method for my iTunes account, but can't get past the Family Sharing setup prompt telling me to add a payment method . What to do?

    I had the same problem and found a bunch of others did, too.  Unfortunately all the posts had no responses!  Anyway, I previously had my payment method linked to my paypal.  I tried changing it to my credit card and it worked.  Don't know if there's a bug with using paypal but that seemed to be the culprit for me.  Good luck!

  • How do i get a list of all Roles defubed under a particular OrganizationalUnit? How can i use LDAPConnection.search method for this?

     

    Sorry for the typographical mistake.
    Please read the question as:"How do i get a list of all Roles defined under a particular OrganizationalUnit? How can i use LDAPConnection.search method for this?"

  • How to get similar color for objects in different pictures

    how do you get similar color for objects in different pictures
    I have a prodject that i'm working on and i need to edit several images at once (preferabley) so that they are the same color. They are wooden cupboards and i need all the wood looking the same colour. In light room you can edit a group of images at the same time hence the colours are the same . Is this possible in Elements ? If so how do i do this ?
    I have tried duplicating layers and it just replaces the whole image, it seems to work using levels layers but not the other layers ... I have 30 more images to do and would ideally not like to adjust all the images manually ? I dont mind doing minor tweaks. Essentially all the images where taken with the same camera and lighting and lens's ...
    Screen shot is where I'm at at the moment...
    I have posted this question else where but was told to repost  - this is a link to my previous post as to where we got to
    http://forums.adobe.com/message/4720576#4720576

    You could try using the raw converter. Open one file and edit it (File>Open, pick the image and choose Camera Raw as the format before you click Open). Then open the next image and click the little four-lined square on the upper right side of the ACR window and choose Previous Conversion from the flyout menu.

Maybe you are looking for

  • User exit or BAdi for field update in ECC system for SUS supplier

    Dear Guru's, I am configuring MM-SUS scenario in our srm 7.01 scenario. Not all vendors of our client are going to be SUS vendors. For SUS vendors, the client will be using Purchase Order Acknowledgement and Advanced Shipping Notification key. I am t

  • I cannot get any downoad to work. How do I cancel?

    I want to cancel the plan I paid for this morning. Can't get it to work. I'd like to purchase the Dreamweaver program separately.

  • How to enforce always sorting on a column in a TableView?

    Hello, I have a requirement to always sort on a column in a TableView. So basically, I need a TableColumn's SortType go from Ascending to Descending and back to Ascedning when user clicks on a column header repeatedly. I guess that means making sure

  • Styling Error Messages

    What is the best way to go about styling the error messages set by default with ADDT? I have so far styled #KT_tngerror succesfully but I'm a little bit puzzled as to where.... .form_validation_field_error_error_message and .KT_field_error .....come

  • Upgrading controllers and access points through NCS

    I am currently trying to upgrade all of my controllers and access points to the newest version.  I have downloaded the file and loaded it on the ftp server running on the Cisco NCS server.  I tried to go to configure>controllers and Download Software