Menu

#141 DynAPI 2 gui list

open
nobody
5
2002-05-08
2002-05-08
Anonymous
No

The DynAPI gui list widget gives errors on
Macintosh ie 'Permission Denied'.

As far as I can see this is caused by setting the
font color in the mouseout event of the list items:

ListItem.listevents.onmouseout = function (e) {
var o = e.getSource();
if (!o.selected && o.isMouseOver) {
o.setBgColor(o.itemStyle.bgcolor);
o.setFontColor(o.itemStyle.textNormal);
}
o.isMouseOver = false;
};

Change the line
o.setFontColor(o.itemStyle.textNormal);
to:
o.font.color = o.itemStyle.textNormal;
and the errors are gone (on Macintosh)

Another problem in the list widget is the fact that
the list object does not fire mouseover events
(again on macintosh, on windows I didn't see this
problem) when mousing over the list items, so
there is no way to catch the mouseovers.

I added an 'parent.invokeEvent('mouseoveritem')'
and 'parent.invokeEvent('mouseoutitem')' to the
mouseover and mouseout events of the list item

This seems to solve the problems for me, but I did
not test it on anything else then IE5.1 on mac and
IE 5.0 on Win

I hope this is of any use to someone.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.