Datagrid tooltips

Bob Sneidar bobs at twft.com
Fri Dec 9 10:34:55 CST 2011


Oooh... I am getting ready to put check boxes into a table type datagrid, but only conditionally. That may help. 

Bob


On Dec 8, 2011, at 7:37 PM, Mark Wieder wrote:

> Pete-
> 
> 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 truncateTail
>> 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" & tWidgetNum]
> 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:
> http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the use-livecode mailing list