Author Topic: Resizing the Addin-Window and the Control inside  (Read 4975 times)

Ceronimo

  • EA User
  • **
  • Posts: 45
  • Karma: +0/-0
    • View Profile
Resizing the Addin-Window and the Control inside
« 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


Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +566/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Resizing the Addin-Window and the Control inside
« Reply #1 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 or https://github.com/GeertBellekens/Enterprise-Architect-Toolpack/tree/master/EANavigator
There must be something you are doing differently than those add-ins.

Geert

Ceronimo

  • EA User
  • **
  • Posts: 45
  • Karma: +0/-0
    • View Profile
Re: Resizing the Addin-Window and the Control inside
« Reply #2 on: October 06, 2016, 08:34:47 pm »
Thank you but there is nothing different.
It just won't work :D^^

EXploringEA

  • EA User
  • **
  • Posts: 172
  • Karma: +8/-0
    • View Profile
Re: Resizing the Addin-Window and the Control inside
« Reply #3 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!
EXploringEA - information, utilities and addins