Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 412
  • Last Modified:

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

0
bryan7
Asked:
bryan7
  • 3
  • 3
1 Solution
 
viktornetCommented:
Why don't you use Canvas.FillRect(Rect);

Cheers,
Viktor
0
 
bryan7Author Commented:
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


0
 
erajojCommented:
Use "Invalidate"!

/// John
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
bryan7Author Commented:
where ?

0
 
erajojCommented:
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

0
 
bryan7Author Commented:
Yep, it works,

The points are yours.

bryan

0
 
erajojCommented:
Thanks!

/// John
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now