Print Page | Close Window

Maximizing the smartpart window inside a CAB ModalWorkSpace

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce Classic
Forum Discription: For .NET 2.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=610
Printed Date: 14-Apr-2025 at 2:36pm


Topic: Maximizing the smartpart window inside a CAB ModalWorkSpace
Posted By: mykel
Subject: Maximizing the smartpart window inside a CAB ModalWorkSpace
Date Posted: 13-Dec-2007 at 10:44pm
Hello,
 
I am trying to show a specific form using the ModalWorkspace thrucode below:

SamplePageController.ShowPage(WorkItem, "Page Name", WorkItem.Workspaces[GSC.Standard.Infrastructure.Interface.WorkspaceNames.ModalWindows]);

And when doing this, I was able to show the said form modally but the smartpartinfo Form inside is not maximized in the CAB Modal Window.

http://www.ideablade.com/forum/uploads/20071214_014241_FormModalScreen.zip - uploads/20071214_014241_FormModalScreen.zip
 
Help!



Replies:
Posted By: mykel
Date Posted: 18-Dec-2007 at 6:53pm
Just try to make this post alive :)


Posted By: Bill Jensen
Date Posted: 26-Dec-2007 at 1:17pm

It appears you are using a SummaryDetail page in the modal window workspace.

I got the same result as you did.  The SearchSummaryDetailPage seems to work OK, though, and I found that on construction, the dock style for that page is set to Fill.
 
Apparently, the WindowWorkspace doesn't set the dock style of the smart part it displays.
 
 
Try this:
 
In your page controller, override CreateViews():
 

protected override void CreateViews()

{

base.CreateViews();

((Control)this.MainView).Dock = DockStyle.Fill;

}

It's a hack, but it gets the job done.
 
Bill J.


Posted By: mykel
Date Posted: 26-Dec-2007 at 5:01pm
Ok thanks for this. Bill. :)



Print Page | Close Window