dockpanel-suite

Dockpanel Suite and passing data across multiple forms

戏子无情 提交于 2019-12-24 10:56:20
问题 Hi I couldn't find anything that referenced exactly what I was looking for. I have seen many examples on sites of passing data between two forms such as How can I pass values from one form to another? Using The Controls Of One Form Into Another How to access controls on an inherited form? On top of several blogs and hours of reading and not getting it. So basically here is the act I am trying to accomplish Using DockPanel Suite Main Form parentForm Has a form Form1 docked inside that is

Using WeifenLuo DockPanel Suite

流过昼夜 提交于 2019-12-18 16:52:30
问题 I have just downloaded the WeifenLuo(Dock Panel Suite) and trying to work with that but I couldn't find a specific documentation on how to use it. And I have gone through some of the SO questions and finally got something to get started. Here is what I have done: I have created a ToolboxWindow class like shown below: Public Class ToolboxWindow Inherits WeifenLuo.WinFormsUI.Docking.DockContent Public Sub New() End Sub End Class And trying to create an instance of this toolbox in this way:

Calling up DockPanel-Suite's “AutoHidden” DockContent programmatically

会有一股神秘感。 提交于 2019-12-13 14:22:21
问题 I am having trouble causing an 'autohide' dock to appear programmatically. Couldn't find any answer around the net, though the following SO Question suggested that .Show() should have done the trick I've tried this on the latest NuGet version of the code. My test code is below. Anyone know how to do it? or what I'm doing wrong? Update: apparently this is a bug in 2.7.0, I've opened an issue for it with the project. @roken's answer is an excellent workaround, so I've updated the code below to

Only one DockContent in DockPanel

谁说胖子不能爱 提交于 2019-12-11 09:22:47
问题 Here is how my setup looking: This is the DockPanel suite. The white area is dockPanel visual component I has dropped on form. I don't need any docking, nested docking, droppable tabs, etc. I just need one "ProjectsForm" panel and want it to auto hide and hide by user clickings. So, my questions is how can I transform previous picture to look like this new one: How can I forbid to make this one panel float? Here is some code: private void MainForm_Load(object sender, EventArgs e) {

DockPanel Suite tab sorting

自作多情 提交于 2019-12-10 23:06:05
问题 one of my projects uses WeiFen Luo's DockPanel Suite http://dockpanelsuite.com/. Now customer demands to have tabs sorted in a given order when in Document view. The tabs are all instances of the same DockContent-derived class. It carries a float by which to sort. DockPanel.Contents is a DockContentCollection that sadly doesn't provide a Sort method like other collections. It's also not possible to delete DockContents from it in order to add them in the correct order. But user can drag a tab

Weifenluo Dock Panel Suite: Float windows using their design size?

怎甘沉沦 提交于 2019-12-10 19:06:54
问题 How can I make floating windows use their design size (and not the Dock Panel Suite's default size) with the Weifenluo Dock Panel suite? Hint: I tried a proposition from the Dock Panel Suite forums at SF.net, but that doesn't seem to work. 回答1: This worked for me: var topLeft = dockPanel1.Location; topLeft.X += (dockPanel1.Size.Width / 2 - newForm.Size.Width / 2); topLeft.Y += (dockPanel1.Size.Height / 2 - newForm.Size.Height / 2); newForm.Show(dockPanel1, new Rectangle(topLeft, newForm.Size)

Recommendations for a docking library for Delphi / C++Builder?

拜拜、爱过 提交于 2019-12-03 01:09:56
问题 My team is currently thinking of moving our existing MDI-based application to a more modern, docking-based approach. We're still thinking, but we'd like to move it to something like VS2010's docking and visual look: This has the following features: Shows a blended outline where the window will dock Docks into tabs, as well as side-by-side Allows docking by dragging and releasing over an image showing the dock position (I call this a 'docking widget' below) Looks pretty good too (theme / UI

DockPanel Suite - DockContent visibility

心已入冬 提交于 2019-12-02 14:40:52
问题 A form contains a DockPanel with an instance of DockContent which has DockState=DockState.DockBottomAutoHide and it acts as a logger view - like Visual Studio's Error list panel. So, when a logging event is added to log list, DockPanel - if is not visible - is shown in next way: { loggerList.AddLogEvent(event); loggerContentPanel.Show(); }; but if loggerContentPanel is already visible for user, Show method make the panel to "blink". Is any way to get the state of a DockContent with DockState

Recommendations for a docking library for Delphi / C++Builder?

孤街醉人 提交于 2019-12-02 14:28:12
My team is currently thinking of moving our existing MDI-based application to a more modern, docking-based approach. We're still thinking, but we'd like to move it to something like VS2010's docking and visual look: This has the following features: Shows a blended outline where the window will dock Docks into tabs, as well as side-by-side Allows docking by dragging and releasing over an image showing the dock position (I call this a 'docking widget' below) Looks pretty good too (theme / UI-wise) I am having trouble finding a good-quality docking library to use with RAD Studio 2010 and am

DockPanel Suite - DockContent visibility

拥有回忆 提交于 2019-12-02 07:36:14
A form contains a DockPanel with an instance of DockContent which has DockState=DockState.DockBottomAutoHide and it acts as a logger view - like Visual Studio's Error list panel. So, when a logging event is added to log list, DockPanel - if is not visible - is shown in next way: { loggerList.AddLogEvent(event); loggerContentPanel.Show(); }; but if loggerContentPanel is already visible for user, Show method make the panel to "blink". Is any way to get the state of a DockContent with DockState = DockState.DockBottomAutoHide if is visible for user? IsHidden or Visible properties doesn't help too