DELPHI AREA
MESSAGE BOARD
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   FavoritesFavorites   Watched TopicsWatched Topics     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Form Transparent

 
Post new topic   Reply to topic   printer-friendly view    DELPHI AREA Forum Index -> Delphi Programming
View previous topic :: View next topic  
Author Message
Sina
Member


Joined: 29 Aug 2005
Posts: 22
Location: Shiraz - Iran

PostPosted: 27/06/06 08:45    Post subject: Form Transparent Reply with quote

HI
I have a problem :
when I enable form color transparent or alpha blend then at run time when i drag the form the dragging speed is low how can I prevent it?
any idea?
best regards
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Johnny_Bit
Moderator


Joined: 15 Jun 2003
Posts: 230

PostPosted: 27/06/06 12:41    Post subject: Reply with quote

get ussed to it. really, there's no other way... maybe you should check you hardware rather than software
Back to top
View user's profile Send private message Visit poster's website
kokkoras
Senior Member


Joined: 12 Mar 2005
Posts: 202
Location: Thessaloniki, Greece

PostPosted: 27/06/06 23:53    Post subject: Reply with quote

It's mainly a matter of how powerfull is your VGA card.
_________________
Fotis
Back to top
View user's profile Send private message Visit poster's website
Sina
Member


Joined: 29 Aug 2005
Posts: 22
Location: Shiraz - Iran

PostPosted: 30/06/06 05:41    Post subject: Maybe! Reply with quote

well I've got a 128mb ATI VGA card and I don't think it is weak!
but there's something else is there any api doing transparency?
because I saw other programs using transparency with normal speed !
Wink
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
kokkoras
Senior Member


Joined: 12 Mar 2005
Posts: 202
Location: Thessaloniki, Greece

PostPosted: 30/06/06 07:28    Post subject: Reply with quote

DirectX and/or OpenGL comes in mind. Sorry, can't help nore.
_________________
Fotis
Back to top
View user's profile Send private message Visit poster's website
Johnny_Bit
Moderator


Joined: 15 Jun 2003
Posts: 230

PostPosted: 30/06/06 09:13    Post subject: Reply with quote

atually, there is. alphablend is pretty normal for windows, but to make special points invisible, you have to use some sick windows api, also remember that sometimes making things in pure winapi saves you many moments of "argh, this is so slow", so check msdn and have happy progamming
Back to top
View user's profile Send private message Visit poster's website
kokkoras
Senior Member


Joined: 12 Mar 2005
Posts: 202
Location: Thessaloniki, Greece

PostPosted: 30/06/06 13:32    Post subject: Reply with quote

Transparency exists since Win2K. I remember making transparent the windows of some nice tool apps (like the legendary Total Commander) by using some hacks but moving the transparent window around was like a slide show that time. It was quite acceptable though in an nVidia Ti4200 (that I still use BTW).
_________________
Fotis
Back to top
View user's profile Send private message Visit poster's website
Kambiz
Administrator


Joined: 07 Mar 2003
Posts: 958
Location: Tehran, Iran

PostPosted: 30/06/06 16:01    Post subject: Reply with quote

Which level of transparency you need?

If you don't need semi-transparency, you should use Windows regions to improve speed.

By the way, in opposite of alpha belending, all 32 bit version of Windows support regions.

_________________
Kambiz
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Sina
Member


Joined: 29 Aug 2005
Posts: 22
Location: Shiraz - Iran

PostPosted: 01/07/06 08:09    Post subject: ? Reply with quote

Mr.Kambiz I need to hide one part of my form to make it more stylish I think it means full transparensy level
But I don't want to use win regions because my form doesn't want a simple shape
thanks
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
kokkoras
Senior Member


Joined: 12 Mar 2005
Posts: 202
Location: Thessaloniki, Greece

PostPosted: 01/07/06 12:54    Post subject: Reply with quote

By the way, I had alpha blending in mind.
_________________
Fotis
Back to top
View user's profile Send private message Visit poster's website
Kambiz
Administrator


Joined: 07 Mar 2003
Posts: 958
Location: Tehran, Iran

PostPosted: 01/07/06 18:02    Post subject: Re: ? Reply with quote

Sina wrote:
Mr.Kambiz I need to hide one part of my form to make it more stylish I think it means full transparensy level
But I don't want to use win regions because my form doesn't want a simple shape
thanks


A region can be any complex shape. For example, look at the Office Assistant package, trancparency of each frame is achieved by applying a region. The oaBitmap unit of the package has some routines for creating a region from a bitmap.

_________________
Kambiz
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Kambiz
Administrator


Joined: 07 Mar 2003
Posts: 958
Location: Tehran, Iran

PostPosted: 01/07/06 18:15    Post subject: Reply with quote

Here is a sample: Wink


sample.jpg
 Description:
Using region for transparency
 Filesize:  208.85 KB
 Viewed:  199 Time(s)





_________________
Kambiz
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Sina
Member


Joined: 29 Aug 2005
Posts: 22
Location: Shiraz - Iran

PostPosted: 02/07/06 09:17    Post subject: Thanks Reply with quote

Thank you I'll try it
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Sina
Member


Joined: 29 Aug 2005
Posts: 22
Location: Shiraz - Iran

PostPosted: 09/07/06 07:56    Post subject: Reply with quote

Mr.Kambiz would you plz release the sample program code {one in your previous post picture}
?
//////////////
Thanx
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    DELPHI AREA Forum Index -> Delphi Programming All times are GMT
Page 1 of 1

Add to favorites

 
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
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group