|
-
Sep 10th, 2001, 04:33 AM
#1
Thread Starter
Lively Member
PictureBox Auto Redraw and refresh
In the game I'm working on I have two lables inside a picture box that is the combat screen. The problem is that the picture box has to refresh constantly which causes the lables to flash. Does anyone know of a way that I can avoid this without removing the lablels from the picture box?
All will fall before the might of the Black Sashi...
-
Sep 10th, 2001, 04:55 AM
#2
PowerPoster
Hi
The best soln is probably to not use Label controls and instead print directly to the picture box. This will stop any flickering
eg
VB Code:
Private Sub Timer1_Timer()
Randomize
z = Rnd * 5000
zz = Rnd * 5000
Picture1.Line (z, zz)-(zz, z)
With Picture1
.CurrentX = 300
.CurrentY = 300
[b]Picture1.Print "Label1"[/b]
.Refresh
End With
End Sub
regards
Stuart
-
Sep 12th, 2001, 07:22 PM
#3
Frenzied Member
And don't worry if "Print" is not in the functions list, it works 
Just set the CurrentX and CurrentY to the coordinates where you wanna print the text, and use that function to print 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|