Gestione di panel in forms ereditate

lunedì 24 aprile 2006 - 22.37

MordadellaGay Profilo | Junior Member

Ciao ho una form base che utilizza un componente per visualizzare Panels
(Docking Panels)...

vorrei fare in modo che in tutte le form che ereditano la mia form base

public class frmAnagrafica : BaseForm

il contentuo venga inserito in un particolare panels/area della mia base
form e non sopra (senza alcuna posizione), come accade ora...

Resto in attesa di vostri suggerimenti, dato che non so nemmeno se è
possibile ottenere quanto indicato.

Grazie per l'aiuto!

Brainkiller Profilo | Guru

>Ciao ho una form base che utilizza un componente per visualizzare
>Panels
>(Docking Panels)...

Non conoscendo il componente è abbastanza difficile capirne il funzionamento.

In linea teorica se la tua BaseForm contiene questo componente che immagino serva per fare il docking di finestre, non fai altro che inserire nell'inizializzazione della Form del codice che vada ad inserire tutti i controlli dentro questo componente che sarà sicuramente un container.

Se puoi fornire ulteriori dettagli sarebbe meglio perchè così si capisce poco.
ciao

David De Giacomi
Microsoft MVP
http://blogs.dotnethell.it/david/

MordadellaGay Profilo | Junior Member

Grazie mille per la risposta!

Ho fatto mille prove ma non capisco proprio come fare...

Allora, nella mia baseform ho:

Area Sx (oulook menu) con Menu
Area Dx (detail) nella quale vorrei inserire il contenuto delle form che erditano la mia BaseForm

Sai darmi qualche indicazione?? non so piu dove sbattere la testaccia

Infinite grazie!


Nel dettaglio

private Janus.Windows.UI.Dock.UIPanelManager uiPanelManager1;
private Janus.Windows.UI.Dock.UIPanelGroup uipMenu;
private Janus.Windows.UI.Dock.UIPanelGroup uipDetail;
private Janus.Windows.UI.Dock.UIPanel uiPanel1;
private Janus.Windows.UI.Dock.UIPanelInnerContainer uipContainer;
private Janus.Windows.UI.Dock.UIPanel uipDistintaBase;
private Janus.Windows.UI.Dock.UIPanelInnerContainer uipDistintaBaseContainer;
private Janus.Windows.UI.Dock.UIPanel uipProduzione;
private Janus.Windows.UI.Dock.UIPanelInnerContainer uipProduzioneContainer;


