>>>>>Hi all,
>>>>>I cannot reproduce this problem using native VFP8-9 controls.
>>>>>
>>>>>We subclassed all the VFP controls for use in our applications. The weird behavior is that the column widths of a grid overlaps each other. I have the following tooltiptext values:
>>>>>
>>>>>Column1.TooltipText = "Column " + column1.name + " tooltip"
>>>>>Column1.Header1.TooltipText = "Header of " + column1.name + " tooltip"
>>>>>
>>>>>This is the best representation of the grid:
>>>>>
>>>>>
>>>>> Column1Hdr | Column2Hdr |
>>>>> ^ (mouse pointer here displays: "Column Column1 tooltip")
>>>>> ^ (mouse pointer here displays: "Header of Column2 tooltip")
>>>>> ^ (mouse pointer displays: "Column Column1 tooltip")
>>>>>
>>>>>
>>>>>Note that the mouse pointer is hovering on the Headers. At the first location of the mouse pointer, it thinks that it is still at column1. The second is fine. The third location, after the separator, it still thinks its at the second column but not at the header.
>>>>>
>>>>>Is anyone experiencing this weird behavior? Happens in both versions 8 and 9.
>>>>
>>>>sure
>>>
>>>Meaning you get the same weird behavior?
>>
>>Yes. The calculation of the position of the mouse respect to the column is wrong.
>>A similar thing I have also observed within the cells
>>
>>>Do you have a workaround?
>>
>>A way( i doesn't try it ) is
>>
>>*Column.TooltipText_Access
>>RETURN IIF(MROW(0,3) < OBJTOCLIENT(m.this,1) + OBJTOCLIENT(this.Controls[1],4);
>> , this.Controls[1].TooltipText;
>> , m.this.TooltipText)
>>
>
>Hi Fabio,
>Couldn't make this to work. The problem is that it does not return the reference to the correct column in the first place.
Of course ! :)
try
WITH SYS(1270)
RETURN IIF(MROW(0,3) < OBJTOCLIENT((.Controls[1],1) + OBJTOCLIENT(.Controls[1],4);
, .Controls[1].TooltipText;
, .TooltipText)
ENDWITH
>I also looked at the list of fixes in the service pack of version 9 and did not see any reference to this bug. It's sad.
Not fixed.