Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Ceronimo on September 28, 2016, 10:16:01 pm

Title: Resizing the Addin-Window and the Control inside
Post 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

Title: Re: Resizing the Addin-Window and the Control inside
Post by: Geert Bellekens on September 29, 2016, 12:20:53 am
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
Title: Re: Resizing the Addin-Window and the Control inside
Post by: Ceronimo on October 06, 2016, 08:34:47 pm
Thank you but there is nothing different.
It just won't work :D^^
Title: Re: Resizing the Addin-Window and the Control inside
Post by: EXploringEA on October 06, 2016, 09:27:11 pm
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!