| View previous topic :: View next topic |
| Author |
Message |
Yaara Guest
|
Posted: Thu Jul 10, 2003 11:33 am Post subject: TImage in bcb6 & bcb5 |
|
|
Hello everybody.
I'm trying to draw a line on a TImage component when mouse move event occures. While I'm moving the mouse the image flashing all the time in bcb6. But in bcb5 it's ok.
I prefer to work in bcb6, Can you explain me the reason for the problem?
thank's.
|
|
| Back to top |
|
 |
Junk Mail Guest
|
Posted: Thu Jul 10, 2003 11:22 pm Post subject: Re: TImage in bcb6 & bcb5 |
|
|
Try putting this code int the constructor of your form that contains the
image.
DoubleBuffered = true;
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system ([url]http://www.grisoft.com)[/url].
Version: 6.0.493 / Virus Database: 292 - Release Date: 6/26/2003
|
|
| Back to top |
|
 |
Maxim Guest
|
Posted: Wed Jul 16, 2003 5:17 am Post subject: Re: TImage in bcb6 & bcb5 |
|
|
For solve this problem make the following things:
Form1->ControlStyle<
if your TImage component set on PageControl or other components make the
same things for it.
"Yaara"
| Quote: |
Hello everybody.
I'm trying to draw a line on a TImage component when mouse move event
occures. While I'm moving the mouse the image flashing all the time in bcb6. |
But in bcb5 it's ok.
| Quote: | I prefer to work in bcb6, Can you explain me the reason for the problem?
thank's.
|
|
|
| Back to top |
|
 |
Jonathan Arnold Guest
|
Posted: Wed Jul 16, 2003 1:09 pm Post subject: Re: TImage in bcb6 & bcb5 |
|
|
| Quote: | | Form1->ControlStyle<
|
This may not work. Form1->ControlStyle is a Set. This requires
some special handling to get it to work:
Form1->ControlStyle = TControlStyle() << csOpaque;
1) It requires the Set operation '<<' to set something
2) Because it is a property, you have to use the = sign, as doing it
directly on the property will set the style in a temp variable, so
this doesn't always work:
Form1->ControlStyle<
although it may look like it should.
--
Jonathan Arnold C/C++/CBuilder Keen Advice:
http://www.keen.com/categories/categorylist_expand.asp?sid=5156620
Comprehensive C++Builder link site:
http://www.buddydog.org/C++Builder/c++builder.html
|
|
| Back to top |
|
 |
Maxim Guest
|
Posted: Wed Jul 16, 2003 4:52 pm Post subject: Re: TImage in bcb6 & bcb5 |
|
|
"Jonathan Arnold" <jdarnold (AT) buddydog (DOT) org> wrote
| Quote: | Form1->ControlStyle<
This may not work. Form1->ControlStyle is a Set. This requires
some special handling to get it to work:
It works I chek it  |
|
|
| Back to top |
|
 |
|