Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

Block DockPanel resize

Hello.

I want to block resize of dockPanel component.

In the OnShow event I am setting up Constraints:

dockPanel->Constraints->MinWidth = 250;
dockPanel->Constraints->MaxWidth = 500;

and I am checking them in OnResize event:

if(
dockPanel->ClientWidth < dockPanel->Constraints->MinWidth)
{
    dockPanel->ClientWidth = 250;
}

but this doesn't seem to work. My panel is still resizing to 0 width. Tried also with 
dockPanel->Width = 250 but doesn't help.

Comments

Sign In or Register to comment.