Results 1 to 5 of 5

Thread: Shape ordering

  1. #1

    Thread Starter
    Lively Member malb's Avatar
    Join Date
    Feb 2005
    Location
    England
    Posts
    88

    Shape ordering

    Is there anyway to tell vb which shapes to draw first? I am drawing a line directly onto the form, but it draws over the top of some of my other shape objects, is there any way to set the ordering? Like a bring to front or send to back?

    Malb
    You fear me because I'm different, i pitty you because your all the same.

  2. #2
    Fanatic Member damasterjo's Avatar
    Join Date
    Nov 2005
    Location
    In front of my Comp DirectX7 EXpert
    Posts
    827

    Re: Shape ordering

    i dont think so, but you can just draw them in the right order, or after adding an object that must be behind something, just draw them all again in the right order...
    Software languages known:
    Qbasic - TI-Basic - Liberty Basic - Visual Basic 6
    Software API's known:
    Directx 7 and 8
    Internet languages, in the process of learning:
    HTML - JAVASCRIPT - PHP - CSS - MYSQL - AJAX

  3. #3

    Thread Starter
    Lively Member malb's Avatar
    Join Date
    Feb 2005
    Location
    England
    Posts
    88

    Re: Shape ordering

    Yeah this is the problem, the objects are ordered correctly in the code, but when drawn onscreen there not, because its all on a timer i dont really wanna draw them again if possible
    You fear me because I'm different, i pitty you because your all the same.

  4. #4
    Oi, fat-rag! bushmobile's Avatar
    Join Date
    Mar 2004
    Location
    on the poop deck
    Posts
    5,592

    Re: Shape ordering

    perhaps use a line control instead of drawing the line, then you can set it's ZOrder in relation to the other shape controls.

  5. #5
    Fanatic Member damasterjo's Avatar
    Join Date
    Nov 2005
    Location
    In front of my Comp DirectX7 EXpert
    Posts
    827

    Re: Shape ordering

    well if on timers why not set up some boolean variables like drawn1, drawn2... and so forth, then you could say
    VB Code:
    1. if drawn1 = true and drawn2 = false then
    2. 'draw second image
    3. drawn2=true
    4. end if
    5.  
    6. if drawn2 = true and drawn3 = false then
    7. 'draw 3rd image
    8. drawn3=true
    9. end if
    10. '... and so forth
    Software languages known:
    Qbasic - TI-Basic - Liberty Basic - Visual Basic 6
    Software API's known:
    Directx 7 and 8
    Internet languages, in the process of learning:
    HTML - JAVASCRIPT - PHP - CSS - MYSQL - AJAX

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