Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Samir H.
  Where is Samir H.?
 Yogyakarta
 Indonesia
 Samir H.
 Tags
Subject: Tooltips don't show in column & header
Thread ID: 292886 Message ID: 292886 # Views: 69 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Grids
Date: Saturday, January 29, 2011 6:02:46 PM         
   


Hi all
The tooltiptext of the columns and headers are not displayed. The form's showtips is .T.
I use a grid class, with the following column and header classes:
* these are the grid classes (column & header)
DEFINE CLASS clm as Column 	
	fontname = "MS Sans Serif"
	HeaderClassLibrary = '.\prog\udf.prg'	
	HeaderClass = 'hdr'			
ENDDEFINE 
DEFINE CLASS hdr as Header 	
	fontname = "MS Sans Serif"
	fontbold = .t.
	alignment = 2
	backcolor = RGB(192,192,192)
ENDDEFINE 



I've upgraded to VFP9 SP2 a few weeks ago. In VFP9 the tips were working. I only noticed today that they don't work anymore. I suspect that the cause is SP2, since I don't recall having changed anything in my classes.
I've put a commandbutton to test for tips, in case some event/method did change either the form's showtips property or the grid's tooltips:
* form.cmdTestToolTip.Click()
thisform.ShowTips=.t.
thisform.cmdAdd.ToolTipText='Add'	&& works

* All below do not work
thisform.grid1.columns(1).hdr1.tooltiptext = 'This is header of column 1'
thisform.grid1.columns(1).tooltiptext = 'This is column 1'

thisform.grid1.columns(2).hdr1.tooltiptext = 'This is header of column 2'
thisform.grid1.columns(3).tooltiptext = 'This is column 3'

* This one works!
*thisform.grid1.tooltiptext = 'This is grid tooltip'


Does anybody have an idea on where the problem could be?

Regards
Samir

ENTIRE THREAD

Tooltips don't show in column & header Posted by Samir H. @ 1/29/2011 6:02:46 PM
RE: Tooltips don't show in column & header Posted by Vishal Anand @ 1/30/2011 8:14:58 AM
RE: Tooltips don't show in column & header Posted by Samir H. @ 1/30/2011 10:55:13 AM
RE: Tooltips don't show in column & header Posted by Vishal Anand @ 1/30/2011 2:12:37 PM
RE: Tooltips don't show in column & header Posted by Tamar Granor @ 1/31/2011 10:56:39 PM
RE: Tooltips don't show in column & header Posted by Samir H. @ 2/1/2011 4:17:35 AM
RE: Tooltips don't show in column & header Posted by Stefan Wuebbe @ 2/1/2011 3:06:03 PM
RE: Tooltips don't show in column & header Posted by Tamar Granor @ 2/1/2011 10:33:32 PM
RE: Tooltips don't show in column & header Posted by Samir H. @ 2/2/2011 3:32:07 AM
RE: Tooltips don't show in column & header Posted by Tamar Granor @ 2/2/2011 10:30:28 PM
RE: Tooltips don't show in column & header Posted by Samir H. @ 2/2/2011 11:32:45 PM
RE: Tooltips don't show in column & header Posted by Tamar Granor @ 2/3/2011 10:33:58 PM
RE: Tooltips don't show in column & header Posted by Stefan Wuebbe @ 2/3/2011 7:59:22 AM
RE: Tooltips don't show in column & header Posted by Samir H. @ 2/3/2011 12:34:02 PM
RE: Tooltips don't show in column & header Posted by Vishal Anand @ 2/3/2011 4:54:46 PM
RE: Tooltips don't show in column & header Posted by Tom Saddul @ 1/31/2011 9:54:56 AM
RE: Tooltips don't show in column & header Posted by Samir H. @ 1/31/2011 1:30:57 PM
RE: Tooltips don't show in column & header Posted by Tom Saddul @ 2/1/2011 1:12:12 PM
RE: Tooltips don't show in column & header Posted by Chris Chamberlain @ 2/2/2011 9:31:12 AM
RE: Tooltips don't show in column & header Posted by Samir H. @ 2/2/2011 10:26:42 AM
RE: Tooltips don't show in column & header Posted by Chris Chamberlain @ 2/2/2011 11:03:07 AM
RE: Tooltips don't show in column & header Posted by Chris Chamberlain @ 2/3/2011 8:53:43 AM
RE: Tooltips don't show in column & header Posted by Samir H. @ 2/3/2011 12:38:04 PM
RE: Tooltips don't show in column & header Posted by Chris Chamberlain @ 2/3/2011 1:38:15 PM
RE: Tooltips don't show in column & header Posted by Samir H. @ 2/3/2011 2:44:31 PM
RE: Tooltips don't show in column & header Posted by Chris Chamberlain @ 2/3/2011 3:33:49 PM
RE: Tooltips don't show in column & header Posted by Samir H. @ 2/3/2011 3:47:46 PM