Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Listbox 1

Status
Not open for further replies.

coder1964

IS-IT--Management
Aug 28, 2003
29
0
0
CA
Hi All,

I would like to copy an effect I saw on a site where the style of the listbox changes on mouse over.

Anybody know how to do this ?

T.I.A.
 
What do you mean exactly by style? And if it changes on mouse over, then the difference can only be seen on the first looks of that listbox, I mean only the main selection box, before you mouse over it, right?

Regards,

cubalibre2.gif
 
Hi,

Thanks for the quick answer.

What I saw was that when you moved the mouse over the listbox the colors all changed. Text, background, scroll bar etc. then when you moved out it all returned to the original colors. It was sort of dull then with the mouseover it changed to bright colors.

I will try and find the site again so I can post the link.

Thanks.
 
A bit busy this afternoon, but may put something together later tonight...

Regards,

cubalibre2.gif
 
just sounds like a normal fstyleformat with maybe some alpha thrown in

have a go with this and see how you get on...list is the instance name

list.onRollOver = function(){
var myStyle = new FStyleFormat();
myStyle.background = 0xffffff;
myStyle.face = 0xFF0000;
mystyle.textColor = 0xFF0000;
myStyle.addListener(this);
myStyle.applyChanges();
}
list.onRollOut = function(){
var myStyle = new FStyleFormat();
myStyle.face = 0x222222;
myStyle.background = 0x333333;
myStyle.textColor = 0x000000;
myStyle.addListener(this);
myStyle.applyChanges();
}
 
Ahhhhhhhhh.

Thank you Bill. Why didnt I think of that!!! I already have such a statement formatting the listbox.

I am off to kick myself for missing something so simple.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top