Solved

Color Picker-Flicker

Posted on 2002-05-12
4
281 Views
Last Modified: 2010-05-18
I have 2 controls:

- TrackBar
- TImage

I'm using TImage Canvas and fill it with some colour.
As I move trackbar, the colour should change, let's say the Red changes as the trackbar changes.

The problem is that the image flickers badly. How can I fix it, or, is there another way of doing it?

Graga
0
Comment
Question by:graga
  • 2
  • 2
4 Comments
 
LVL 33

Accepted Solution

by:
Slick812 earned 100 total points
ID: 7005236
why are you using a TImage? You don't use an Image (Bitmap). Try using a TShape, and change the color of it's brush or use a TPaintBox and change the color of it's canvas (with Rectangle or fillRect). TImage has alot of flickering problems, if you draw on it's canvas. TPaintbox is better to use if u draw on the canvas,, but TShape is good for a solid color.
0
 

Author Comment

by:graga
ID: 7005271
I have changed the component to TPainBox. I'm drawing the shape using LineTo and then fill it using FloodFill (I need to have 2 shapes of different colors.
Flickering is the same as with TImage.
0
 
LVL 33

Expert Comment

by:Slick812
ID: 7005277
can you show the code you use? ?
0
 

Author Comment

by:graga
ID: 7005281
Actually, solved it. When I draw the border once only and then just fill it, there is no flickering.
Thanx
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

762 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

20 Experts available now in Live!

Get 1:1 Help Now