Jump to content

Error in UnimFormReady


RobYost

Recommended Posts

On my main form, I have some buttons in a toolbar.

 

In some cases, I would like to simulate clicking the first button.

 

I call the buttons code in:

 

procedure TfrmmMain.UnimFormReady(Sender: TObject);
 

 

This would probably work with a timer with 100ms, but I hate using timers because it seems there is always a case where it doesn't work. (heavy load on server, etc.)

 

>>> How would you implement this? <<<

 

 

 

One of the first things done in the button is:

  if (framEntityList = nil) then
    framEntityList := TframEntityList.Create(self);
---------------------------
Debugger Exception Notification
---------------------------
Project SimpleLandlord.exe raised exception class Exception with message 'Dynamic controls can not created at this stage: TUnimContainerPanel'.
---------------------------
Break   Continue   Help   
---------------------------
 
  if (framEntityList = nil) then
    framEntityList := TframEntityList.Create(self);
---------------------------
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...