this.uiPanelManager1 = new Janus.Windows.UI.Dock.UIPanelManager(this.components);
this.uipMenu = new Janus.Windows.UI.Dock.UIPanelGroup();
this.uipDetail = new Janus.Windows.UI.Dock.UIPanelGroup();
this.uiPanel1 = new Janus.Windows.UI.Dock.UIPanel();
this.uipContainer = new Janus.Windows.UI.Dock.UIPanelInnerContainer();
this.uipDistintaBase = new Janus.Windows.UI.Dock.UIPanel();
this.uipDistintaBaseContainer = new Janus.Windows.UI.Dock.UIPanelInnerContainer();
this.uipProduzione = new Janus.Windows.UI.Dock.UIPanel();
this.uipProduzioneContainer = new Janus.Windows.UI.Dock.UIPanelInnerContainer();
((System.ComponentModel.ISupportInitialize)(this.uiPanelManager1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.uipMenu)).BeginInit();
this.uipMenu.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.uipDetail)).BeginInit();
this.uipDetail.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.uiPanel1)).BeginInit();
this.uiPanel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.uipDistintaBase)).BeginInit();
this.uipDistintaBase.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.uipProduzione)).BeginInit();
this.uipProduzione.SuspendLayout();
this.SuspendLayout();
//
// uiPanelManager1
//
this.uiPanelManager1.ContainerControl = this;
this.uiPanelManager1.DefaultPanelSettings.AutoHideButtonVisible = false;
this.uiPanelManager1.DefaultPanelSettings.CaptionDoubleClickAction = Janus.Windows.UI.Dock.CaptionDoubleClickAction.None;
this.uiPanelManager1.DefaultPanelSettings.CaptionStyle = Janus.Windows.UI.Dock.PanelCaptionStyle.Dark;
this.uiPanelManager1.DefaultPanelSettings.CloseButtonVisible = false;
this.uiPanelManager1.DefaultPanelSettings.DarkCaptionFormatStyle.FontBold = Janus.Windows.UI.TriState.True;
this.uiPanelManager1.DefaultPanelSettings.DarkCaptionFormatStyle.FontName = "Arial";
this.uiPanelManager1.DefaultPanelSettings.DarkCaptionFormatStyle.FontSize = 12F;
this.uiPanelManager1.DefaultPanelSettings.InnerAreaStyle = Janus.Windows.UI.Dock.PanelInnerAreaStyle.Window;
this.uiPanelManager1.DefaultPanelSettings.TabStateStyles.FormatStyle.FontBold = Janus.Windows.UI.TriState.True;
this.uiPanelManager1.DefaultPanelSettings.UseActiveCaptionStyle = false;
this.uipMenu.Id = new System.Guid("32dcec34-dd5f-4a05-9b40-f5dac3320a91");
this.uipDistintaBase.Id = new System.Guid("9765ac51-73d6-49cf-8097-2befd1033814");
this.uipMenu.Panels.Add(this.uipDistintaBase);
this.uipProduzione.Id = new System.Guid("f988b851-b469-4b83-8c40-d73eed366543");
this.uipMenu.Panels.Add(this.uipProduzione);
this.uiPanelManager1.Panels.Add(this.uipMenu);
this.uipDetail.Id = new System.Guid("79f3a146-5bed-4c88-9487-cceaa14ff6e8");
this.uiPanel1.Id = new System.Guid("47ab69ab-a1c3-4c8f-963e-274afcc8d343");
this.uipDetail.Panels.Add(this.uiPanel1);
this.uiPanelManager1.Panels.Add(this.uipDetail);
//
// Design Time Panel Info:
//
this.uiPanelManager1.BeginPanelInfo();
this.uiPanelManager1.AddDockPanelInfo(new System.Guid("32dcec34-dd5f-4a05-9b40-f5dac3320a91"), Janus.Windows.UI.Dock.PanelGroupStyle.OutlookNavigator, Janus.Windows.UI.Dock.PanelDockStyle.Left, true, new System.Drawing.Size(192, 309), true);
this.uiPanelManager1.AddDockPanelInfo(new System.Guid("9765ac51-73d6-49cf-8097-2befd1033814"), new System.Guid("32dcec34-dd5f-4a05-9b40-f5dac3320a91"), -1, true);
this.uiPanelManager1.AddDockPanelInfo(new System.Guid("f988b851-b469-4b83-8c40-d73eed366543"), new System.Guid("32dcec34-dd5f-4a05-9b40-f5dac3320a91"), -1, true);
this.uiPanelManager1.AddDockPanelInfo(new System.Guid("79f3a146-5bed-4c88-9487-cceaa14ff6e8"), Janus.Windows.UI.Dock.PanelGroupStyle.VerticalTiles, Janus.Windows.UI.Dock.PanelDockStyle.Fill, true, new System.Drawing.Size(472, 309), true);
this.uiPanelManager1.AddDockPanelInfo(new System.Guid("47ab69ab-a1c3-4c8f-963e-274afcc8d343"), new System.Guid("79f3a146-5bed-4c88-9487-cceaa14ff6e8"), 196, true);
this.uiPanelManager1.EndPanelInfo();
//
// uipMenu
//
this.uipMenu.GroupStyle = Janus.Windows.UI.Dock.PanelGroupStyle.OutlookNavigator;
this.uipMenu.Location = new System.Drawing.Point(3, 53);
this.uipMenu.Name = "uipMenu";
this.uipMenu.Size = new System.Drawing.Size(192, 309);
this.uipMenu.StaticGroup = true;
this.uipMenu.TabIndex = 4;
this.uipMenu.Text = "Panel 0";
//
// uipDetail
//
this.uipDetail.GroupStyle = Janus.Windows.UI.Dock.PanelGroupStyle.VerticalTiles;
this.uipDetail.Location = new System.Drawing.Point(195, 53);
this.uipDetail.Name = "uipDetail";
this.uipDetail.Size = new System.Drawing.Size(472, 309);
this.uipDetail.StaticGroup = true;
this.uipDetail.TabIndex = 4;
this.uipDetail.Text = "Dettagli";
//
// uiPanel1
//
this.uiPanel1.CaptionVisible = Janus.Windows.UI.InheritableBoolean.False;
this.uiPanel1.InnerContainer = this.uipContainer;
this.uiPanel1.Location = new System.Drawing.Point(0, 24);
this.uiPanel1.Name = "uiPanel1";
this.uiPanel1.Size = new System.Drawing.Size(472, 285);
this.uiPanel1.TabIndex = 4;
this.uiPanel1.Text = "Panel 1";
//
// uipContainer
//
this.uipContainer.Location = new System.Drawing.Point(1, 1);
this.uipContainer.Name = "uipContainer";
this.uipContainer.Size = new System.Drawing.Size(470, 283);
this.uipContainer.TabIndex = 0;
//
// uipDistintaBase
//
this.uipDistintaBase.InnerContainer = this.uipDistintaBaseContainer;
this.uipDistintaBase.Location = new System.Drawing.Point(0, 0);
this.uipDistintaBase.Name = "uipDistintaBase";
this.uipDistintaBase.Size = new System.Drawing.Size(188, 207);
this.uipDistintaBase.TabIndex = 4;
this.uipDistintaBase.Text = "Distinta Base";
//
// uipDistintaBaseContainer
//
this.uipDistintaBaseContainer.Location = new System.Drawing.Point(1, 25);
this.uipDistintaBaseContainer.Name = "uipDistintaBaseContainer";
this.uipDistintaBaseContainer.Size = new System.Drawing.Size(186, 182);
this.uipDistintaBaseContainer.TabIndex = 0;
//
// uipProduzione
//
this.uipProduzione.InnerContainer = this.uipProduzioneContainer;
this.uipProduzione.Location = new System.Drawing.Point(0, 0);
this.uipProduzione.Name = "uipProduzione";
this.uipProduzione.Size = new System.Drawing.Size(188, 207);
this.uipProduzione.TabIndex = 4;
this.uipProduzione.Text = "Produzione";
//
// uipProduzioneContainer
//
this.uipProduzioneContainer.Location = new System.Drawing.Point(1, 25);
this.uipProduzioneContainer.Name = "uipProduzioneContainer";
this.uipProduzioneContainer.Size = new System.Drawing.Size(186, 182);
this.uipProduzioneContainer.TabIndex = 0;



Partecipa anche tu! Registrati!
Hai bisogno di aiuto ?
Perchè non ti registri subito?

Dopo esserti registrato potrai chiedere
aiuto sul nostro Forum oppure aiutare gli altri

Consulta le Stanze disponibili.

Registrati ora !
Copyright © dotNetHell.it 2002-2024
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5