pete at mollysrevenge.com
Fri Dec 9 11:44:20 CST 2011
Thanks Mark. What you're doing seems a little different than what I need
but you reminded me I could use FillInData to set the tooltip and that
should take care of it I think.
On Thu, Dec 8, 2011 at 7:37 PM, Mark Wieder <mwieder at ahsoftware.net> wrote:
> Thursday, December 8, 2011, 11:43:37 AM, you wrote:
> > I know the datagrid has a dgTooltip property that displays when the user
> > hovers over a column header but has anyone come up with a way to have a
> > tooltip unique to each row?
> > For example, let's say I have a column that uses the datagrid
> > function so the data in the column is abbreviated with "..." at the end.
> > I'd like to have a way to show the user the complete data in the
> > row/column by hovering over it and displaying a tooltip.
> Here's how I do this in PowerTools: I've got a datagrid that contains
> thumbnail images, each of which may have a tooltip attached. When I'm
> setting up the array for the datagrid I do:
> put the tooltip of control id tWidgetGroup of stack tStackFile into
> tArray["ToolTip" & tImageNum]
> then in the behavior script of the datagrid in FillInData:
> if pDataArray["Tooltip" & tWidgetNum] is not empty then
> set the tooltip of image tWidgetNum of me to pDataArray["Tooltip" &
> end if
> so you could do the same with the text field instead of an image.
> -Mark Wieder
> mwieder at ahsoftware.net
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
Molly's Revenge <http://www.mollysrevenge.com>
More information about the use-livecode