Tbutton retaining focus in embedded form

Giganews Newsgroups
Subject:Tbutton retaining focus in embedded form
Posted by: Stephen Brown
Date:Sat, 27 Feb 2010

Hopefully someone will have a quick answer for this, I can usually find everything I need through googling the problem but not in this case

In Delphi 2010 I have a form with some navigation buttons and a menu that are linked to an action list and a panel

When I press a button I show the child form embedded in the panel, when I select a menu it shows the window floating.. all works great, however..

The navigation button in the parent form is always focussed, the glyph is flashing (annoying!) and more importantly the enter key in the child form does not work as it always triggers the parent navigation button

Setting "default" property to false, the "tabstop" property to false etc makes no difference, there is no property in the tactionlist that seems to make any difference and setting focus to say a memo added in the parent still leaves the button focussed and waiting for the enter key.

Anyone had similar problems, is it a bug in the VCL or a problem between the keyboard and computer ?

Replies