473,407 Members | 2,315 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

skinnable application

Hi,

I would like to understand the process of a skinable application.
I mean i know that there are some pictures stored into a file and
application use them.
But what i would like to understand it's the solution itself like :
- is it better to have each picture in a separated file, or several
different images can be in 1 file (as winamp for example) ?
- if several images are in 1 file, how to select the right one ?
- when to apply image to control ? only on wm_paint msg raising ?
and so on...

if someone has a good link or tutorial for me i would be happy.

thanks a lot,

A.
Aug 28 '07 #1
2 1379
Skinning, essentially requires custom controls. To my knowledge, there's no
way to do it otherwise, short of hijacking the WM_PAINT messages for every
control, but that could be very problematic, I would imagine.

So the implementation depends on the control library used. If you google
around, I'm sure you'll find some. But I'd assume that generally there's a
bitmap for the background of the window and then separate bitmaps for each
control (possibly more than one for some, to represent multiple states) .


"Alain R." <no*****@nospam.comwrote in message
news:ev**************@TK2MSFTNGP04.phx.gbl...
Hi,

I would like to understand the process of a skinable application.
I mean i know that there are some pictures stored into a file and
application use them.
But what i would like to understand it's the solution itself like :
- is it better to have each picture in a separated file, or several
different images can be in 1 file (as winamp for example) ?
- if several images are in 1 file, how to select the right one ?
- when to apply image to control ? only on wm_paint msg raising ?
and so on...

if someone has a good link or tutorial for me i would be happy.

thanks a lot,

A.

Aug 28 '07 #2
Most skins I've seen just do things like add images onto some buttons,
add a background image, move the position/size of controls, and change
around the colour scheme. All of this should be done fairly easily with
the existing controls.

The kind of thing I'd be looking for would be something along the lines
of a text file with for format of:
<Control Name>,<Property Name>,<New Value>

Then you can parse the file line by line, use .Split(',', 3) to get your
three values then
Controls[<Control Name>].PropertyName = NewValue

Bit more coding involved than just that obviously but it should get a
whole lot done (font, colours, background pics on the form and buttons).
pedrito wrote:
Skinning, essentially requires custom controls. To my knowledge, there's no
way to do it otherwise, short of hijacking the WM_PAINT messages for every
control, but that could be very problematic, I would imagine.

So the implementation depends on the control library used. If you google
around, I'm sure you'll find some. But I'd assume that generally there's a
bitmap for the background of the window and then separate bitmaps for each
control (possibly more than one for some, to represent multiple states) .


"Alain R." <no*****@nospam.comwrote in message
news:ev**************@TK2MSFTNGP04.phx.gbl...
>Hi,

I would like to understand the process of a skinable application.
I mean i know that there are some pictures stored into a file and
application use them.
But what i would like to understand it's the solution itself like :
- is it better to have each picture in a separated file, or several
different images can be in 1 file (as winamp for example) ?
- if several images are in 1 file, how to select the right one ?
- when to apply image to control ? only on wm_paint msg raising ?
and so on...

if someone has a good link or tutorial for me i would be happy.

thanks a lot,

A.

Aug 29 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Daniel Bickett | last post by:
I'm very near finishing a medium to large scale application, so I'm getting a head start on the GUI side of things. Part of the concept is to give as much attention to presentation as...
9
by: J. Baute | last post by:
I'm caching data in the Application object to speed up certain pages on a website The main reason is that the retrieval of this data takes quite a while (a few seconds) and fetching the same data...
1
by: Ben | last post by:
Hi, I'm interested in making an application I'm about to start writing skinnable, but I have absolutely no idea where to begin. If anyone has a broad overview of how I would go about it or some...
3
by: Amit Dedhia | last post by:
Hi I am developing a Dot net application (involving image processing) on a uni processor. It works well on my machine. I then take all my code on a multi processor, build and run the application...
6
by: orekin | last post by:
Hi There I have been trying to come to grips with Application.Run(), Application.Exit() and the Message Pump and I would really appreciate some feedback on the following questions .. There are...
20
by: Peter Oliphant | last post by:
How does one launch multiple forms in an application? Using Photoshop as an example, this application seems to be composed of many 'disjoint' forms. Yet, they all seem somewhat 'active' in...
0
by: Andrew Clancy | last post by:
Hi, I'm hoping to create a skinnable user control in ASP.Net, using the skin file to keep things streamlined & all in one place/technique. 1st attemp went something like this Test.ascx: <%@...
6
by: Josef Brunner | last post by:
Hi, I published my application (VS 2005) and am now trying to install it when I get this error message. It worked before...even on a different machine. Here is the detailed description: ...
1
Ali Rizwan
by: Ali Rizwan | last post by:
Hi all, Is there anybody who has made A VB6 form fully skinnable, meaning you can change titlebar and borders and some more special things with labels frames buttons etc? But one thing remember...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.