Dibo, thank you for your immediate answer!
I have tryed your exsample and it works just fine. After pressing the toolbar button I press a DateEdit which is inside the groupbox and it works with first click. The dropdown closes and the calendar appears at the same time, with first click.
With BCButton it does not work at all, as much as you want to click inside the groupbox, until you click once outside it.
If you want, just for reference, you can try the TMenuButton from LuiControls. It works fine in this situation.
I have Windows XP SP3
Lazarus 1.0.12 Stable with FPC 2.6.2
In my case I use BCButton with dropdown menu and when a menuitem is clicked, a new form is created dynamically, in which there are some controls inside a groupbox and they are not working. Until I return in main form, click again the BCButton twice (once to open the dropdown again and once to close it), and then the controls on the dynamically created form are get to work normally.
I think it's somethig with DropDownClosed procedure of TCustomBCButton class. May be I'm wrong of course.
Thank you again!
Waiting for solution.