Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding Click Events to Grid Headers
Message
 
À
09/12/1999 21:07:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00301307
Message ID:
00301926
Vues:
34
Well, the Headers work fine with your suggestions. But, I also want to add code to the textbox dblclick (for when the user wants to select a row), but that does not work. In fact, when that particular text box has focus on the grid, it is solid white with no data visible. Here is the code that I use to remove/add the headers and textboxes. Can you provide me with a solution?

Thanks in Advance,

Jeff Elmore


------


PARAMETERS oColumn

WITH oColumn
.RemoveObject("Header1")
.RemoveObject("Text1")
.AddObject("Header1","fwHeader")
.AddObject("Text1","fwText")
ENDWITH

DEFINE CLASS fwHeader AS Header
PROCEDURE Click
IF NOT EMPTY(This.Tag)
cTag = This.Tag
SET SAFETY OFF
INDEX ON &cTag TO tempIndex.idx
SET SAFETY ON
This.Parent.Parent.Refresh()
ENDIF
ENDPROC
ENDDEFINE


DEFINE CLASS fwText AS TextBox
BorderStyle = 0
Margin = 0
ForeColor = RGB(0,0,0)
BackColor = RGB(255,255,255)
BackStyle = 0

PROCEDURE DblClick
WAIT WINDOW
ENDPROC
ENDDEFINE
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform