Solved

I clear canvas, and Bevels dissapear.

Posted on 1998-10-26
7
399 Views
Last Modified: 2010-08-05
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
Comment
Question by:bryan7
  • 3
  • 3
7 Comments
 
LVL 10

Expert Comment

by:viktornet
Comment Utility
Why don't you use Canvas.FillRect(Rect);

Cheers,
Viktor
0
 
LVL 3

Author Comment

by:bryan7
Comment Utility
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
 
LVL 4

Expert Comment

by:erajoj
Comment Utility
Use "Invalidate"!

/// John
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 3

Author Comment

by:bryan7
Comment Utility
where ?

0
 
LVL 4

Expert Comment

by:erajoj
Comment Utility
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
 
LVL 3

Author Comment

by:bryan7
Comment Utility
Yep, it works,

The points are yours.

bryan

0
 
LVL 4

Accepted Solution

by:
erajoj earned 20 total points
Comment Utility
Thanks!

/// John
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now