>>>>>>>Dear All,
>>>>>>>I have a grid in my form. this grid have 3 column. in column1 i must show 150 characters. i want to show only some part of this field , but when i move mouse pointer on it, the field content shows in tooltip text.
>>>>>>>what is the best method for this?
>>>>>>>thanks and excuse me for my english.
>>>>>>
>>>>>>How do you ensure that Column1 shows only 150 chars?
>>>>>My field is 150 chars, in grid column only 50 chars ( for example ) shows. because grid column width is shorter than 150. i want to show all chars in tooltip.
>>>>
>>>>Do you want to have it when column.textbox gets focus, or just by moving mouse over it?
>>>
>>>just by moving mouse over it
>>
>>I have a feeling that you should rethink your interface design. Maybe, your client could be satisfied with auto-increasing column width when mouse is over the column?
>NO
>I see a code sample that in MouseEnter Event of textbox was below code:
>this.tooltiptext = m.this.value
>and this work very good, but when i put this code in grid textbox , it dont work!
>why? my grid column is Enabled=.F.
Yes, you would have to set a focus to a textbox, that's why I asked if it's Ok for you. Otherwise, you get column events only available, and no way to tell what is textbox.value.
Btw, you could set Form.ShowTips=.T. and try it. It will not work smoothly but maybe it's sufficent for you?
Edward Pikman
Independent Consultant