Need help with skinning

I created a skinnable CD Player in 2002 originally, in 2012 I began development of it once again. It uses skins and I need help. I forgot a lot of the codebase for the skinning. The Skins are saved in a skin.ini file for example:

SonTox Ski\Skin.ini

it uses bitmaps like cbuttons.bmp for the skin buttons.

A Sample of the skin ini is:


[mainwindow]
# main=0,0,width,height

main=0,0,275,116

# titlebar=x,y,width,height
titlebar=0,0,275,14

# buttons

# nameOfbutton=xPos,yPos,width,height, xBmp,yBmp,widthBmp,heightBmp

btPrev=16,88,22,18, 0,0,88,18
btPlay=39,88,22,18, 90,0,88,18
btPause=62,88,22,18, 0,19,88,18
btStop=85,88,22,18, 90,19,88,18
btNext=108,88,22,18, 0,38,88,18
btEject=136,88,22,15, 90,38, 88,15
btShowPlaylist=214,89,25,15, 0,57, 100,15
btShowOptions=184,89,27,15, 0,73,108,15

btLockVolume=237,60,7,7, 112,73,28,7
btMuteVolume=253,60,7,7, 112,73,28,7
btMinimize=254,3,9,9, 103,59,36,9
btClose=264,3,9,9, 142,59,36,9


# scrollbars
#
# nameOfScrollbar=xPos,yPos,width,height, xBmp,yBmp,widthBmp,heightBmp


sbPos=21,72,199,6, 0,0,80,6
sbLVolume=231,44,4,40, 0,7,16,10
sbRVolume=246,44,4,40, 0,7,16,10
sbMVolume=262,44,4,40, 0,7,16,10

#textbox
#
# nameOfTextboxr=xPos,yPos,width,height

tbPosition=53,29,44,13
tbTrackLength=23,29,30,11
tbArtist=22,42,115,11
tbAlbum=22,53,115,11
tbTrackName=112,27,150,6
tbStatus=161,44,55,11


# playlist

[playlistwindow]

# titlebar
#
# nameOfTitlebatArea=xPos,yPos,width,height, xBmpInActive,yBmpInActive,xBmpActive,yBmpActive

topleft=0,0,25,20, 0,0,0,21
topmiddle=0,0,100,20, 26,0, 26,21
topright=0,0,25,20, 153,0, 153,21
topfill=0,0,25,20, 127,0, 127,21

# bottom
#
# nameOfBottomArea=xPos,yPos,width,height, xBmp,yBmp

bottomleft=0,0,154,38, 0,42
bottomfill=0,0,25,38, 106,83
bottomright=0,0,20,38, 155,42

# borders
#
# nameOfBorder=xPos,yPos,width,height, xBmp,yBmp,widthBmp,heightBmp


leftborder=0,0,9,29, 133,83
rightborder=0,0,7,29, 143,83


# listbox scrollbar
#
# sbListBox=position RECT(0,0,w,0), thumb bitmap RECT(x,y,w,h), background RECT(x,y,w,h)
# sbListBox=0,0,pw,0, tbx,tby,tbw,tbh, bgx,bgy,bgw,bgh
#
# REMARK: bw and bh can't be 0

sbListBox=0,0,9,0, 0,110,36,20, 152,83,9,28



# playlist listbox
#
# lbPlaylist=background RECT(x,y,w,h),itemheight,active row color #RGB,selected row color #RGB
# lbPlaylist=bgx, bgy, bgw, bgh, itemheight, #RGB, #RGB

lbPlaylist=0,131,178,18, 18, #023564,#FD4B4B





# playlist buttons
#
# btName=xPos,yPos,width,height, bgx, bgy, bgw, bgh
#
# yPos is distance from bottom of playlist dialog

btAdd=10,32,26,20, 0,82,104,20
btDelete=39,32,26,20, 0,82,104,20
btEdit=68,32,26,20, 0,82,104,20
btSongup=97,32,26,20, 0,82,104,20
btSongdown=126,32,26,20, 0,82,104,20

# xPos is distance from right border of titlebar

btClose=4,3,9,9, 40,113,36,9


[region]
#
# use main window region

useregion=0



[info]
1=Kalax Winamp Skin
2=
3=Unknown Author
4=Email: mhcdplayer@gmail.com
5=http://www.mhcdplayer.com
6=Feel Free to make your own buttons
7=and etc...
8=Skin Modified For Platinum CD-Player
9=By Michael Hardy...


I would like to adapt cdrun skins for this cd player.
Can someone help me with the cdbuttons portion so
I can adapt cdrun skins?

I'll be willing to pay someone to help.

Thank you in advance









Topic archived. No new replies allowed.