Results 1 to 3 of 3

Thread: Problem with moving the window

  1. #1

    Problem with moving the window

    I'm currently using DelphiX and i've got a small problem :
    I draw some pictures on the DXDraw - everything is OK. But when i move the application window, the images isn't showing
    Code:
      DXDraw.Surface.Fill(0);
      for t:=0 to DXImageList.Items.Count-1 do
        DXImageList.Items[t].Draw(DXDraw.Surface,t*64,0,0);
      DXDraw.Flip;
    I draw the pictures with this function
    Life su***, but you gotta live your life

  2. #2

    Problem with moving the window

    The code you have there should work properly.
    Is it located in the main gameloop, like for example in the ontimer event?

    If you haven't and you perform a resize, it'll clear the main surface, like you're describing in your post.

  3. #3

    Problem with moving the window

    The drawing function was in the OnTimer event But i managed to solve this problem myself - I just changed the main forms DragKind to dkDock Thanks anyway
    Life su***, but you gotta live your life

Bookmarks

Posting Permissions

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