Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
>Dear all,
>
>In VFP 6, I can doubleclick on a grid row to have further action. However, I fail to do that at VFP 9. Have I forgetton something to set?
>
>Grid.Colum.Text.DoubleClick()
>Grid.enable=.t.
>Grid.readonly=.t.
Hi,
Still the same in VFP9.
("DoubleClick" instead of "DblClick" is only a typo, right?)
On the other hand, there are several possibilities to prevent code in gridX.ColumnY.Text1.DblClick(), for instance
when there are no records in grid.RecordSource (because of a filter or missing Requery() or so)
or when grid.AllowCellSelection=.F.
or when "Text1" is not the column's CurrentControl
or when you have code only in one of many columns' textbox.DblClick()
or when your code causes "grid reconstruction" by recreating the grid.RecordSource alias at runtime
and so on.
hth
-Stefan
Précédent
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