Re: Another question about themeing

Kristian Kvilekval <[email protected]> Wed, 18 Feb 2004 16:40:15 -0800
Newsgroups gmane.comp.audio.zinf.devel
Message-ID <1077151215.1041.28.camel@krispc>
On Wed, 2004-02-18 at 12:56, Catherine wrote:
> On Wed, 2004-02-18 at 12:16, Kristian Kvilekval wrote:
> 
> > 
> > The ControlBitmap allows you to store multiple controls in 
> > a single bitmap file.  For example the Next button might have
> > multiple state (Normal, MouseOver, Pressed, and Disabled).
> > These are stored in the control bitmap file (Buttons)
> > at position 0,32,119,63
> > 
> > Another button (say play) can be stored in the same bitmap at
> > another position.
> > 
> 
> See, this is where it gets tricky for me....what are the 119,63
> numbers?  Where did those come from?

There is a one bitmap file called Buttons with both next and play
buttons.  It also has other buttons labeled with X
    0-   119
31  X X X X
63  N N N N
95  P P P P

In this example, the next button are labeled with N, while the play
button are labeled with P.
You could specify that the Next buttons are loaded from  0,32,119,63
The play buttons would have 0,64,119, 95

However any arrangement is valid for example (one very long bitmap file
for buttons).
X X X X N N N N P P P P

Here X would be 0, 0, 119, 32 
     N          120,0 239, 32
     P          260,0,379, 32

-- 
Kristian G. Kvilekval
email:[email protected] office:(805)893-4276 http://www.cs.ucsb.edu/~kris



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click