Results 1 to 7 of 7

Thread: Copy & Paste with large frames

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 2003
    Posts
    62

    Copy & Paste with large frames

    I'm working on a project that uses a frame that is very long (heightwise) and uses almost 300 controls. My problem is that when pasting multiple controls they are placed at the top left corner of the frame and it is extremely frustrating to have to drag each individual control down the frame because you lose focus every time you move the frame. It's probably hard to understand the problem unless you've had to do it... heh heh.

    So i'm wondering if anyone has a workaround or a way of changing the default position of where pastes are placed?

  2. #2
    Frenzied Member
    Join Date
    Nov 2010
    Posts
    1,470

    Re: Copy & Paste with large frames

    why are you pasting the controls onto the form?

    here to help

  3. #3

    Thread Starter
    Member
    Join Date
    Nov 2003
    Posts
    62

    Re: Copy & Paste with large frames

    It's an array of 66 images with associated labels etc. 6 across and 11 down. And the the frame is much larger than the form. I think it would be a toss up between pasting & dragging method and drawing each control individually.

  4. #4
    Frenzied Member
    Join Date
    Nov 2010
    Posts
    1,470

    Re: Copy & Paste with large frames

    you should be able to know the position of the controls and even workout the relative values of top and left for eacdh control and therefore place each control programatically

    if you store the values in an ini type structure you can even move controls so that they make sense at different resolutions.

    this is a common enough activity

    here to help

  5. #5
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    Re: Copy & Paste with large frames

    Or just paste away, then save and go edit the Form by hand with Notepad to change the positions. If you need this a lot maybe write a program to process a .FRM file to space 'em out vertically.

  6. #6

    Thread Starter
    Member
    Join Date
    Nov 2003
    Posts
    62

    Re: Copy & Paste with large frames

    Quote Originally Posted by dilettante View Post
    Or just paste away, then save and go edit the Form by hand with Notepad to change the positions. If you need this a lot maybe write a program to process a .FRM file to space 'em out vertically.
    Wow... i didn't know you could do that with notepad. I think that will help, thanks.

  7. #7
    Frenzied Member
    Join Date
    Nov 2010
    Posts
    1,470

    Re: Copy & Paste with large frames

    if you did not know that do you know this

    if you make a new shortcut to notepad and place that in the folder where your frms are you simply drag the form to it to edit!

    here to help

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width