Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Ceronimo on September 28, 2016, 10:16:01 pm
-
Hi, i want that my control resizes when i resize the Addin Window.
the Addin resizes but my control stuck in hise size !
Im not able to reference (c#) the parent (Addin Window) and resize my Control
My Control contains a TabPageControl (and my tabTabPageControll fills the Control , but the control does not fill the AddInwindow when i resize it)
I tried everything but it doesn't work.
Thank you for your help
-
I don't think I ever had a problem like that.
My control always completely fills the add-in window space.
Otherwise check out the code of some of my add-ins such as https://github.com/GeertBellekens/Enterprise-Architect-Add-in-Framework/tree/master/MyAddin (https://github.com/GeertBellekens/Enterprise-Architect-Add-in-Framework/tree/master/MyAddin) or https://github.com/GeertBellekens/Enterprise-Architect-Toolpack/tree/master/EANavigator (https://github.com/GeertBellekens/Enterprise-Architect-Toolpack/tree/master/EANavigator)
There must be something you are doing differently than those add-ins.
Geert
-
Thank you but there is nothing different.
It just won't work :D^^
-
I assume that your AddIn is a standard windows user control. In which case the reasons it doesn't resize to its parent is often because its properties prevent resizing.
Some of the properties to check are:
* Locked - False - to ensure that the control can be resized
* Maximum size is 0,0 - so not limiting the size of the control
You also need to ensure that any embedded controls do not have any restrictions on them.
The only time I have had to do anything more than that is when embedding external applications into the addin window. In this case you will need to respond to Win32 messages and that's a different story!