Profile Picture

PredefineFrame not change

Posted By JSW W. 14 Years Ago
Author
Message
JSW W.
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 127, Visits: 1
This solution works when we disable skin.
When enable skin, the first skin will define the frame looks.

However, your example did not have the same result, the frame change perfectly.

Thanks,

Angel Chorbadzhiev
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)

Group: Forum Members
Last Active: Last Month
Posts: 139, Visits: 184

Hello JSW W.,

The correct way to setup a predefined frame on a MdiStandard NUIdocument is the following:

NUIDocument doc = new NUIDocument();

NMdiChild host = doc.Host as NMdiChild;

if (host != null)

{

    NFrameAppearance frameAppearance = NUIManager.GetPredefinedFrame(PredefinedFrame.Simple);

    host.FrameAppearance = frameAppearance;

}

Regards,

Angel.

 



JSW W.
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 127, Visits: 1

Actually it was SETpredefinedFrame.
And also the effect sometimes took effect sometimes don't.

 

I have trial and error around and by doing

m_DockManager.DocumentStyle.DocumentViewStyle = DocumentViewStyle.MdiStandard

change away from MdiStandard and then change it back again - will update the document frame.

However, doing so I lost position/size of mdistandard document windows.
So I am going to open different question.

 

I thought i have solved it but if i turn on skin e.g. macskin...
When change to another skin the mdistandard doc will still be in Macskin frame



JSW W.
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 127, Visits: 1
Hello
When I have already opened Mdistandard documents.
Setting NUIdocument.predefinedframe to something won't take effect on document frame.

What is workaround?



Similar Topics


Reading This Topic