PDA

View Full Version : Tooltip component?


whisperstorm
01-27-2004, 11:10 AM
I dont see something like this yet in the 2.0 components, so I thought I might teach myself more about lzx by trying to do the "right thing" and creating a new component derived from some base component. Antun, et. al. where should I start? Which base component would be the best one to use to create a tooltip widget?

metasarah
01-29-2004, 01:21 PM
To create a tooltip, I would extend basecomponent. From that you will be able to have it use styles (by defining an _applystyle method). You will want to set focusable=false.

If I were creating a tooltip, I would likely do something like this:

<button>
<tooltop text="info text"/>
</button>

Then have it create a delegate for its parents onmouseover and onmouseout events, and then start a timer onmouseover that would show the tooltip if the onmouseout event hadn't happened already.

Sarah

DanMurphy
06-15-2005, 10:17 AM
http://www.laszlosystems.com/developers/community/forums/showthread.php?s=&threadid=2732&highlight=Tooltips