New Posts New Posts RSS Feed: Maximizing the smartpart window inside a CAB ModalWorkSpace
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Maximizing the smartpart window inside a CAB ModalWorkSpace

 Post Reply Post Reply
Author
mykel View Drop Down
Newbie
Newbie
Avatar

Joined: 18-Sep-2007
Location: Philippines
Posts: 30
Post Options Post Options   Quote mykel Quote  Post ReplyReply Direct Link To This Post Topic: Maximizing the smartpart window inside a CAB ModalWorkSpace
    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.

uploads/20071214_014241_FormModalScreen.zip
 
Help!
Back to Top
mykel View Drop Down
Newbie
Newbie
Avatar

Joined: 18-Sep-2007
Location: Philippines
Posts: 30
Post Options Post Options   Quote mykel Quote  Post ReplyReply Direct Link To This Post Posted: 18-Dec-2007 at 6:53pm
Just try to make this post alive :)
Back to Top
Bill Jensen View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 31-Jul-2007
Location: United States
Posts: 229
Post Options Post Options   Quote Bill Jensen Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
mykel View Drop Down
Newbie
Newbie
Avatar

Joined: 18-Sep-2007
Location: Philippines
Posts: 30
Post Options Post Options   Quote mykel Quote  Post ReplyReply Direct Link To This Post Posted: 26-Dec-2007 at 5:01pm
Ok thanks for this. Bill. :)
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down