Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Grid not refresh properly if it has focus. what to do?
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement