I have a form that contains several buttons on top, and form container in the middle. I'm using BilleniumSoft's TFormContainer for this. Basically, the user clicks one of the buttons, and the appropriate form is shown in the container. However, on one particular button/form, I'm getting an error in the debugger. It says "Cannot focus a disabled or invisible window." Here's the code that occurs when the user clicks the button to change to this form:
Procedure TfrmMain.PageButtonClick(Sender: TObject);
currentPageIndex := (Sender As TComponent).Tag;
; // I'm ignoring exceptions at runtime, so this exception only shows up in the debugger.
I've looked at this form that is to be called, and there's no SetFocus being called at the FCEmbeddedFormShow event, which is execute when the form is displayed.
I've not been using Delphi long, and I have no idea how to use the debugger to really track this problem down.