Shoutbox

Scrollbars in CL(20152, 20153) - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Skinning (/forumdisplay.php?fid=41)
+----- Thread: Scrollbars in CL(20152, 20153) (/showthread.php?tid=84507)

Scrollbars in CL(20152, 20153) by vaccination on 06-25-2008 at 10:46 AM

I've replaced the 20152/3 images for the contact list by editing the 923, 1001, 1004 and 1009 styles, however the images aren't changing, I've managed to change all other aspects of the scrollbar fine, however the 20152/3 just won't change.

Any ideas?



In case you're wondering I've changed the images by doing this:

code:
RepeatButton[id=atom(verthome)][MouseWithin]
{
Background:rcbkd<*PlusSkin Conditions(CLBG = false) *> (59015) </*PlusSkin*> <*PlusSkin Conditions(CLBG = true) *> (20152) </*PlusSkin*>;
}
RepeatButton[id=atom(verthome)][Pressed]
{
Background:rcbkd<*PlusSkin Conditions(CLBG = false) *> (59016) </*PlusSkin*> <*PlusSkin Conditions(CLBG = true) *> (20153) </*PlusSkin*>;
}


RE: Scrollbars in CL(20152, 20153) by Basilis on 06-25-2008 at 10:50 AM

I suggest instead of doing this in the UIFile, just specify in the SkinInfo that if the option is true, the image 59015 will be replace by image1 and if the option is false, the image 59015 will be replaced by image2. Wait to post an example of what I mean

Here it is:

<ResGroup>
<Restrictions>
<MsgVersions>
<Version Major="8" Minor="5"/>
</MsgVersions>
<SkinOptions>
<OptionSet>
<Conditions>CBLG = "True"</Conditions>
</OptionSet>
</SkinOptions>
</Restrictions>
<Resources>
<New>
<Pictures>
<Picture Id="59015">
<File>Image1.png</File>
</Picture>
</Pictures>
</New>
</Resources>   
</ResGroup>

<ResGroup>
<Restrictions>
<MsgVersions>
<Version Major="8" Minor="5"/>
</MsgVersions>
<SkinOptions>
<OptionSet>
<Conditions>CBLG = "False"</Conditions>
</OptionSet>
</SkinOptions>
</Restrictions>
<Resources>
<New>
<Pictures>
<Picture Id="59015">
<File>Image2.png</File>
</Picture>
</Pictures>
</New>
</Resources>
</ResGroup>


RE: Scrollbars in CL(20152, 20153) by aNILEator on 06-25-2008 at 10:56 AM

quote:
Originally posted by Basilis
I suggest instead of doping this in the UIFile, just specify in the skin that if the option is true, the image 59015 will be replace by image1 and if the option is false, the image 59015 will be replaced by image2. Wait to post an example of what I mean

Bingo.

I don't think plus conditions are picked up in styles files anyway :)

Take a look at the source of Vistafy or WAM you'll see we've had to specify multiple Restrictions based on the theme a user has picked, you'll need to do the same.

Unfortunately Other than that I can't help you this weekend thur-tues sorry mate.
RE: Scrollbars in CL(20152, 20153) by vaccination on 06-25-2008 at 10:57 AM

quote:
Originally posted by vaccination
I've managed to change all other aspects of the scrollbar fine

8-)


RE: RE: Scrollbars in CL(20152, 20153) by Basilis on 06-25-2008 at 10:59 AM

quote:
Originally posted by aNILEator

I don't think plus conditions are picked up in styles files anyway :)

Well, this is based on the element. You can hide buttons (not all the buttons but some of them) from the style file or specify the foreground of an element if a theme is activated, etc.
RE: Scrollbars in CL(20152, 20153) by Volv on 06-25-2008 at 11:19 AM

quote:
Originally posted by Basilis
quote:
Originally posted by aNILEator

I don't think plus conditions are picked up in styles files anyway :)

Well, this is based on the element. You can hide buttons (not all the buttons but some of them) from the style file or specify the foreground of an element if a theme is activated, etc.
Conditions always work any where in definition or style files.

RE: RE: Scrollbars in CL(20152, 20153) by Basilis on 06-25-2008 at 11:24 AM

quote:
Originally posted by Volv
quote:
Originally posted by Basilis
quote:
Originally posted by aNILEator

I don't think plus conditions are picked up in styles files anyway :)

Well, this is based on the element. You can hide buttons (not all the buttons but some of them) from the style file or specify the foreground of an element if a theme is activated, etc.
Conditions always work any where in definition or style files.

Not at all. E.g. In the contact list, there are buttons which you can only remove from the definition file.
RE: RE: RE: Scrollbars in CL(20152, 20153) by Willz on 06-25-2008 at 11:36 AM

quote:
Originally posted by Basilis

Not at all. E.g. In the contact list, there are buttons which you can only remove from the definition file.

Yeah..... because a definition is xml you are physically hiding/removing the object whereas a style was only ever technically meant to just add styling properties to the things laid out in definitions.

All style condition statements do work if you are using them for things that styles were meant to do: styling.

Anyway back to vax's question,

I've had no probs with 20152 and 20153, they should replace fine if you put the right metadata in. The only thing though I would go with what was pointed out about Resource groups and restrictions, its just easier to manage as you don't have to go around changing all of the scrollbar code.