Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid not refresh properly if it has focus. what to do?
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Grid not refresh properly if it has focus. what to do?
Divers
Thread ID:
00134053
Message ID:
00134053
Vues:
59
having two grid problems.

1) grid will not refresh properly if it has focus (if there are child records, points to correct record but shows the entire table). unfortunately the grid is the only readonly = .f.. does not make sense to set focus anywhere else. tried to setfocus on something, grid1.refresh, then grid1.setfocus. no luck.

2) if there are no child records, the last record always flashes on the grid for a split second (long enough to read) before going blank. this flashing is driving me crazy. put messageboxes everywhere and it always shows the child table at eof. any suggestions?

a little background. i have a toplevelform with a pageframe. page1 has two different containers, each with their own grid. both grids are child grids with their relationship established in the grid properties. starting to think that the pageframe (activate), setfocus and child grids are one hell of a problematic combination.

PAGE1.ACTIVATE && pseudo code
lockscreen = .t.
incorrect.container_and_grid..visible = .f.
correct.container_and_grid.visible = .t.
perform_calculations
correct.container_and_grid.refresh
lockscreen = .f.

thanks - brenda
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform