I am now coming again with another query
Description of my problem is as follows:
In my entry form I have some tool buttons eg., Add, Modify, Delete etc. I also have 2 buttons Save and Cancel, which are initially disabled. There are also some textboxes (or comboboxes) which are initially disabled. Now, when the user clicks on Add button (toolbar button), toolbar becomes disabled and Save, Cancel enabled, Textboxes (and Comboboxes) become enabled. And first textbox gets the focus. It runs fine when user clicks on Add button it runs fine, but when user uses keyboard (Alt+A) everything is ok, but the cursor at the textbox is not blinking. User has to press another key to make it blinking and type. If you want I shall make a small sample for this. In the meantime my old project can show you the problem. Please download download/file.php?id=382 and compile. Then please open Expense Head Setup form and try to add using both Mouse and Keyboard (please check ExpMst.prg)
Code: Select all
static PROCEDURE ActivateEdit
frmExp.Grid_1.Enabled := .f.
frmExp.txtSearch.Enabled := .f.
frmExp.txtExpnm.enabled := .t.
frmExp.txtAmt.enabled := .t.
frmExp.txtRem.enabled := .t.
frmExp.cmdSave.Enabled := .t.
frmExp.cmdCancel.Enabled := .t.
frmExp.ToolBar_1.Enabled := .f.
frmExp.txtExpnm.SetFocus
RETURN
With best regards.
Sudip