Thread: Drag window

  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2004
    Rep Power

    Drag window

    Okay so I am making my custom UI.
    but I am stuck on the part where people can drag the window, since it's a Borderless form.
    I have right now an onMousedown even that checks if the Y of the mouse is smaller than 20, if it is, we set drag to true, and we get the or_x and or_y (origin) by substracting the window's Left to the X of the mosue and the window's Top to the mouse's Y.
    Then i have an onMouseMove event that checks if drag is true, and if it is, then

    Now this kind of works, but the window flickers like crazy! Got a clue what i should do?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2004
    Rep Power
    Try placing timer in your program to control moving of the window.....maybe that will help.
    What i want to say if in every predefined amount of time window is moved for the same amount of pixels, it wont flicker......

IMN logo majestic logo threadwatch logo seochat tools logo