Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MSHFLEXGRID Control ToolTipText not Available

Status
Not open for further replies.

gaps

Programmer
Jun 4, 2004
8
US
I want to use ToolTipText property in VFP9, but it gives me 'Unknown Error'.

In MSHFLEXGRID help shows ToolTipText as property. Can someone help me on this please.

This.ToolTipText="Tool Tip Text"

Thanks in Advance
 
What is "MSHFLEXGRID"?

Anyway, tooltips are for columns, headers or the current contol in the column. put your code in the Init() of either and it will work...
 
Thanks for your reply.

MSHFLEXGRID is activeX control which is like DataGrid with more functionality.

Error stating that ToolTipText property does not exist for this control, but same control can be use in VB with ToolTipText property.
 
Gaps,

I can't see any Tooltiptext property for this control -- not in the property sheet, and not in Intellisense.

Are you sure we're talking about the same control? The Flexgrid is officially the Microsoft FlexGrid control. I'm not sure where the name MSHFLEXGRID comes from.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro tips, advice, training, consultancy
Custom software for your business
 
Mike

I think he means Microsoft Hierarchical Flexgrid control also known as MSHFlexgrid.
It should listed in your controls in Foxpro.
But it does not seem to have a tooltip option.


Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
ReFox XI (www.mcrgsoftware.com)
 
Thank you all for reply

I checked again with VB6 & same control has ToolTipText Property & I checked in form in MouseMove event & it works very well in VB6. VB6 also use same file as VFP9, MSHFlexGrid.ocx & MSFlexGrid.ocx, but it's strange that ToolTipText Property is not available in VFP9. There may be a bug.
 
Gaps,

I can't see any reason why a property should be visible in VB but not in VFP - but what do I know? If you find the solution, let us know.

By the way, I'm curious to know why you're using this particular control. I've never seen it used in a VFP app before. Does it have any advantages over the VFP grid or the Microsoft Listview?

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro tips, advice, training, consultancy
Custom software for your business
 
Many functions like Allow Row Selection, Allow Big Selections, merge rows & columns, wordwrap, better cell control, different color set properties, TextMatrix, Cell Formats & many more, which I needed is not offered by Grid Control & MSFlexGrid control.
 
MikeL
Another advantage you have with the flexgrids (both flavors)
is you can change the individual row size and make it represent two rows on the next column (hard to explain)
but look at the second image here:


Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
ReFox XI (www.mcrgsoftware.com)
 
Mike G,
Seems like a very usefull OCX to me.
Do we have to purchase such an OCX or can we download (and use in app) from MS for free?
-Bart
 
Mike,

Thanks for that. I don't have an immediate need for this, but it looks like it could be useful. I'll bookmark your article, and experiment with the FlexGrid when I get time.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro tips, advice, training, consultancy
Custom software for your business
 
 
Actually, I don't think you need to download it. I think it's one of the ActiveX controls that come with VFP (6.0 to 9.0). But the link to the Help and examples is useful, as there doesn't seem to be any documentation with the control itself.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro tips, advice, training, consultancy
Custom software for your business
 
Mike,
I think you'r right.
I found the OCX's in map windows\system32.
-Bart
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top