flat assembler
Message board for the users of flat assembler.

Index > Windows > Sprite creation & Win transparency in windows

Author
Thread Post new topic Reply to topic
Crukko



Joined: 26 Nov 2005
Posts: 118
Crukko 04 May 2007, 14:22
Hi @LL

1. I would be able to create a sprite in windows and use it in a window, but I can't find a very simple example (also in fasm forum Sad )
Does anyone can help me?

2. I would able to create a simple window (with WS_POPUP) with a bitmap and using a color as transparent one, so I can see all other object in back of the created window....but I can't found a very simple example...

Thx!
Post 04 May 2007, 14:22
View user's profile Send private message Reply with quote
HexEdit



Joined: 31 Jul 2006
Posts: 6
Location: Russia
HexEdit 05 May 2007, 18:30
Look at MSDN - WS_EX_LAYERED and SetLayeredWindowAttributes
Post 05 May 2007, 18:30
View user's profile Send private message ICQ Number Reply with quote
kohlrak



Joined: 21 Jul 2006
Posts: 1421
Location: Uncle Sam's Pad
kohlrak 08 May 2007, 23:19
In iczelion's site (i think it's his site), the software page seems to have a whole bunch of examples of things in masm, even a few things like what i think you're asking for. Plus, i *think* that it's what they used for neko98 (old program that seems to have been long since forgotten).

The software page.

I seem to like the raindrop example, but that's on another page of that site.
Post 08 May 2007, 23:19
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger Reply with quote
Crukko



Joined: 26 Nov 2005
Posts: 118
Crukko 14 May 2007, 13:49
@kohlrak: Thx! I lost IcZ site...good URL Wink
but i was looking for fasm source (IcZ conversion...?) of examples Sad
Post 14 May 2007, 13:49
View user's profile Send private message Reply with quote
kohlrak



Joined: 21 Jul 2006
Posts: 1421
Location: Uncle Sam's Pad
kohlrak 15 May 2007, 05:43
Well, i'm going to get around to doing it eventually. I already have a WS_EX_LAYERED example making fun of final fantasy 1, but all it does is make the window transparent, and there's an example of that in the examples section, but if you still want i'll upload that until i get around to sprites, because, interestingly enough, i think there is two ways of doing it... There's something about a "bit mask" i keep hearing about, but it appears that's only for transparency. So, don't expect anything till sunday, and don't expect much even then. lol I'll try my best to get something in for you.

As for conversions, SleepSleep had some tutorials but they were never finished as far as i could see. I'm going through alot of Icz's tuts and making my own examples based on Icz's masm code, but certain tutorials are skipped, but i may go back to them. Though, i've gone dialog box happy... But, considering the first few tutorials are based on having a window over a dialog box, then people should be able to figure out the conversion, but i think i'm gonna have to use a window for the splash screen example, which is what i think will probably give me the stuff i need to use in conjunction with WS_EX_LAYERED.

And last but not least, people who want to use WS_EX_LAYERED, you have to set it in your program dynamically. For some uknown reson, it dosn't accept WS_EX_LAYERED when you put it into a resource file as a dialog box parameter. Maybe they're afraid of someone abusing that and making a window impossible to use because it has an invisible dialog box as a child?
Post 15 May 2007, 05:43
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
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


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.