At the moment I’m working on the conversion of a project to API2.
There is a ContainerControl that has an Activate event.
Apparently API2 DesktopContainer doesn’t have that Activate event.
I’ve looked for an alternative in the documentation but I must be blind.
Is there an alternative for Activate in DesktopContainer?
Might FocusReceived be of any use? What were you doing, broadly speaking, in the previous Activate event?
No. As proven in another thread DesktopContainer can never receive focus and raise that event if anything else on the window is a focusable control (like TextArea).
1 Like
@TimStreater
This isn’t my own code. I did run the original API1 program.
The Activate event is used to set the width of the ContainerControl.
MenuBar1.Width = mMenuWidth
The value of mMenuWidth doesn’t change during the running of the program, so I assume that I can use the Opening event instead.
(Maybe I will add a Resize later when I’m more familiar with the program)
1 Like