thebat.net    |    
Products    |    
Download    |    
Buy online    |    
News    |    
Dealers    |    
Company
English     |     German     |     Russian     |    
The Bat!
Download
Buy online
Pro vs Home
Licence agreement
Benefits
System requirements
Screenshots
Reviews
Awards
Forum
Tips
Support
Plugins
SecureBat!



Compatible with Windows 7





Customizing The Bat! skin


In order to be able to customize The Bat!'s skin it is necessary to make the corresponding changes in the batskin.xml file.

This is an common XML file with a standard structure. It has to contain the following sections:

is outer level. Inside this section two optional sub-sections can be placed:

is used to give this customization file a description
Text is used to place a copyright notice

Then follow the mandatory sections:

this sub-section is used to define a number of used bitmap files.
It must contain at least one bitmap entry:

Such entries will define what bitmap files will be used as source for the graphics.
The ID here is a unique user-defined ID for this bitmap to be referenced to later in the batskin.xml file; FILE is a file name of used bitmap file, supported formats are .PNG, .BMP, .JPG. In case of .PNG-file, alpha layer will be used for transparent areas. In case of .JPG-file the transparent areas will be defined by top-left pixel color – this color will become a “transparent” color. In case of .BMP-file, if source bitmap is 32-bit with alpha, alpha layer will be used to define transparency, otherwise top-left pixel will define transparency.
CROPX/CROPY/CROPWIDTH/CROPHEIGHT are optional integer values, which define used portion of the loaded bitmap. Sometimes source bitmap may be bigger than needed. This parameters allow user to crop the picture to the needed size when loaded, in a way similar to Photoshop’s “Crop Image” function.

The section follows another mandatory section:

this sub-section is used to define sizes of glyph groups inside the host programme (The Bat!).

It contains entries like:

Such entries define sizes for different glyph groups used in host application. GROUP_ID values are predefined by host application and are listed in Appendix A.

Section define how actual glyphs are located in source bitmaps.

Inside this section following sub-entries may be placed:

Where BITMAP_ID should be the exact ID parameter value of one of the bitmaps in the section, GLYPH_WIDTH/GLYPH_HEIGHT define the size of the following glyph definitions.

One of the batskin.xml concepts is to locate glyphs in a virtual grid cells. It works as follows:
Picture 1.

Source bitmap is virtually divided into equal cells. Each cell may contain one glyph. References to glyphs are made using column and row numbers, starting with 0.
GRID_WIDTH/GRID_HEIGHT defines the grid cell size.
XOFS/YOFS define the offset of each glyph inside the grid cell, default to 0/0, if omitted.

This entry defines one glyph to be used in host application.
GLYPH_ID is an application-predefined value, listed in Appendix B.
COL/ROW is position of the glyph in current virtual grid.
XOFS/YOFS optional, overrides grid’s values for this only glyph.
GLYPH_WIDTH/GLYPH_HEIGHT optional, overrides definition of glyph size.

This entry defines one glyph from a separate file.
FILE specifies the source file name.
XOFS/YOFS is optional, specifies starting (top-left) point of the glyph, default to (0, 0)
GLYPH_WIDTH/GLYPH_HEIGHT optional, definition of glyph size.

  download batskin.xml

Appendix A.

MenuIcons
ToolbarIcons
Buttons
ListIcons
Folders
AddrBook
Controls
BigIcons
WorkIcons
icons used for menus
icons used for toolbars
icons used for buttons
icons used for message lists
icons used for tree folders
icons used for Address Book folders
icons used in some controls

Appendix B. 

bFetch
bFetchAllAccounts
bSend
bNewMsg
bReply
bReplyAll
bForward
bRedirect
bAddrBook
bSaveAs
bSaveAll
bPrint
bDelete
bNewContact
bNewGroup
bUserProps
bSearchAddr
bCancelSearch
bStore
bDraft
bSave
bCopy
bCut
bPaste
bQPaste
bReplace
bCopyTo
bPasteFrom
bQPasteFrom
bAttach
bCancel
bStartTransfer
bHeaderView
bOpen
bBrowse
bSaveMsgAs
bPrev
bNext
bDelUp
bDelDown
bTextCopyClp
bTextCopyTo
bTextSearch
bTextFindNext
bFindMsg
pgpKey
pgpUID
pgpSignature
pgpRevokedSignature
pgpRevokedKeyPair
pgpRevokedKey
pgpDisabledKey
pgpInvalidUID
pgpValidUID
pgpValidKey

