• Home
  • Products
    • Game Engine
      • Base
      • Mathematics
      • Geometry
      • Physics
      • Particles
      • Animation
      • Graphics
      • Game
      • Game UI
    • Windows Forms
      • Docking Windows
      • Text Editor Control
  • Downloads
  • Buy
    • Overview
    • Professional
    • Indie
    • Non-Commercial
  • Support
    • Overview
    • Blog
    • Forum
    • License FAQ
    • Documentation
  • About
    • About Us
      • Services
    • Contact Us
    • Press
    • Legal Terms
      • Imprint (English)
      • Imprint (German)
Select the search type
 
  • Site
  • Web
Search
DigitalRune.com
Login |Register
NEWS News RSS Feed BLOG Blog RSS Feed FORUM News RSS Feed DOCUMENTATION DigitalRune Software on YouTube DigitalRune Software on Twitter
You are here: SupportForum

If you want to contribute to the forum discussions, please Register or Login.

SearchHome
  • 1
  • 2
  • 3
  • 4
  • 5
HomeHomeDigitalRune Sof...DigitalRune Sof...Docking Windows...Docking Windows...Fix size of docked windowFix size of docked window
Previous
 
Next
New Post
9/12/2011 3:49 PM
 
guibencke
No Ranking

Joined: 9/12/2011
Posts: 1
Fix size of docked window  Modified By guibencke  on 9/12/2011 3:49:43 PM

Hi,

I would like to know how I could keep constant the width of a docked form.

I would like to aways show the entire form docked, so its width do not change when I resize the window.

 

Thank you,

Guilherme.

 
New Post
9/12/2011 5:39 PM
 
MartinG
7th Level Poster

www.digitalrune.com
Joined: 10/15/2006
Posts: 448
Re: Fix size of docked window 

Hi Guilherme,

There is one option you can try: You can assign an absolute size to the border dock zones.

The DockPanel consists of five dock zones: left, right, top, bottom and the document area (center). The size of the left, right, top and bottom dock zones can be defined using the properties DockLeftPortion, DockRightPortion, DockTopPortion, DockBottomPortion of the DockPanel.

If these values are <1 then the value is treated as a proportional size relative to the DockPanel. The default value is 0.25 which means that the dock zone will take up 25% of the DockPanel - unless it is resized by the user. The dock zone will automatically resize when the parent window is resized.

A value >1 is treated as an absolute size in pixel. For example, if you set

dockPanel.DockRightPortion = 200;

 

then the right dock zone will have a fixed width of 200 pixels. The right dock zone will not be resized when the parent window changes. (But it can still be resized by the user.)

But the space inside one of the dock zone is always proportionally divided among all docked forms. (It is not supported to explicitly constrain the size of one particular form.)

 
 Page 1 of 1
Previous
 
Next
HomeHomeDigitalRune Sof...DigitalRune Sof...Docking Windows...Docking Windows...Fix size of docked windowFix size of docked window


DigitalRune is a trademark of Garstenauer Information Technology OG.

Garstenauer Information Technology OG
Weingartenstrasse 35, 4452 Ternberg
Austria (EUROPE)
office@digitalrune.com

Home Products Downloads Buy Support About Us
Game Engine Particles Windows Forms Professional Blog Services
Base Animation Docking Windows Indie Forum Contact Us
Mathematics Graphics Text Editor Control Non-Commercial License FAQ Press (News)
Geometry Game Documentation Legal Terms
Physics Game UI Imprint
Impressum
Copyright © 2006-2012 Garstenauer Information Technology OG Terms Of UsePrivacy Statement