bryan7
asked on
I clear canvas, and Bevels dissapear.
Hi,
I have 4 Bevels aking a square, and a jpeg image 'inside'.
Then I use stretchdraw to resize the image to 'toggle'
to full screen. At full screen, the Bevels can't be seen,
( and it's alright ), but when I toggle to the old size, the
old big image is not deleted, and the edges still have a bit of the image.
Then I use Canvas.FloodFill(0, 0, 1,fsBorder);
which is very slow, and after the screen is cleared,
the Bevels have disspeared.
They don't appear even if I do Bevel1.Visible.= True;
bryan
I have 4 Bevels aking a square, and a jpeg image 'inside'.
Then I use stretchdraw to resize the image to 'toggle'
to full screen. At full screen, the Bevels can't be seen,
( and it's alright ), but when I toggle to the old size, the
old big image is not deleted, and the edges still have a bit of the image.
Then I use Canvas.FloodFill(0, 0, 1,fsBorder);
which is very slow, and after the screen is cleared,
the Bevels have disspeared.
They don't appear even if I do Bevel1.Visible.= True;
bryan
ASKER
It doesn't work. The bevels keep invisible.
I found a way that works: before and after toggle, make Form1.Visible:= False, View the
jpg, then Form1.Visible:= True, and the same with the bevels.
If you find any better way, here I am.
thanx, bryan
I found a way that works: before and after toggle, make Form1.Visible:= False, View the
jpg, then Form1.Visible:= True, and the same with the bevels.
If you find any better way, here I am.
thanx, bryan
Use "Invalidate"!
/// John
/// John
ASKER
where ?
Did you look for "Invalidate" in the help file? No, I guess you didn't. ;-)
Just replace your "Canvas.FloodFill(0, 0, 1,fsBorder);" with "Invalidate".
/// John
Just replace your "Canvas.FloodFill(0, 0, 1,fsBorder);" with "Invalidate".
/// John
ASKER
Yep, it works,
The points are yours.
bryan
The points are yours.
bryan
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Cheers,
Viktor