[MSV8i, MDL] Resizing a NET dockable window in MDL

Hi folks,

I've been playing around with dialogs setting the attribute "DIALOGATTRX_NETDOCKABLE". This is great and gives me a lot of flexibility with customising the interface, however it seems that dialogs that set this attribute cannot be resized using mdlWindow_extentSet(). Calling this function seems to have no effect, while if I call mdlWindow_setNETDockable() to set the window as undockable beforehand, then the resize works perfectly.

So my question is - how do I resize a window that is NET dockable? And are there any more API functions that get broken by setting this attribute? 

Cheers.

Parents
  • AFAIK, .NET dockable dialogs are just a childs of .NET dockable control.

    I think you must get its parent first and resize that.

    MDL function mdlDialog_getNETDockingParentWindow should return correct window to resize.

    There is a hierarchy:

    When docked:

    1. main zone
    2. zone of your dialog
    3. dockable .Net control
    4. perhaps .Net adapter
    5. your dialog

    When undocked:

    1. dockable .Net form
    2. dockable .Net control
    3. perhaps .Net adapter
    4. your dialog

    You can see how much dialogs is combined using Spy++.

    Answer Verified By: Piers 

  • DanPaul, you're quite right - sending the parent window seems to work when resizing.

    This confused me a little, as the other functions that require the window pointer (such as mdlDialog_itemGetByTypeAndId()) all work fine with the window pointer as supplied. I guess it makes sense that resizing the window doesn't work when it is the parent window that needs to be resized instead.

    Thanks for your informative reply!

Reply
  • DanPaul, you're quite right - sending the parent window seems to work when resizing.

    This confused me a little, as the other functions that require the window pointer (such as mdlDialog_itemGetByTypeAndId()) all work fine with the window pointer as supplied. I guess it makes sense that resizing the window doesn't work when it is the parent window that needs to be resized instead.

    Thanks for your informative reply!

Children
No Data