Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Header Click - How to do
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01419010
Message ID:
01419021
Vues:
67
>Hi Mike,
>
>You're binding to the grid Click. To bind to a header
>
>  BINDEVENT(.header1,'Click',thisform,'GetAdjUnits')
>
>

If you examine the code, I have a with .header1 endwith loop with the bindevent inside. that's why I used this. Are you saying that I should put header1 instead?, inside the with/endwith will cause an error, so I need to place it outside the loop? or...
TIA,
Mike

>
>>
>>I don't fully understand that. This is what i.ve tried.
>>
>>	WITH .column6
>>		.ALIGNMENT=0
>>		.CONTROLSOURCE=lcSource+'.'+'adjUnits'
>>		WITH .header1
>>			.CAPTION='Adj Units'
>>			.ALIGNMENT=7
>>			.BACKCOLOR=RGB(255,255,128)
>>			BINDEVENT(this,'Click',thisform,'GetAdjUnits')
>>		ENDWITH
>>		.BACKCOLOR=RGB(255,255,128)
>>		.WIDTH=60
>>	ENDWITH
>>
>>This is a snippet of code from a method in the grid called setgrid. This is called after the data is gathered prior to populating it. It is also called after the grid is empty to keep the grid visinle and looking the same as opposed to an empty box.
>>
>>I guess I need a bit of a hint on how to use bindevents
>>
>>TIA,
>>Mike
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform