|
-
Apr 22nd, 2006, 12:09 PM
#1
Thread Starter
Lively Member
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.
-
Apr 22nd, 2006, 12:26 PM
#2
Fanatic Member
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
-
Apr 22nd, 2006, 12:34 PM
#3
Thread Starter
Lively Member
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.
-
Apr 22nd, 2006, 12:36 PM
#4
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.
-
Apr 22nd, 2006, 12:37 PM
#5
Fanatic Member
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:
if drawn1 = true and drawn2 = false then
'draw second image
drawn2=true
end if
if drawn2 = true and drawn3 = false then
'draw 3rd image
drawn3=true
end if
'... 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|