Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Weird tooltip behavior
Message
From
31/10/2005 13:34:53
 
 
To
31/10/2005 13:32:00
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01063688
Message ID:
01063732
Views:
7
>>>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform