This forum is temporaily read-only. All existing discussions remain available for reference. For new questions, bug reports or support requests, please contact us at mail@lmdsupport.com.
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;
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)
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.
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