Re: Set the tooltip of a datagrid

2017-07-12 Thread Bob Sneidar via use-livecode
Well I just discovered an amazing thing. You can get the dgData of a CONTROL of a datagrid and it still returns the data. For instance if you know that the dgLine you want is 3 and the control name is siteid 0003, you can put the dgDataOfLine [3] of field "siteid 0003" into aData and you will

Re: Set the tooltip of a datagrid

2017-07-12 Thread Phil Davis via use-livecode
BUT you can set the toolTipDelay, to speed up or slow down its appearance. That's about it. Phil Davis On 7/12/17 10:54 AM, Bob Sneidar via use-livecode wrote: Yes just figured that out thank you. Initially it wasn't displaying, but I think that was because of an early bug which I already

Re: Set the tooltip of a datagrid

2017-07-12 Thread Mark Wieder via use-livecode
On 07/12/2017 10:47 AM, Bob Sneidar via use-livecode wrote: Okay now my problem is that now the line "show the toolTip of tTarget" generates an error, but it doesn't say WHAT the error is. If I use a try catch and get the error I get this: 69,112,12,1. sitename: Integrated Office Technologies

Re: Set the tooltip of a datagrid

2017-07-12 Thread Bob Sneidar via use-livecode
Yes just figured that out thank you. Initially it wasn't displaying, but I think that was because of an early bug which I already quashed. Apparently there is no command for showing a tooltip. Bob S > On Jul 12, 2017, at 10:52 , Mike Bonner via use-livecode >

Re: Set the tooltip of a datagrid

2017-07-12 Thread Mike Bonner via use-livecode
Are you sure you need that line at all? Seems like once the tooltip is set, it will show up after the tooltipdelay has passed. At least it did for me in my quicky experiment. On Wed, Jul 12, 2017 at 11:47 AM, Bob Sneidar via use-livecode < use-livecode@lists.runrev.com> wrote: > Okay now my

Re: Set the tooltip of a datagrid

2017-07-12 Thread Bob Sneidar via use-livecode
Okay now my problem is that now the line "show the toolTip of tTarget" generates an error, but it doesn't say WHAT the error is. If I use a try catch and get the error I get this: 69,112,12,1. sitename: Integrated Office Technologies Santa Fe Springs 547,112,12 Could it be that for some reason

Re: Set the tooltip of a datagrid

2017-07-12 Thread Mike Bonner via use-livecode
rather than get the data of the line (unkeyed) can you just grab the index, and use that to pick out your tooltip? (barely glanced at this so far, so i might be way off) On Wed, Jul 12, 2017 at 10:36 AM, Bob Sneidar via use-livecode < use-livecode@lists.runrev.com> wrote: > Great tip! (pun

Re: Set the tooltip of a datagrid

2017-07-12 Thread Bob Sneidar via use-livecode
Great tip! (pun intended) So here is what I came up with. Keep in mind that tKeyList is a list of columns I want in the tooltip. The idea is to present the user with a tooltip containing summary information on the datagrid data record. I had to prepend a counter to each key so that it would

Re: Set the tooltip of a datagrid

2017-07-11 Thread Mike Bonner via use-livecode
There should be a couple ways.. Assuming the tooltip data and the displayed data are already associated, you can do as suggested and pass in the popop information as part of the dgdata.. Then in the fillindata you 'set the tooltip of field 1 of me to ... the data that was passed in with the array.

Re: Set the tooltip of a datagrid

2017-07-11 Thread Bob Sneidar via use-livecode
Yup. But now what I want to do is intercept the hover message, or whatever that is that detects I am over a datagrid control, then set the tooltip to a string that represents selected datagrid data. The idea is that even though I have a subset of data actually displaying in the datagrid, I

Re: Set the tooltip of a datagrid

2017-07-11 Thread Mark Wieder via use-livecode
On 07/11/2017 06:11 PM, Bob Sneidar via use-livecode wrote: That is half the battle, but the trick is how to detect I am hovering over a datagrid element in the first place. It's a tooltip. You shouldn't have to do anything special. Here's how I set the tooltip of widgets in the PowerTools

Re: Set the tooltip of a datagrid

2017-07-11 Thread Bob Sneidar via use-livecode
That is half the battle, but the trick is how to detect I am hovering over a datagrid element in the first place. Bob S > On Jul 11, 2017, at 16:54 , Mark Wieder via use-livecode > wrote: > >> Hi all. >> Not sure if anyone has thought of a way to get the

Re: Set the tooltip of a datagrid

2017-07-11 Thread Mark Wieder via use-livecode
On 07/11/2017 04:03 PM, Bob Sneidar via use-livecode wrote: Hi all. Not sure if anyone has thought of a way to get the dgDataOfHover (so to speak) of a datagrid. By that I mean, I would like to display a tooltip of selected data from a table datagrid record whenever I hover over a control of