Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid refreshing
Message
De
29/06/1999 21:24:50
 
 
À
29/06/1999 15:00:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00233538
Message ID:
00235653
Vues:
31
>Thanks for the info on my objects being reset after resetting the recordsource, I thought I was going crazy. Question: I made a class based on the original grid and placed that on the form. When I try to manually set the objects in the init of the grid class, I get a source not found error. I made sure my controlbound property was set to .f. before trying to set it manually. Should I be resetting all these properties someplace other than the init of the grid class?




For me, there is a bwtable.zip (Browse Table for current directory)

At Init, It will Remove all textbox and Re-Add with My pre-defined class.
Even Header you can remove-n-readd but there is NO Visual Class for header, you need to write a header class define in a .prg and
Set Procedure To myLibs.prg Additively

For grid setting, you can set any grid setting after the .columncount = -1
(the reset line...)

Benefit:
- You can add your favour class in grid.
e.g. use file section txtdate for date field in grid...
- Fix the IME problem (a known bug VFP5 but fixed already in VFP6)
on any text field, IME input window will automatically come up.

For your cases, maybe a bug for CreateObject(),
you need first Select the Recordsource area Before reset the grid!
Otherwise, it prompt out a openfile dialog box and ask for work area... ~_~

i.e.

Select nextGridRs
Thisform.grid1.columncount = -1
THisform.grid1.recordsource = "nextGridRs"
Thisform.grid1.init()
...
The weak wait for chance, The strong bid for chance,
The clever notch up chance, but The merciful give you chance.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform