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 

Transparent ClientArea of Form.

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics
View previous topic :: View next topic  
Author Message
Kim Pedersen
Guest





PostPosted: Thu May 05, 2005 2:44 pm    Post subject: Transparent ClientArea of Form. Reply with quote



Hi


I need to make only the clientArea of a form more or less transparent.

I did Google this links

//works nice but only for whole form (incl Caption and frame)
http://www.delphipages.com/news/detaildocs.cfm?ID=63

//this do not make component placed on form transparent
//and the transparent is on/off only.
//It also when clicking in the clientarea taking focus on the form below ,like the client
//area is not a part of form.
http://www.swissdelphicenter.ch/torry/showcode.php?id=982

Any Suggestions.

TIA
Kim Pedersen
Back to top
Don Taylor
Guest





PostPosted: Wed May 11, 2005 9:33 am    Post subject: Re: Transparent ClientArea of Form. Reply with quote



Hi Kim,

See what Peter Below says in other messages in this group, about
transparency within forms. Windows doesn't really support it - you can have
a transparent parent form, but not a tranparent control within a form.

Note that the TranparentColor property makes the mouse click through to the
form underneath whenever it's over a pixel of TransparentColorValue, but the
AlphaBlend property does not - it controls the translucency of the whole
form with the AlphaBlendValue property (0 = completely transparent, 255 =
opaque).

Regards,

Don Taylor.


"Kim Pedersen" <kim (AT) elprint (DOT) com> wrote

Quote:
Hi


I need to make only the clientArea of a form more or less transparent.

I did Google this links

//works nice but only for whole form (incl Caption and frame)
http://www.delphipages.com/news/detaildocs.cfm?ID=63

//this do not make component placed on form transparent
//and the transparent is on/off only.
//It also when clicking in the clientarea taking focus on the form below
,like the client //area is not a part of form.
http://www.swissdelphicenter.ch/torry/showcode.php?id=982

Any Suggestions.

TIA
Kim Pedersen



Back to top
Kim Pedersen
Guest





PostPosted: Wed May 11, 2005 4:21 pm    Post subject: Re: Transparent ClientArea of Form. Reply with quote



Hi Don - Thanks for your answer .

I better refrase my question ,,, ->

I have an completly empty form (sounds stupid) , with buttons in caption.
I would like to AlphaBlend the client Area , but not the frame and caption of the form.

Regards
Kim



Don Taylor wrote:
Quote:
Hi Kim,

See what Peter Below says in other messages in this group, about
transparency within forms. Windows doesn't really support it - you can have
a transparent parent form, but not a tranparent control within a form.

Note that the TranparentColor property makes the mouse click through to the
form underneath whenever it's over a pixel of TransparentColorValue, but the
AlphaBlend property does not - it controls the translucency of the whole
form with the AlphaBlendValue property (0 = completely transparent, 255 =
opaque).

Regards,

Don Taylor.


"Kim Pedersen" <kim (AT) elprint (DOT) com> wrote in message
news:427a314c$1 (AT) newsgroups (DOT) borland.com...

Hi


I need to make only the clientArea of a form more or less transparent.

I did Google this links

//works nice but only for whole form (incl Caption and frame)
http://www.delphipages.com/news/detaildocs.cfm?ID=63

//this do not make component placed on form transparent
//and the transparent is on/off only.
//It also when clicking in the clientarea taking focus on the form below
,like the client //area is not a part of form.
http://www.swissdelphicenter.ch/torry/showcode.php?id=982

Any Suggestions.

TIA
Kim Pedersen




Back to top
Kim Pedersen
Guest





PostPosted: Wed May 11, 2005 4:30 pm    Post subject: Re: Transparent ClientArea of Form. Reply with quote

Hi Don - Thanks for your reply .

I better refrase my question ,,, ->

I have an completly empty form (sounds stupid) , with buttons in caption.
I would like to AlphaBlend the client Area with the area under the form , but not the
frame and caption of the form.

The Purpose is that when I move the form around on the screen I can inside(clientarea) can
see the underlying background of the screen in a alpha blend. For a kind of capturing the
area.

I know I can capture the area under the form for each onformMove and then alpha blend it
and show the result in image comp. ,, But I would like to avoid that.

Regards
Kim


Don Taylor wrote:
Quote:
Hi Kim,

See what Peter Below says in other messages in this group, about
transparency within forms. Windows doesn't really support it - you can have
a transparent parent form, but not a tranparent control within a form.

