Solved

I clear canvas, and Bevels dissapear.

Posted on 1998-10-26
7
403 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
7 Comments
 
LVL 10

Expert Comment

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

Cheers,
Viktor
0
 
LVL 3

Author Comment

by:bryan7
ID: 1344436
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
ID: 1344437
Use "Invalidate"!

/// John
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 3

Author Comment

by:bryan7
ID: 1344438
where ?

0
 
LVL 4

Expert Comment

by:erajoj
ID: 1344439
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
ID: 1344440
Yep, it works,

The points are yours.

bryan

0
 
LVL 4

Accepted Solution

by:
erajoj earned 20 total points
ID: 1344441
Thanks!

/// John
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

756 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