Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Highlighter
Message
 
À
01/04/2003 03:08:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00772251
Message ID:
00772400
Vues:
5
This message has been marked as the solution to the initial question of the thread.
>My myForm.init() only have this few code.
>
>SET CLASSLIB TO libs\ghl6.vcx ADDITIVE
>THIS.AddObject('gridHighlighter1','gridHighlighter')
>THIS.ridHighlighter1.cHostName = 'grdStk'
>
>Once I modify it to
>
>SET CLASSLIB TO libs\ghl6.vcx ADDITIVE
>THIS.pageFrame1.pgList.AddObject('grid1','grid')
>THIS.pageFrame1.pgList.AddObject('gridHighlighter1','gridHighlighter')
>THIS.pageFrame1.pgList.gridHighlighter1.cHostName = 'grdStk'
>THIS.pageFrame1.pgList.RemoveObject('grid1')
>
>then it run ok. Or I need to change my grid name form grdStk to grid1 to make the ghl5.vcx functions properly.

Hi E C,

Grid Highlighter documentation clearly states:

v. 3.7.1 02/26/2001.
This version allows you to instantiate Grid Highlighter at the runtime. I still think that it is better to Grid Highlighter on the form at design time, but I had several requests for this feature, so I implemented it. The name of the grid to work with can be passed to GridHighlighter.Init() like this:
Thisform.AddObject("Gridhighlighter1", "Gridhighlighter", "myGrid1")
In you case that would be:
Thisform.AddObject("Gridhighlighter1", "Gridhighlighter", "grdStk")
Since you did not pass the grid name to AddObject method as the third parameter, GHL assumed that the name is the default value "grid1".
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform