:(
i am explain from the start,
i have a toolbar which is containing first-prior-next-last-new-save-revert-edit-delete-find-print-quit buttons each buttons click events runs _screen.activeform.new() and so on..
i've form which is containing first-prior-next-last-new-save-revert-edit-delete-find-print-quit methods
also changed_assign method
*inside code
LPARAMETERS vNewVal
otoolbar.cmdsave.enabled = m.vNewVal
otoolbar.cmdrevert.enabled = m.vNewVal
otoolbar.cmdnew.enabled = !m.vNewVal
otoolbar.cmdfirst.enabled = !m.vNewVal
otoolbar.cmdlast.enabled = !m.vNewVal
otoolbar.cmdnext.enabled = !m.vNewVal
otoolbar.cmdprior.enabled = !m.vNewVal
otoolbar.cmdedit.enabled = !m.vNewVal
otoolbar.cmddelete.enabled = !m.vNewVal
otoolbar.cmdfind.enabled = !m.vNewVal
otoolbar.cmdprint.enabled = !m.vNewVal
otoolbar.cmdquit.enabled = !m.vNewVal
i've form which is containing addmode,editmode,changed,lcalias
all of controls (textbox,combobox etc.. my own class) interactivechangeevets sends
_vfp.ActiveForm.changed = .t.
_vfp.ActiveForm.addmode = .t.
_vfp.ActiveForm.editmode = .t.
save-revert method sends
thisform.addmode = .f.
thisform.editmode = .f.
by this way toolbar buttons behaviour as situation
until here all of actions OK
i wantto add keypress actions now ?
when addmode=.t. or editmode=.t. only should execute save-revert (as my example F3-F5) otherwise
the others can execute
ohh at end of hope to explain this time :)
how?