🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #12560

Re: How to do skins?

#12560
From: eric67
Date: Wed, 03 Dec 2003 08:51
45 lines
2436 bytes
Inherit new visual controls from TButtons, TTrackControl or create new
ones from TCustomControl.
Add a Skin property that loads a Bitmap from a File (start with one
bitmap for one control)
Rewrite MouseMove, MouseUp, MouseDown, KeyDown, KeyPress for proper
user interaction.
Rewrite Paint to draw your new TSkinButton, TSkinTrackControl,
TSkinPanel, ... according to its user state (selected, rollover,
pressed, disabled ... ) changing the bitmap that's used to paint.

When everything works fine write a new Component TSkinDispatcher that
load's one bitmap for all the controls and use it into controls
instead of the Skin property.

It's a one week job but you'll give your application a very good look.
Don't forget to test all the behaviours of the new controls.
Eric

"PC Hua" <home-at-huaonline.dot.com> ha scritto nel messaggio
news:oprzk8r4kneb6hof@newsgroups.borland.com...
> What changes do I need to do in order to make the existing GUI to
use
> skins?
> My application is like a media player, i.e. progress slider, play,
stop
> buttons etc. Do you think it's a good idea to adapt the application
to be
> able to use existing skins, e.g. WinAmp etc.? or third party skins
are not
> decodable?
> What tool do I need?
> Does different tool produce different output? or they are simple
seperated
> bitmaps?
> Is there a very popular tool which I should use in order to get more
users
> to create their own skins?
>
> thanks for your time
> Phuoc Can HUA
>
> -- 
> _/\__/\__/\__/\__/\__/\_
> www.huaonline.com
> My Homepage is my Castle
Technical Details
Message-ID: <3fcda449@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <oprzk8r4kneb6hof@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,5cb6acdd8320027
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-12-03 01:09:12 PST
From: "eric67" <myfantasy@libero.it>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <oprzk8r4kneb6hof@newsgroups.borland.com>
Subject: Re: How to do skins?
Date: Wed, 3 Dec 2003 09:51:58 +0100
Lines: 47
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 217.56.76.254
Message-ID: <3fcda449@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1070441545 217.56.76.254 (3 Dec 2003 00:52:25 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail