473,569 Members | 2,735 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1385
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******** ******@TK2MSFTN GP04.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******** ******@TK2MSFTN GP04.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
4411
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 functionality, and something I really wanted to do was transcend the basic window and style it to an extent, To be honest, the wxPopupWindow was basically...
9
3280
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 from the "cache" hardly takes any time A basic pattern used to get the data from disk, or from cache is this data = getDataFromCache("mydata" if...
1
284
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 links to resources that might help it would be much appreciated. Are there any free libraries I should look at too (I am a student developer, so...
3
3114
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 there. There is performance degradation. The usual performance of the application on MP machine is better than that of uni processor machine....
6
20052
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 quite a few words in this post but the questions are actually quite similar and should be fairly quick to answer ... (1) What is Happening with...
20
2679
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 contrast to one of them always being 'modal' (e.g., if you are moving over a picture the 'Info' form will update the (x,y) screen location in realtime...
0
1333
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: <%@ Control Language="C#" AutoEventWireup="true" CodeFile="Test.ascx.cs" Inherits="Test" EnableTheming="true" %><asp:TextBox ID="TextBox1"...
6
25044
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: PLATFORM VERSION INFO Windows : 5.1.2600.131072 (Win32NT) Common Language Runtime : 2.0.50727.42
1
1214
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 skinnable form without using any software.
0
7609
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7921
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8118
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7964
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6278
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5504
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5217
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3651
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2107
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.