Note that the TranparentColor property makes the mouse click through to the
form underneath whenever it's over a pixel of TransparentColorValue, but the
AlphaBlend property does not - it controls the translucency of the whole
form with the AlphaBlendValue property (0 = completely transparent, 255 =
opaque).

Regards,

Don Taylor.


"Kim Pedersen" <kim (AT) elprint (DOT) com> wrote in message
news:427a314c$1 (AT) newsgroups (DOT) borland.com...

Hi


I need to make only the clientArea of a form more or less transparent.

I did Google this links

//works nice but only for whole form (incl Caption and frame)
http://www.delphipages.com/news/detaildocs.cfm?ID=63

//this do not make component placed on form transparent
//and the transparent is on/off only.
//It also when clicking in the clientarea taking focus on the form below
,like the client //area is not a part of form.
http://www.swissdelphicenter.ch/torry/showcode.php?id=982

Any Suggestions.

TIA
Kim Pedersen




Back to top
Peter Below (TeamB)
Guest





PostPosted: Wed May 11, 2005 6:00 pm    Post subject: Re: Transparent ClientArea of Form. Reply with quote

In article <42823328$1 (AT) newsgroups (DOT) borland.com>, Kim Pedersen wrote:
Quote:
I have an completly empty form (sounds stupid) , with buttons in caption.
I would like to AlphaBlend the client Area with the area under the form , but not the
frame and caption of the form.

Hm, what you could do is construct a region including the caption bar and the border
and use that as window region (see setWindowRgn). This would basically eliminate the
whole client area. But that gives 100% transparency in effect, not a shading like you
could achieve it with alphablending.


--
Peter Below (TeamB)
Use the newsgroup archives :
http://www.mers.com/searchsite.html
http://www.tamaracka.com/search.htm
http://groups.google.com
http://www.prolix.be



Back to top
Kim Pedersen
Guest





PostPosted: Wed May 11, 2005 10:25 pm    Post subject: Re: Transparent ClientArea of Form. Reply with quote

Hi Peter , thanks

Quote:
But that gives 100% transparency in effect
that could be accepted .



Is that what they do in this link .
http://www.swissdelphicenter.ch/torry/showcode.php?id=982

The problem here is that if the user click in the clientarea , the
focus goto the form in the area below the client area (like my form is not existing).

can that be avoided ??


Best Regards
Kim Pedersen




Peter Below (TeamB) wrote:
Quote:
In article <42823328$1 (AT) newsgroups (DOT) borland.com>, Kim Pedersen wrote:

I have an completly empty form (sounds stupid) , with buttons in caption.
I would like to AlphaBlend the client Area with the area under the form , but not the
frame and caption of the form.


Hm, what you could do is construct a region including the caption bar and the border
and use that as window region (see setWindowRgn). This would basically eliminate the
whole client area. But that gives 100% transparency in effect, not a shading like you
could achieve it with alphablending.


--
Peter Below (TeamB)
Use the newsgroup archives :
http://www.mers.com/searchsite.html
http://www.tamaracka.com/search.htm
http://groups.google.com
http://www.prolix.be



Back to top
Charles Adriano - Brazil
Guest





PostPosted: Thu May 12, 2005 12:50 am    Post subject: Re: Transparent ClientArea of Form. Reply with quote

hi kin

see the components JvTransparentForm unde component palete JvApplication,
forms

http://homepages.borland.com/jedi/jvcl/

charles


Back to top
Peter Below (TeamB)
Guest





PostPosted: Thu May 12, 2005 6:29 pm    Post subject: Re: Transparent ClientArea of Form. Reply with quote

In article <42828642$1 (AT) newsgroups (DOT) borland.com>, Kim Pedersen wrote:
Quote:
Is that what they do in this link .
http://www.swissdelphicenter.ch/torry/showcode.php?id=982

Don't know. I'm using an off-line reader with dial-up to read the groups, so it's a bit of
a hassle to follow such links.

Quote:
The problem here is that if the user click in the clientarea , the
focus goto the form in the area below the client area (like my form is not existing).

can that be avoided ??

No, not with this approach. Anything outside the window region is simply not part of the
window. However, you can confine the mouse to a specific area, e.g your forms caption.
See the ClipCursor API function.

Perhaps another approach may also suite your needs. Search the newsgroup archives for
TPBCaptureForm.

--
Peter Below (TeamB)
Use the newsgroup archives :
http://www.mers.com/searchsite.html
http://www.tamaracka.com/search.htm
http://groups.google.com
http://www.prolix.be



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