We are trying to migrate from the splitter control from Visual Webgui to Wisej.
I am using a SplitContainer in wisej for this. When the splitter dock is set to bottom/horizontal it show as intended. But when we dock it to left/vertical, i see the panel width to be set to 50 by default and it does not really appears like a splitter line as it displays for horizontal splitteer. How can we fix it so that the splitter doesn’t appear like a box/panel.
I have set Panel1.Collapsed = true and so now it shows only one panel. Can we set the width of the panel in runtime to make it look like a splitter line. We are using C#.
Please see attached image that shows how the horizontal and vertical splitter is displayed.
thanks
praveena
Hi Paul
This is the designer code that i have so far while using a SplitContainer in WIsej.
private void InitializeComponent()
{
((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
this.SuspendLayout();
//
// Splitter
//
this.FixedPanel = Wisej.Web.FixedPanel.Panel1;
this.Name = “Splitter”;
//
//
//
this.Panel1.Enabled = true;
this.Panel1.RestoreBounds = new System.Drawing.Rectangle(0, 0, 150, 0);
this.Panel1.RightToLeft = Wisej.Web.RightToLeft.No;
this.Panel1.TabStop = true;
this.Panel1MinSize = 2;
//
//
//
this.Panel2.Enabled = true;
this.Panel2.TabStop = true;
this.Panel2Collapsed = true;
((System.ComponentModel.ISupportInitialize)(this)).EndInit();
this.ResumeLayout(false);
}
#endregion
}
Also attaching a screenshot of the result when the form is rendered in Wisej.
Is there a way that we can display the vertical splitter as similar to horizontal splitter and not display like a panel.
Thanks
Praveena
Hi Paul
Attaching is a screen shot that shows how the splitter control is rendered in Visual Webgui. It shows both the vertical splitter(dock left) and horizontal splitter (dock bottom) that gets added to the form. Our main form is created on a windows application and then it is rendered in VWG.
I am trying to achieve something similar in our efforts to migrate from VWG to WiseJ using Splitter control.
thanks
praveena
Hi Paul
Thanks for the response. I wanted to splitter to just show a single line instead of a panel when docked to left. Since there is no SplitterControl as such in WiseJ, i had to use the SplitContainer.
One quick question. Is there a way to just display the splitter and hide both the panels?
Hi Pravena
I tried to follow your steps, but I not have the problem commented for you
I attached the sample and image of it
Regards
Hi Pravena
Please, could you atach the sample code was used in the picture or another little test project equivalent ?
Regards
Please login first to submit.