Results 1 to 2 of 2

Thread: Dockable Form like Winamp

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 1999
    Posts
    3

    Question

    I have a form that is visible nearly all the time and is a very small window. I would like to be able to make the window dockable similar to the way WinAmp does it. So that when being moved, if the form is near the edge of the screen it will jump so that it is lined up. Any suggestions would be appreciated very much,

    Thanks

    Raymond

  2. #2
    Addicted Member Mage33's Avatar
    Join Date
    Aug 2000
    Location
    Petaluma, California
    Posts
    138

    Angry

    Sorry, I don't know how to make it lign up with the edge of the screen, but if you want to add another winamp feature (that is, when one window is moved all the others move along with it) you can do that by saying form2.left = form1.left + form1.width and by replacing left with tops for up and down... this is a nice feature and is easy to code in. Also, I just thought of a way to do the snap thing... something like an if form1.left <= 15 and then a form1.left = 0.. that would make it so that if it's within 15 of the left side it would auto jump to it... don't know how to do it for the right side. The trick is gonna be putting is in the correct sub... I can't remember which it is for movement. This probably isn't what you're looking for but I figured I'd post just in case.
    Stephen Haney- 115 116 101 118 101 31 72 65 78 69 89
    -ShardsOfSilence.net- ^ My name in ASCII ^
    You forget something new every day
    | WinME | VB6 Pro | MSC++ | Lambda MOO |

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