WB & DX Can we combine the best of both?
Saturday, March 24, 2007 by RomanDA | Discussion: Skinning
I have begun working on a widget that will be able to change based on the WB skin you are running. I have the code i need to make this work as far as finding the info... but its KNOWING the right info im looking for, THAT is the hard part.
The idea (for this one) is to make a "FRAME" that would pull the info from the current WB skin.
Please understand i know DX, NOT WB, I have never skinned anything in WB, so im asking q's of those who know the UIS file format.
The "FRAME" would be made up of multiple images, look below.

The INFO I need is:
TOP Image Left Margin (TLM)
TOP Image Right Margin (TRM)
Top Height (TH)
Left/Right Top/Bot Margins: LTM/LBM (same for right side)
Left right WIDTH as well.
Bottom Left/Right Margins BLM/BRM - Bottom Height
Also would need to know how to figure out what kind of BG (Background image) to use, image, or some color?
What I need is to know what "KEY" in the UIS file points to these items.
IE: TLM = TopTopHeight
TRM = TopBotHeight
If those are correct. I think this could really be kind of cool if it can be worked out. But since i know zippo about WB, im hoping one of you WB MASTERS will help me.
Is there anything else that we might be able to use? Buttons would be good to. I love it idea of making the widget look like a normal window, skinned of course. But if you have other ideas on how to do that to, please let me know. Lets make this a great community project!!
Thanks in advance!
RomanDA
Reply #2 Saturday, March 24, 2007 5:05 PM
Reply #4 Saturday, March 24, 2007 7:29 PM
[Personality]
; how many titlebar buttons do we have
BUTTONCOUNT=10
; are we custom color aware
ColourAware=0
; frame images
Top=NoiX\NoiXWindowFrameTopUis2.bmp
Left=NoiX\NoiXWindowFrameLeftUis2.bmp
Right=NoiX\NoiXWindowFrameRightUis2.bmp
Bottom=NoiX\NoiXWindowFrameBottomUis2.bmp
; maximised clip
TopFrame=2
LeftFrame=2
RightFrame=2
BottomFrame=2
; stretching.. 1 = stretch
TopStretch=1
LeftStretch=1
RightStretch=1
BottomStretch=1
; text
TextAlignment=0
TextShift=13
TextShiftNoIcon=-3
TextShiftVert=0
TextRightClip=76
; margins
TopTopHeight=5
TopBotHeight=5
BottomTopHeight=1
BottomBotHeight=1
LeftTopHeight=23
LeftBotHeight=5
RightTopHeight=23
RightBotHeight=5
[Metrics]
; titlebar height
CaptionHeight=23
Reply #5 Saturday, March 24, 2007 7:33 PM
Reply #6 Saturday, March 24, 2007 8:35 PM
I have the frame working, sorta.. gotta work out bug and issues in different skins, etc.
Still need to know how it does the Background image/color, etc.
Reply #7 Saturday, March 24, 2007 9:19 PM
Reply #8 Saturday, March 24, 2007 9:21 PM
The desktop color \ image?
Reply #9 Saturday, March 24, 2007 9:29 PM
You could try using this color:
[Colours]
ButtonFace=176 165 141 <----rgb values
Reply #10 Saturday, March 24, 2007 9:40 PM
Reply #12 Sunday, March 25, 2007 6:23 AM
1. Got the frame working -- sorta.. some skins are not right.
2. Have to try the background info provided above
3. Still have to work out the title text area.
I have to find what images/items are used for the area around the title
4. Also, need to work out the buttons for close/min/help, have to see how i can do that with the way the buttons are made in WB.
Thanks to all that have helped, here is a simple screen shot of 2-3 skins in "action"

As you can see there are issues with the text size, and the blue box is for the background, have to work that out too. Also some skins don't seem to work, have to see what they are missing or have different. This could be a pain if different skins have problems. Wonder if its WB5 skins that work right, and the older ones that dont. Have to work on it.
Any help is appriciated.
Reply #13 Sunday, March 25, 2007 7:11 AM
Reply #14 Sunday, March 25, 2007 8:05 AM
Reply #15 Sunday, March 25, 2007 10:19 AM
Sure, id like to see what you did for this one.
C242,
I will be happy to share this once i get it working, or if i hit a wall.
Thanks for the help everyone!
I think its something that could be really cool, but it all depends on how easy it is to get things working right.
Reply #18 Sunday, March 25, 2007 11:52 AM
But what happends if the suer don't have WB?
Reply #19 Sunday, March 25, 2007 12:43 PM
They go home.. LOL they GET IT!!
I will have to make some kind of default "state" to each item, as it would also be the same when someone changes to "standard" skin (IE no WB skin).
Reply #20 Sunday, March 25, 2007 1:02 PM
He could help you I bet.
Please login to comment and/or vote for this skin.
Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:
- Richer content, access to many features that are disabled for guests like commenting on the forums and downloading skins.
- Access to a great community, with a massive database of many, many areas of interest.
- Access to contests & subscription offers like exclusive emails.
- It's simple, and FREE!








Reply #1 Saturday, March 24, 2007 4:59 PM
On the TOP, it would be good to put in the text like "CALENDAR" "WEATHER".. i would need to know what the offsets are for that too, im sure its in this file..
Thanks!!