Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Partial transparency help

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Trow
Grandmaster Cheater
Reputation: 2

Joined: 17 Aug 2006
Posts: 957

PostPosted: Sun Sep 16, 2007 5:38 am    Post subject: Partial transparency help Reply with quote

Does anyone have the code in any language which makes a control (or a form, same thing) have different transparency values on different places of the control with a single hwnd?

the screenshot is edited to demonstrate the effect



transparent.png
 Description:
demo image
 Filesize:  434.44 KB
 Viewed:  6534 Time(s)

transparent.png



_________________
Get kidnapped often.
Back to top
View user's profile Send private message
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Sun Sep 16, 2007 6:51 am    Post subject: Reply with quote

its looks to me like you could make a hdc for that section and then it would be on the same hwnd?

If your familiar with BitBlt you should know about dcs

_________________
Back to top
View user's profile Send private message
zart
Master Cheater
Reputation: 0

Joined: 20 Aug 2007
Posts: 351
Location: russia

PostPosted: Sun Sep 16, 2007 8:10 am    Post subject: Reply with quote

http://www.geekpedia.com/tutorial105_Transparent-forms-(form-opacity).html

damn google owns

_________________
0x7A 0x61 0x72 0x74

TEAM RESURRECTiON
Back to top
View user's profile Send private message
Trow
Grandmaster Cheater
Reputation: 2

Joined: 17 Aug 2006
Posts: 957

PostPosted: Sun Sep 16, 2007 8:27 am    Post subject: Reply with quote

Re blankrider: reasonable suggestion Very Happy I've never thought of GDI before. will look into it

Re zart: SetLayeredWindowAttributes, .Opacity and .TransparencyKey in .NET either:

    - cannot make only some portions of the form transparent, or
    - cannot make the selected portion transparent to some values, e.g. 50% or 127.


but the TransparencyKey is really tempting ><

_________________
Get kidnapped often.
Back to top
View user's profile Send private message
zart
Master Cheater
Reputation: 0

Joined: 20 Aug 2007
Posts: 351
Location: russia

PostPosted: Sun Sep 16, 2007 9:05 am    Post subject: Reply with quote

blland wrote:


Re zart: SetLayeredWindowAttributes, .Opacity and .TransparencyKey in .NET either:

    - cannot make only some portions of the form transparent, or
    - cannot make the selected portion transparent to some values, e.g. 50% or 127.



You asked for it in any language, not for .NET - if you need something for a specific language - you should say that.

_________________
0x7A 0x61 0x72 0x74

TEAM RESURRECTiON
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Sun Sep 16, 2007 10:32 am    Post subject: Reply with quote

You can use:
- SetWindowLong
- GetWindowLong
- SetLayeredWindowAttributes

Which should work in any language.
Back to top
View user's profile Send private message Visit poster's website
Programmer
Cheater
Reputation: 0

Joined: 02 Sep 2007
Posts: 48

PostPosted: Sun Sep 16, 2007 11:35 am    Post subject: Reply with quote

http://noz3001.wordpress.com/2007/03/05/getting-alphablend-working/
_________________
Back to top
View user's profile Send private message
Trow
Grandmaster Cheater
Reputation: 2

Joined: 17 Aug 2006
Posts: 957

PostPosted: Sun Sep 16, 2007 3:58 pm    Post subject: Reply with quote

zart wrote:
blland wrote:


Re zart: SetLayeredWindowAttributes, .Opacity and .TransparencyKey in .NET either:

    - cannot make only some portions of the form transparent, or
    - cannot make the selected portion transparent to some values, e.g. 50% or 127.



You asked for it in any language, not for .NET - if you need something for a specific language - you should say that.


but none of those options work for any of the languages even in any language (lol this sounds funny, but it should make sense) thanks anyway. Cool

_________________
Get kidnapped often.
Back to top
View user's profile Send private message
assaf84
Expert Cheater
Reputation: 0

Joined: 03 Oct 2006
Posts: 238

PostPosted: Mon Sep 17, 2007 8:39 am    Post subject: Reply with quote

There is a part in Noz3001's blog that gives an example.
Back to top
View user's profile Send private message
zart
Master Cheater
Reputation: 0

Joined: 20 Aug 2007
Posts: 351
Location: russia

PostPosted: Mon Sep 17, 2007 8:47 am    Post subject: Reply with quote

blland wrote:
zart wrote:
blland wrote:


Re zart: SetLayeredWindowAttributes, .Opacity and .TransparencyKey in .NET either:

    - cannot make only some portions of the form transparent, or
    - cannot make the selected portion transparent to some values, e.g. 50% or 127.



You asked for it in any language, not for .NET - if you need something for a specific language - you should say that.


but none of those options work for any of the languages even in any language (lol this sounds funny, but it should make sense) thanks anyway. Cool


Works fine in C# - which is what the example was made for Wink

_________________
0x7A 0x61 0x72 0x74

TEAM RESURRECTiON
Back to top
View user's profile Send private message
Trow
Grandmaster Cheater
Reputation: 2

Joined: 17 Aug 2006
Posts: 957

PostPosted: Mon Sep 17, 2007 8:48 am    Post subject: Reply with quote

http://noz3001.wordpress.com/2007/03/05/getting-alphablend-working/

this?
if you mean this, then it uses SetLayeredWindowAttributes as well, just in capital letters (unless i'm wrong about this one)

_________________
Get kidnapped often.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
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
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites