Solved

I clear canvas, and Bevels dissapear.

Posted on 1998-10-26
7
400 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
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
ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

 
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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Run video youtube webbrowse 10 62
How to debug For loops? 3 50
Need Help Delphi 2010 CheckBox1 Stored value in memo 13 67
How to load 2 images in same column in Delphi 2 47
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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

832 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