Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

I clear canvas, and Bevels dissapear.

Posted on 1998-10-26
7
Medium Priority
?
406 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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 80 total points
ID: 1344441
Thanks!

/// John
0

Featured Post

Industry Leaders: 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!

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

715 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