|
-
Nov 28th, 2001, 09:06 AM
#1
Thread Starter
_______
Lose the filicker in Image Box??
I have tried this but it flickers when changing.
Form is Black Background
Code:
'Form keypress event
Image1.visible=false
Set Image1.Picture = nothing
Select Case myAsci
Case 97
Set Image1.Picture = LoadPicture (myPathPic)
Image1.visible = true
Case bla bla
etc.
End Select
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Nov 28th, 2001, 09:15 AM
#2
Lively Member
I have no clue on how to reduce flicker. Microsoft probably added it on purpose....
Try API Calls. I have no idea how to use them, but I hear they're fast.
IF Something <> "" Then
There's Something there... 
------------------------------------------
GWBASIC, QBASIC, QuickBASIC, VB5/6, A little DJGPP C++, and I hate it.
------------------------------------------
The pic u see is the logo of my favorite Christian Punk Band...Officer Negative!!!
www.OfficerNegative.com
-
Nov 28th, 2001, 09:54 AM
#3
-= B u g S l a y e r =-
u could try using the LockWindowUpdate API
VB Code:
Option Explicit
Declare Function LockWindowUpdate Lib "user32" (ByVal hwnd As Long) As Long
Public Sub LockWindow(hwnd As Long)
'Låser et vindu slik at det ikke flimrer når data blir oppdat.
LockWindowUpdate hwnd
End Sub
Public Sub UnlockWindow()
'Frigjør vinduet igjen.
LockWindowUpdate 0
End Sub
then in u'r form do this :
VB Code:
'Form keypress event
[b]LockWindow Me.hwnd[/b]
Image1.visible=false
Set Image1.Picture = nothing
Select Case myAsci
Case 97
Set Image1.Picture = LoadPicture (myPathPic)
Image1.visible = true
Case bla bla
etc.
[b]UnlockWindow[/b]
End Select
that might do it ....
-
Nov 28th, 2001, 09:55 AM
#4
Hyperactive Member
I think you have to turn the Form's AutoRedraw off then use a technique called double buffering.
-
Nov 28th, 2001, 10:20 AM
#5
Thread Starter
_______
<?>
FRAIL_KNIGHT
I have no clue as to how your answer is supposed to help . LOL
Peet
I have tried yours and it would seem to have a purpose for flickering once the picture is set, however, I am setting a picture and then displaying captions using pause and the whole process is now hid till the final caption is displayed so it can't work for my situtation.
JaredM
I will look into the buffering thing.
...I am not having a problem with flickering once the picture is set, it is when the picture is loading .. it flashes then loads the picture and I would really like to get rid of the flash.
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Nov 28th, 2001, 10:22 AM
#6
Hyperactive Member
-
Nov 28th, 2001, 11:03 AM
#7
Addicted Member
Image Box
Try using a picture box instead of an Image box. They are supposed to flicker much less.
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
|