| View previous topic :: View next topic |
| Author |
Message |
Sina Member
Joined: 29 Aug 2005 Posts: 22 Location: Shiraz - Iran
|
Posted: 27/06/06 08:45 Post subject: Form Transparent |
|
|
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 |
|
 |
Johnny_Bit Moderator
Joined: 15 Jun 2003 Posts: 230
|
Posted: 27/06/06 12:41 Post subject: |
|
|
| get ussed to it. really, there's no other way... maybe you should check you hardware rather than software
|
|
| Back to top |
|
 |
kokkoras Senior Member

Joined: 12 Mar 2005 Posts: 202 Location: Thessaloniki, Greece
|
Posted: 27/06/06 23:53 Post subject: |
|
|
It's mainly a matter of how powerfull is your VGA card.
_________________ Fotis |
|
| Back to top |
|
 |
Sina Member
Joined: 29 Aug 2005 Posts: 22 Location: Shiraz - Iran
|
Posted: 30/06/06 05:41 Post subject: Maybe! |
|
|
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 !
|
|
| Back to top |
|
 |
kokkoras Senior Member

Joined: 12 Mar 2005 Posts: 202 Location: Thessaloniki, Greece
|
Posted: 30/06/06 07:28 Post subject: |
|
|
DirectX and/or OpenGL comes in mind. Sorry, can't help nore.
_________________ Fotis |
|
| Back to top |
|
 |
Johnny_Bit Moderator
Joined: 15 Jun 2003 Posts: 230
|
Posted: 30/06/06 09:13 Post subject: |
|
|
| 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 |
|
 |
kokkoras Senior Member

Joined: 12 Mar 2005 Posts: 202 Location: Thessaloniki, Greece
|
Posted: 30/06/06 13:32 Post subject: |
|
|
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 |
|
 |
Kambiz Administrator

Joined: 07 Mar 2003 Posts: 958 Location: Tehran, Iran
|
Posted: 30/06/06 16:01 Post subject: |
|
|
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 |
|
 |
Sina Member
Joined: 29 Aug 2005 Posts: 22 Location: Shiraz - Iran
|
Posted: 01/07/06 08:09 Post subject: ? |
|
|
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 |
|
 |
kokkoras Senior Member

Joined: 12 Mar 2005 Posts: 202 Location: Thessaloniki, Greece
|
Posted: 01/07/06 12:54 Post subject: |
|
|
By the way, I had alpha blending in mind.
_________________ Fotis |
|
| Back to top |
|
 |
Kambiz Administrator

Joined: 07 Mar 2003 Posts: 958 Location: Tehran, Iran
|
Posted: 01/07/06 18:02 Post subject: Re: ? |
|
|
| 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 |
|
 |
Kambiz Administrator

Joined: 07 Mar 2003 Posts: 958 Location: Tehran, Iran
|
Posted: 01/07/06 18:15 Post subject: |
|
|
Here is a sample:
| Description: |
| Using region for transparency |
|
| Filesize: |
208.85 KB |
| Viewed: |
199 Time(s) |
|
_________________ Kambiz |
|
| Back to top |
|
 |
Sina Member
Joined: 29 Aug 2005 Posts: 22 Location: Shiraz - Iran
|
Posted: 02/07/06 09:17 Post subject: Thanks |
|
|
| Thank you I'll try it
|
|
| Back to top |
|
 |
Sina Member
Joined: 29 Aug 2005 Posts: 22 Location: Shiraz - Iran
|
Posted: 09/07/06 07:56 Post subject: |
|
|
Mr.Kambiz would you plz release the sample program code {one in your previous post picture}
?
//////////////
Thanx
|
|
| Back to top |
|
 |
|