>>>>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)
>
Very good. Thanks a lot Fabio. I will try this and reply you again if the code works.
ramil
~~ learning to stand still