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 

How to give the selection effect for a component in runtime

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Writing
View previous topic :: View next topic  
Author Message
Sai
Guest





PostPosted: Thu Oct 09, 2003 6:36 am    Post subject: How to give the selection effect for a component in runtime Reply with quote



Hi,

How can I give the same selection effect for a component in run time as we
get it in design time.
I mean the small black rects at the corners. I managed to get it by using
the fillrect on both the parent canvas and also on the component canvas but
still the effect is not exactly the same . so what is the proper way.

Thanks in advance
Sai


Back to top
Ignacio Vazquez
Guest





PostPosted: Thu Oct 09, 2003 8:11 pm    Post subject: Re: How to give the selection effect for a component in run Reply with quote



"Sai" <p_g_s_k (AT) yahoo (DOT) co.in> wrote in message
[email]3f8501df (AT) newsgroups (DOT) borland.com[/email]...
Quote:
How can I give the same selection effect for a component in run time as we
get it in design time.
I mean the small black rects at the corners. I managed to get it by using
the fillrect on both the parent canvas and also on the component canvas
but still the effect is not exactly the same . so what is the proper way.

What effect are you looking for? Just a visual effect, or do you want the
cursor changes as well?

Cheers,
Ignacio

--
No, don't send me e-mail directly. No, just don't.



Back to top
Sai
Guest





PostPosted: Fri Oct 10, 2003 4:55 am    Post subject: Re: How to give the selection effect for a component in run Reply with quote



Initially the visual effect only. I think the cursor effect I can implement
on mouse move...
Thanks
Sai

"Ignacio Vazquez" <ivazquezATorioncommunications.com> wrote

Quote:
"Sai" <p_g_s_k (AT) yahoo (DOT) co.in> wrote in message
[email]3f8501df (AT) newsgroups (DOT) borland.com[/email]...
How can I give the same selection effect for a component in run time as
we
get it in design time.
I mean the small black rects at the corners. I managed to get it by
using
the fillrect on both the parent canvas and also on the component canvas
but still the effect is not exactly the same . so what is the proper
way.

What effect are you looking for? Just a visual effect, or do you want the
cursor changes as well?

Cheers,
Ignacio

--
No, don't send me e-mail directly. No, just don't.





Back to top
Asko Telinen
Guest





PostPosted: Wed Oct 22, 2003 11:24 am    Post subject: Re: How to give the selection effect for a component in run Reply with quote

Look at DrawFocusrect method (Canvas or API)....

--

-------------------------------------------

Asko Telinen

department of information technology
Jyväskylä University

[email]asko.telinen (AT) kanetti (DOT) com[/email]

-------------------------------------------

"Sai" <p_g_s_k (AT) yahoo (DOT) co.in> wrote

Quote:
Initially the visual effect only. I think the cursor effect I can
implement
on mouse move...
Thanks
Sai

"Ignacio Vazquez" <ivazquezATorioncommunications.com> wrote in message
news:3f85c0f7 (AT) newsgroups (DOT) borland.com...
"Sai" <p_g_s_k (AT) yahoo (DOT) co.in> wrote in message
[email]3f8501df (AT) newsgroups (DOT) borland.com[/email]...
How can I give the same selection effect for a component in run time
as
we
get it in design time.
I mean the small black rects at the corners. I managed to get it by
using
the fillrect on both the parent canvas and also on the component
canvas
but still the effect is not exactly the same . so what is the proper
way.

What effect are you looking for? Just a visual effect, or do you want
the
cursor changes as well?

Cheers,
Ignacio

--
No, don't send me e-mail directly. No, just don't.







Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Writing 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.