What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Skinning » Scrollbars in CL(20152, 20153)

Scrollbars in CL(20152, 20153)
Author: Message:
vaccination
Veteran Member
*****

Avatar

Posts: 2513
Reputation: 43
32 / Male / –
Joined: Apr 2005
O.P. Scrollbars in CL(20152, 20153)
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*>;
}

[Image: jumbled.png]
06-25-2008 10:46 AM
Profile PM Find Quote Report
Basilis
Veteran Member
*****

Avatar
Olympiacos CFP

Posts: 1366
Reputation: 46
31 / Male / Flag
Joined: Dec 2007
RE: Scrollbars in CL(20152, 20153)
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>

This post was edited on 06-25-2008 at 10:57 AM by Basilis.
[Image: logo1nu1.png]
06-25-2008 10:50 AM
Profile PM Find Quote Report
aNILEator
Skinning Contest Winner
*****

Avatar
...in the wake of the aNILEator

Posts: 3718
Reputation: 90
35 / Male / Flag
Joined: Oct 2003
Status: Away
RE: Scrollbars in CL(20152, 20153)
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.

This post was edited on 06-25-2008 at 10:58 AM by aNILEator.
06-25-2008 10:56 AM
Profile PM Web Find Quote Report
vaccination
Veteran Member
*****

Avatar

Posts: 2513
Reputation: 43
32 / Male / –
Joined: Apr 2005
O.P. RE: Scrollbars in CL(20152, 20153)
quote:
Originally posted by vaccination
I've managed to change all other aspects of the scrollbar fine

8-)

[Image: jumbled.png]
06-25-2008 10:57 AM
Profile PM Find Quote Report
Basilis
Veteran Member
*****

Avatar
Olympiacos CFP

Posts: 1366
Reputation: 46
31 / Male / Flag
Joined: Dec 2007
RE: RE: Scrollbars in CL(20152, 20153)
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.
[Image: logo1nu1.png]
06-25-2008 10:59 AM
Profile PM Find Quote Report
Volv
Skinning Contest Winner
*****

Avatar

Posts: 1233
Reputation: 31
35 / Male / Flag
Joined: Oct 2004
RE: Scrollbars in CL(20152, 20153)
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.
06-25-2008 11:19 AM
Profile PM Find Quote Report
Basilis
Veteran Member
*****

Avatar
Olympiacos CFP

Posts: 1366
Reputation: 46
31 / Male / Flag
Joined: Dec 2007
RE: RE: Scrollbars in CL(20152, 20153)
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.
[Image: logo1nu1.png]
06-25-2008 11:24 AM
Profile PM Find Quote Report
Willz
Senior Member
****

Avatar

Posts: 953
Reputation: 52
36 / Male / Flag
Joined: Jul 2006
RE: RE: RE: Scrollbars in CL(20152, 20153)
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.
06-25-2008 11:36 AM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On