Profile Picture

nSplitter question

Posted By Miles Thornton 14 Years Ago
Author
Message
Miles Thornton
Posted 14 Years Ago
View Quick Profile
Junior Member

Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)

Group: Forum Members
Last Active: 14 Years Ago
Posts: 17, Visits: 1

I have an NForm with an (NTabPage) tabbed interface, on a NTabPage control I have a main NUIPanel containing: a set of NBands and another NUIPanel (docked) containing the splitter and a few more controls. On the first time the user goes to this tab I need the splitter to move to adjust the size and positions of the controls (tied to the resize event of the NUIPanel host – which the SplitterMoved(object sender, SplitterEventArgs e) event calls).

 

Resizing the NBands container and/or the Docked NUIPanel have no effect at all – Moving the splitter with the mouse works, so… I need to move the splitter!

 

Given the code behind the provided C# example application for the NSplitter control, I thought this would do it:

int lefty = (this.npnlFixturesMain.Width - (this.npnlFixturesMain.Width / 4));

this.SuspendLayout();

this.nSplitterFixtures.Location = new System.Drawing.Point(lefty, 0);

this.ResumeLayout();

But, clearly, I didn’t understand…

 

Can someone please point me to (or post) an example of how to programmatically move a splitter bar on a form?

 

Thank you!






Similar Topics


Reading This Topic