Re:mouse right-click
On 8 Nov 2000 08:48:44 -0800, "Christopher" <McKCon...@cs.com> wrote:
I have a delphi 4 application. When I enter a form and position the
cursor on a TdbEDIT component and right-click with the mouse, all
options other than copy are disabled. Once I enter a keystroke, the
options are enabled. Is there a way to automatically enable these
options when I enter the form?
<<
Chris, the menu is disabled because Dataset isn't in edit mode. You
can call DataSet's Edit method to put it in edit mode, but I'm not
sure is there a good place for that. Your best bet may be to create
this popup menu yourself (you can use standard database actions for
that) and then you can call DataSet.Edit in popup's OnPopup event.
HTH
ain