Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Program Announcements / New DLL: Window Skinning

Author
Message
Scilynt
22
Years of Service
User Offline
Joined: 13th Nov 2002
Location: .-#-.
Posted: 6th Sep 2003 17:03 Edited at: 15th May 2005 00:49
Hi, just a small DLL from me, for skinning your DBPro windows. First off, this is P5 only, but if anyone would like a Pre-P5 version then let me know. Anyway, 3 new commands...

1) Skin Window: This is our main command, you pass it a Bitmap filename, and the R,G and B components of the colour to be transparent. eg. Skin Window "Skin.bmp",255,0,255

2) Remove Window Skin: This will return the window to it's default state, eg When your app first loads.

3) Drag Window: Just an easy way to drag the window from anywhere on the window, you can use a MouseInZone type function as in the example to restrict dragging to a certain area.

Can be used for anything you want, don't need any credit. Take a look at the example for usage and some notes.

Download: Take a look at this post

And a screen:


I'm putting the green line around the window down to PS's AA.
Gardocki
22
Years of Service
User Offline
Joined: 31st Oct 2002
Location:
Posted: 17th Sep 2003 17:38
That could be really useful. One question, though. Can you update the mask during runtime? Like if someone clicks a button, could the mask be given a different bitmap and change its shape?
LordSorcre
21
Years of Service
User Offline
Joined: 23rd Aug 2003
Location:
Posted: 20th Sep 2003 05:32 Edited at: 20th Sep 2003 05:36
wow that is really good. will be useful for my games. might i suggest being able to have several windows open at the same time?
AuzingLG
21
Years of Service
User Offline
Joined: 19th Sep 2003
Location:
Posted: 20th Sep 2003 16:45
Cool!

Please wait. Loading Signature...
Scilynt
22
Years of Service
User Offline
Joined: 13th Nov 2002
Location: .-#-.
Posted: 4th Oct 2003 00:11
Sorry for the rather long delay in replying, no-one had said anything for about a week and since I don't normally visit here I stopped checking back.

@Gardocki: Incase you haven't checked out the example by now then yes you can update during runtime, by calling Skin Window again will take a new image and transparent values and update the window as needed.

@LordSorcre: I'm not sure what you mean by having several windows open at the same time.

@AuzingLG: It is, isn't it .
Ian T
22
Years of Service
User Offline
Joined: 12th Sep 2002
Location: Around
Posted: 5th Oct 2003 00:50
Very useful. Thank you

--Mouse: Famous (Avatarless) Fighting Furball

A very nice %it, indeed.
ZomBfied
22
Years of Service
User Offline
Joined: 2nd Oct 2002
Location:
Posted: 8th Oct 2003 20:55 Edited at: 20th Jul 2005 20:39
This rules! Thanks! How did you do it?

Login to post a reply

Server time is: 2024-11-21 14:52:25
Your offset time is: 2024-11-21 14:52:25