Hi Arnaud,

No, I’m manipulating the picture directly inside the list box. Not as efficient 
as I like and I haven’t tried Miyako’s latest suggestion which might be more 
efficient, but the whole process only takes 1-2 milliseconds interpreted, so 
fast enough.

Here is more of the code (I’ve left out the code that handles tracking and 
hiding previously shown SVG elements:

GET MOUSE($lMouseX;$lMouseY;$lMouseButton)
LISTBOX GET CELL POSITION(lbRanchMetrics;$lMouseX;$lMouseY;$lCol;$lRow)
If ($lRow>0)
        LISTBOX GET CELL 
COORDINATES(lbRanchMetrics;$lCol;$lRow;$lCellLeft;$lCellTop;$lCellRight;$lCellBottom)
        $lMouseInSVGX:=$lMouseX-$lCellLeft
        $lMouseInSVGY:=$lMouseY-$lCellTop
        $SVGtID:=SVG Find element ID by 
coordinates(agRM_Graph{$lRow};$lMouseInSVGX;$lMouseInSVGY)
        $tSVG:=SVG_Open_picture (agRM_Graph{$lRow}) 
        $tRef:=SVG_Find_ID ($tSVG; SVGtID)
        SVG_SET_ATTRIBUTES ($tRef;"visibility";"visible")
        agRM_Graph{$lRow}:=SVG_Export_to_picture ($tSVG)
        SVG_CLEAR ($tSVG)
End if

--
Cannon.Smith
Synergy Farm Solutions Inc.
Hill Spring, AB Canada
403-626-3236
<can...@synergyfarmsolutions.com>
<www.synergyfarmsolutions.com>


> On Aug 15, 2018, at 11:39 AM, Arnaud de Montard via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> BTW, it seems finally you use a picture var over the cell? Makes me think 
> that besides getting blind, my english is ununderstandable ;-)

**********************************************************************
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to