RobYost Posted December 5, 2017 Share Posted December 5, 2017 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); --------------------------- Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.