Results 1 to 4 of 4

Thread: [VB6] - 2D Level Editor problems

Threaded View

  1. #1

    Thread Starter
    PowerPoster joaquim's Avatar
    Join Date
    Apr 2007
    Posts
    3,904

    [VB6] - 2D Level Editor problems

    i'm building an 2D Level Editor, but my scrollbar max values aren't correct
    can anyone advice me?
    Code:
    Private Sub ScrollingValues()
        ScrollingVertical.Max = picView.ScaleHeight - UserControl.ScaleHeight
        ScrollingHorizontal.Max = picView.ScaleWidth - UserControl.ScaleWidth
        If ScrlBars = Both Then
            ScrollingHorizontal.Max = ScrollingHorizontal.Max + 17
            ScrollingVertical.Max = ScrollingVertical.Max + 17
        End If
        If picView.ScaleHeight <= UserControl.ScaleHeight Then ScrollingVertical.Max = 0
        If picView.ScaleWidth <= UserControl.ScaleWidth Then ScrollingHorizontal.Max = 0
    End Sub
    Last edited by joaquim; Feb 5th, 2012 at 04:09 PM.
    VB6 2D Sprite control

    To live is difficult, but we do it.

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