I have run into this. The parent form gets the key event first. You could trap the key events at the form level. (I.E. set keypreview := true and use form keypress event for example) and handle the events in code on the child form. If it's a standard dialog (with no form.keypress), see below
Be sure you are not dropping the key event in the main form before it gets to the child form. Such as handling events at the form level as above and setting key := #0, or the active control could be setting it to zero in it's key event. If you run into this, you could use the following code to make sure the child form gets its key events: TForm.keypress(); begin //code to handle various key events. If childform <> nil Then key := #0; //<-- do this end; Dave --- "Jamie L. Mitchell" <[EMAIL PROTECTED]> wrote: > Hello All: > > I am having trouble getting Short-Cuts for certain > forms to work. > > I have a popup dialog made from a Tform with a > TjvToolbar. Several of > the toolbar buttons have drop down menus > (TjvPopupMenus). I have > connected a TActionList to the menus and buttons and > assigned > short-cut keys to most of them. At run-time, it > works great - the > short-cuts all fire. > > I have another dialog with the same type components > that has been set > up (as far as I can tell), identically. In this > one, none of the > short-cuts work. The only difference that I can > discern between the > form that works and the form that does not is that > the one that does > not work is attached to another form at run time. > Both the working > and non-working forms are created dynamicaly. But, > the one that works > is called via ShowModal on its own. The one that > does not is parented > by another form which is then called using > ShowModal. They look > identical at run time. Any ideas? If a form is > hosted by another > form or a panel control, is there some sort of magic > that needs to be > done to get the short-cuts passed to the hosted form > from the host? > > Thanks > jamie > > ____________________________________________________________________________________ Need Mail bonding? Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users. http://answers.yahoo.com/dir/?link=list&sid=396546091

