Link to home
Start Free TrialLog in
Avatar of graga
graga

asked on

Color Picker-Flicker

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
ASKER CERTIFIED SOLUTION
Avatar of Member_2_248744
Member_2_248744
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of graga
graga

ASKER

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.
can you show the code you use? ?
Avatar of graga

ASKER

Actually, solved it. When I draw the border once only and then just fill it, there is no flickering.
Thanx