[help] Programmer's Help

I would like to know how do you guys implement skinning possibilities on your applications? I mean, what language do you use? Is Java appropriate?

Could you tell a couple of words about how do you do that?

I must extend an open source software (part of an undergraduate project) and i thought i could do this. The only language i know is java.

Any response is considered vital.

Thank u all for your time._

#133247

Topic Moved.

More suited to Aqua Related Apps, methinks...

--------------------

Stevie BM

#133258

All of the Visual Studio.net Languages support Skinning. C#, C++.net, VB.net ect..

Visual Studio 6 (C++, VB6 and most of the rest) support skinnig.

In your program you tell it to load the images from a certian path eg. *app path*\skins. the program knows what images to load from a settings.ini that you told to write. Each image place holder on the form has a line in the settings.ini.

1. So first Tell your program to write a settings.ini (if not already in existence)

2. Tell it to write a line in the settings.ini for each image place holder.

3. Set a default Folder for the program to look at to load the skins from.

3. Tell the program to read each line (with the path) and load the images from there.

to change the skins..simply adjust the image path for each image.

#133261

I use several ways, from subclassing all controls to creating my own controls.

It's not language specific, it's more Windows specific. Also, a good graphical library like GDI+ could be usefull for the prefiltering and anti-aliasing and things.

Never tried skinning in Java though, I only create console applications in java :blink: It could be easier in Java maybe, because once you create a decent JContainer with skinning possibilities you can use it easily several times. Maybe something like

public class Skin
{
   // what you think you need here
   public void drawSkinned(.....);
   public void whatever();
}

interface ISkinnable
{
   public void setSkinner(Skin skin);
}

public class MyContainer extends JContainer implements ISkinable
{
    // etc....
}

Maybe you can use a singleton for the skinner, because there will be only one instance alive for every application ( I don't think you want to use two skins in one application).

If you want to get a look at some of my sources,feel free to contact me MSN: andreas@boeitniet.nl or AIM: Andreastudelft

#133268

Thank U All m8s!

You have developed a sense of helping others which is admirable!

I will look through.

#133714