You need to use Global HotKeys.... search this on Torry.net and you will find a component called fisHotKey which will allow global hotkeys to function. This is the only way I can think of based on the description you sent.
Regards, Simon ----- Original Message ----- From: "Wilfried Mestdagh" <[EMAIL PROTECTED]> To: "Delphi-Talk Discussion List" <delphi-talk@elists.org> Sent: Friday, July 07, 2006 1:59 PM Subject: disable keyboard shortcuts temporary > Hello, > > I have a main form with mainmenu ans shortut keys to several items. But > when I create another form ans show it modal, and I Hide the mainform > then the shortcuts are all working in the new form. If I dont Hide the > main form then the shortcuts are disabled. > > For example: > > procedure TMain.Lijst1Click(Sender: TObject); > var > ShowAll: TShowAll; > begin > ShowAll := TShowAll.Create(nil); > try > Hide; > ShowAll.ShowModal; > finally > Show; > ShowAll.Free; > end; > end; > > In the TShowAll form, all shortcuts of the main form (the one with this > code) can execute. If I put Hide; in comment then not. > > How to prevent this ? > > --- > Rgds, Wilfried > http://www.mestdagh.biz > > __________________________________________________ > Delphi-Talk mailing list -> Delphi-Talk@elists.org > http://www.elists.org/mailman/listinfo/delphi-talk __________________________________________________ Delphi-Talk mailing list -> Delphi-Talk@elists.org http://www.elists.org/mailman/listinfo/delphi-talk