PRB: WhatsThisHelp Does Not Work on Objects in a Grid (249622)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
- Microsoft Visual FoxPro for Windows 6.0
This article was previously published under Q249622 SYMPTOMS
When trying to use WhatsThisHelp to display the help for an object within a grid, the help topic for that object is not displayed. Instead, the help topic for the grid is displayed. If there is not a help topic assigned to the WhatsThisHelpID for the grid, one of these two messages may appear:
No help topic is associated with this item.
or
Cannot find the requested help topic. This link may be incorrectly authored. Use the search or the index to find the topic.
RESOLUTION
The following code displays the help topic for the text box control when one of the first three columns of the grid is clicked on using WhatsThisHelp. Otherwise it sets the WhatsThisHelpID to show the help for the grid. Add more CASE statements to continue showing help for the rest of the columns in the grid.
NODEFAULT
DO CASE
CASE MCOL(THISFORM.NAME,3) > 18 + THIS.LEFT AND ;
MCOL(THISFORM.NAME,3) <= 18 + THIS.LEFT + ;
THIS.column1.WIDTH
nWhatsThisHelpID = 1342177844 && help topic number of textbox.
CASE MCOL(THISFORM.NAME,3) > 18 +THIS.LEFT +THIS.column1.WIDTH ;
AND MCOL(THISFORM.NAME,3) <= 18 +THIS.LEFT + ;
THIS.column1.WIDTH + THIS.column2.WIDTH
nWhatsThisHelpID = 1342177844
CASE MCOL(THISFORM.NAME,3) > 18 +THIS.LEFT +THIS.column1.WIDTH ;
+ THIS.column2.WIDTH AND MCOL(THISFORM.NAME,3) <= 18 ;
+ THIS.LEFT + THIS.column1.WIDTH + THIS.column2.WIDTH + ;
THIS.column3.WIDTH
nWhatsThisHelpID = 1342177844
OTHERWISE
nWhatsThisHelpID = 1342177839 && help topic number of grid.
ENDCASE
DODEFAULT(nWhatsThisHelpID)
Modification Type: | Major | Last Reviewed: | 1/5/2000 |
---|
Keywords: | kbCodeSnippet kbContainer kbCtrl kbDesigner kbDSupport kbprb KB249622 kbAudDeveloper |
---|
|