BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TImage in bcb6 & bcb5

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Graphics)
View previous topic :: View next topic  
Author Message
Yaara
Guest





PostPosted: Thu Jul 10, 2003 11:33 am    Post subject: TImage in bcb6 & bcb5 Reply with 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.
I prefer to work in bcb6, Can you explain me the reason for the problem?
thank's.
Back to top
Junk Mail
Guest





PostPosted: Thu Jul 10, 2003 11:22 pm    Post subject: Re: TImage in bcb6 & bcb5 Reply with quote



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





PostPosted: Wed Jul 16, 2003 5:17 am    Post subject: Re: TImage in bcb6 & bcb5 Reply with quote



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





PostPosted: Wed Jul 16, 2003 1:09 pm    Post subject: Re: TImage in bcb6 & bcb5 Reply with quote

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





PostPosted: Wed Jul 16, 2003 4:52 pm    Post subject: Re: TImage in bcb6 & bcb5 Reply with quote


"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 Smile




Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Graphics) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.