AccountNewMsgs
Account
FolderClosed
Trash
FolderOpened
UnemptyTrash
UnsentClosed
UnsentOpened
RecentClosed
RecentOpened
RecentOutboxClosed
RecentOutboxOpened
UnreadSubfolders
UnreadTrash
RedCross
ImapFlag
ovrInboxSign
ovrOutboxSign
ovrSentSign
ovrChat
ovrOutboxDraft
ovrJunkFlag
ImapTrash

BlueRuleClosed
BlueRuleOpened
GreyRuleClosed
GreyRuleOpened
AddrBook
Transport
MailMgm
Options
FilesDirs
BrowseFolder
Templates
NewTpl
ReplyTpl
FwdTpl
CfmTpl
SaveMsg
Cookies

mlvNormalEnvelope
mlvHighEnvelope
mlvLowEnvelope
mlvNormalOpen
mlvHighOpen
mlvLowOpen

mlvNoPark
mlvNoDraft
mlvNoFlag

mlvPark
mlvDraft
mlvFlag
mlvAttach

mlvHdrPark
mlvHdrDraft
mlvHdrFlag
mlvHdrAttach
mlvHdrMessage

mlvHdrPriority
mlvNormalPriority
mlvHighPriority
mlvLowPriority

mlvSortUp
mlvSortDown

mlvReply
mlvForward
mlvSigned

iFontStyleBold
iFontStyleItalic
iFontStyleUnderline
iTextColor
iTextAlignLeft
iTextAlignRight
iTextAlignCenter
iTextAlignJustify
iSearch
iMail
iBook
iSearchNext
iHelp
iPageSetup
iWinCascade
iPaste
iClock
iTextHeight

bDispatchAll
bViewLog
bLock
bNewUser
bCfgAccount
bCfgFilters
bCfgNetwork
bLeft
bDown
bUp
bRight
bNewFilter
bScheduler
bSmartBat
CertBigNormal
CertBigError

bEditSchedule
bMarkAsSpam
bMarkNoSpam

UnknownSignature
ValidSignature
InvalidSignature
EncryptedMessage
ExpiredSignature

bKeyManager
bViewSource
bNewCustFolder
bPlaceCustFolder

cbUnchecked
cbChecked

logInfo
logError
logDown
logUp

NewAddrBook

iSave

pgpKeyPair

Sound
Network
Memo
Chat
ImapFineTune
AddrGroup

RasLogReceive
RasLogSend
NoPark
ParkLst

NormalPriority
HighPriority
LowPriority
CfmReceipt
CfmRead

acUnspec
acMale
acFemale

DropDown
RightArrow
OpenAddrBook

CertSmallNormal
CertWithPrivateKey
CertFieldV1
CertFieldV3NExt
CertFieldV3CExt
CertProp
CertSmallError
CertSmallWarning
CertUnknown
KeyOnToken
CertHasPrivateKey
ValidSignature
InvalidSignature

AddrBookLocalClosed
AddrBookLocalOpened
AddrBookRemoteClose
AddrBookRemoteOpene
AddrBookSearch
AddrBookTrash
AddrBookGroup
AddrBookTrustCAClose
AddrBookTrustCAOpen
AddrBookIntermCAClose
AddrBookIntermCAOpen

iWinTile
iCopy
iCalendar
iDateTime
iCut
iOpen
iUndo
iRedo
iDelete
iSome
bNewFilter
iSmallBat
iMenubar
iToolbar
iPopup
iShortcuts
iForm

bLeft
bDown
bUp
bRight
bNewFilter

iAlignRight
iBold
iItalic
iUnderline
iTextColor
iBkColor
iDocBkg
iAlignLeft
iAlignCenter
iAlignJust
iTextImage
iAddLink
iAddHrLine
iListBullets
iListNumbers
iInsertTable
iDelCol
iDelRow
iInsertColL
iInsertColR
iInsertRowD
iInsertRowU
iMergeCell

  download batskin.xml

Copyright © 1995-2010 RITLABS. All rights reserved.