INTERACT FORUM

More => Old Versions => Media Center 12 (Development Ended) => Topic started by: Mr ChriZ on December 12, 2006, 04:25:10 pm

Title: New Style Matrix Skinning
Post by: Mr ChriZ on December 12, 2006, 04:25:10 pm
I think the New (and possibly the old) Style Matrix stuff for skinning
could really do with some nice pictures to make it more
easy to understand.
I'm trying to use it for these scrollbar handles
and just getting myself very confused!
(http://img141.imageshack.us/img141/6442/scrollbarjx2.png)(http://img520.imageshack.us/img520/7079/scrollbarverticalhandledh1.png)

In the vertical scrollbar handle above you can see the handle itself can be comprised of 5 vertical sections.
The top 5 pixels should never stretch.
The next 18 odd pixels should stretch...
then the handle itself, which is about 9 pixels
then 18 again
then 5 again.

Then I have this xml statement which looks something like
Rows="5,?-Flex,,,?-Flex,5"
With something between the the commas...
I'm just not sure what?  ::)
Help?!  I've never got on well with Matrices!
Title: Re: New Style Matrix Skinning
Post by: Mr ChriZ on December 12, 2006, 04:56:23 pm
OK If I'm reading this right...
the following should work
 Rows="10,?-Flex,10,?-Flex,10" />

However... it still can create handles which are too small.
Like this one:
(http://img226.imageshack.us/img226/4594/scrollsquishedil7.png)

The bits  that weren't supposed to flex, have Flexed.  ?

Edit:
Ah I see it's kind of one of those laws of mathematics.
You can't have a minimum size of handle else the whole thing just
wouldn't work! OK alls good  :)