Shoutbox

PSM--> Normal invisible and MouseOver visible? - 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: PSM--> Normal invisible and MouseOver visible? (/showthread.php?tid=87071)

PSM--> Normal invisible and MouseOver visible? by DennisMartijn on 11-04-2008 at 04:24 PM

Hay! I'm looking for a way to hide and show the Personal Message element in the contact list.
This is what I would like to see:
Normal state: personal message not visible
mouse over state: personal message visible

So basicly, when I hover my mouse over the psm area, it gets visible.

I tried setting a 2nd, [MouseFocused] tag to the existing part of code of the 923 style, but that results in messenger crashing all together when hovering the mouse over the psm.

code:

code:
}
labelrichedit[id=atom(idPSMText)][class="PSM"]
{
contentalign:endellipsis;
enabled:false;
Alpha:0;
}

labelrichedit[id=atom(idPSMText)][class="PSM"][MouseFocused]
{
contentalign:endellipsis;
enabled:false;
}

The above code doesn't work. Is there an alternate method of dynamic hiding, or am I doing something wrong?
RE: PSM--> Normal invisible and MouseOver visible? by SmokingCookie on 11-04-2008 at 06:49 PM

visible:false?

That's what I guess..

Or try altering the alpha..


RE: PSM--> Normal invisible and MouseOver visible? by ryxdp on 11-05-2008 at 06:05 AM

It should work if you add Alpha: 255; to the [mousefocused] state, because DirectUI elements inherit properties from its previous state. For example, if you had an element with normal, mousefocused and pressed states, and you only specified the image file in the normal state, it would stay that way, but if you specified different images for each, the element would visibly change. This applies to all properties and states, as far as I know. The WLM team don't exactly follow this much, it'd probably save a heap of space, but oh well.

Hope this helps :)


RE: PSM--> Normal invisible and MouseOver visible? by DennisMartijn on 11-05-2008 at 01:47 PM

Ok, so I tried setting both elements to the same "language". both have a specified alpha.
But, this crashed messenger altogether, and not just when hovering over the psm.
it might has something to do with the wrong style file, or the wrong element, so I'm gonna look in other styles too.
ill get back to this.

Edit: I thought of an alternate method.
Wrapping a blank element over an excisting one, and giving it a certain button state, that when the button is pressed, the element appears or dissapears (preferably with dissapeared as default). would this be possible?


RE: PSM--> Normal invisible and MouseOver visible? by SmokingCookie on 11-05-2008 at 03:18 PM

I'm not sure.. It's rather "omslachtig" (I suppose you're Dutch, as Dennis and Martijn are Dutch names? :P ).
Also, a blank element is "white", or the user's colour scheme. A transparent (see-through) element won't work. You'll see the element behind it (because it's transparent).


RE: PSM--> Normal invisible and MouseOver visible? by vaccination on 11-05-2008 at 03:33 PM

If i'm understanding you correctly, you made the "labelrichedit[id=atom(idPSMText)][class="PSM"][MouseFocused]" element up?

In which case I'm pretty sure this won't work, messenger doesn't execute this code, it's just a reference. (AFAIK)

Adding [MouseFocused] to a element won't do anything because messenger doesn't know what that is. Reason it's crashing is probably due to a null reference error of some kind.




This is all based on how I believe messenger works, I've not actually looked into this so ;p


RE: RE: PSM--> Normal invisible and MouseOver visible? by DennisMartijn on 11-05-2008 at 08:50 PM

quote:
Originally posted by vaccination
If i'm understanding you correctly, you made the "labelrichedit[id=atom(idPSMText)][class="PSM"][MouseFocused]" element up?

In which case I'm pretty sure this won't work, messenger doesn't execute this code, it's just a reference. (AFAIK)

Adding [MouseFocused] to a element won't do anything because messenger doesn't know what that is. Reason it's crashing is probably due to a null reference error of some kind.




This is all based on how I believe messenger works, I've not actually looked into this so ;p

Hm, ok. So I can scrap that from the list.. wich brings me to nothing.

Isn't there any other way of hiding such elements, but let them reappear with the click of a button or a mouseover? The chat window has a similair button, the one next to the dp's that can hide them. I can't find the code for that though?
RE: PSM--> Normal invisible and MouseOver visible? by Basilis on 11-05-2008 at 08:58 PM

Try searching for the image id (the button that hides the DPs) in the style file. Then, you will find which element it is (e.g. ai412) and you will be able to find it in the definition file. :)


RE: PSM--> Normal invisible and MouseOver visible? by vaccination on 11-05-2008 at 10:37 PM

you can't do it, it's simply not possible.

You can't make something do something it's not programmed to do.


RE: RE: PSM--> Normal invisible and MouseOver visible? by Willz on 11-05-2008 at 11:06 PM

quote:
Originally posted by Basilis
Try searching for the image id (the button that hides the DPs) in the style file. Then, you will find which element it is (e.g. ai412) and you will be able to find it in the definition file.

That won't work.

quote:
Originally posted by vaccination
you can't do it, it's simply not possible.

You can't make something do something it's not programmed to do.

Vax is right. You can't take something like the show/hide dp cmdid and then make it hide something else.

All of the cmdid are specifically programmed to do a certain action. They call on certain elements with a certain class, id, content and element type. You can't change that since its all hard coded into Messenger itself.

quote:
Originally posted by SmokingCookie
Also, a blank element is "white", or the user's colour scheme.

A blank element is just blank. It has no formatting applied to it so yeah.