473,379 Members | 1,367 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

save size after using splitter

Sam
Hi,
I have a panel docked to the bottom of my form. This panel can be
expanded vertically by clicking on a button. When the user click on the
button again, the panel is then collapsed. The panel has a horizontal
splitter, which the user can use to resize the panel when it is
expanded. I would like to save the height of the panel when the user
uses the splitter, so that when the panel is expanded via the button,
it size will be automatically set to the one the user had set.
Unfortunately I don't know on which event of the splitter I should
store the new size?

Can you help?
Thx

Nov 21 '05 #1
5 2299
You could use the SplitPosition property of the Splitter class to get the
height of the panel.

-Atul, Sky Software http://www.ssware.com
Shell MegaPack ActiveX & .Net
Drop In Windows Explorer like Shell Browsing GUI controls for your app.

"Sam" <sa**************@voila.fr> wrote in message
news:11*********************@o13g2000cwo.googlegro ups.com...
Hi,
I have a panel docked to the bottom of my form. This panel can be
expanded vertically by clicking on a button. When the user click on the
button again, the panel is then collapsed. The panel has a horizontal
splitter, which the user can use to resize the panel when it is
expanded. I would like to save the height of the panel when the user
uses the splitter, so that when the panel is expanded via the button,
it size will be automatically set to the one the user had set.
Unfortunately I don't know on which event of the splitter I should
store the new size?

Can you help?
Thx

Nov 21 '05 #2
"Sam" <sa**************@voila.fr> schrieb
Hi,
I have a panel docked to the bottom of my form. This panel can be
expanded vertically by clicking on a button. When the user click on
the button again, the panel is then collapsed. The panel has a
horizontal splitter, which the user can use to resize the panel when
it is expanded. I would like to save the height of the panel when
the user uses the splitter, so that when the panel is expanded via
the button, it size will be automatically set to the one the user
had set. Unfortunately I don't know on which event of the splitter I
should store the new size?


Have a look @ these groups for language unrelated questions:
microsoft.public.dotnet.framework.windowsforms[.*]
Armin
Nov 21 '05 #3
"Sam" <sa**************@voila.fr> schrieb:
I have a panel docked to the bottom of my form. This panel can be
expanded vertically by clicking on a button. When the user click on the
button again, the panel is then collapsed. The panel has a horizontal
splitter, which the user can use to resize the panel when it is
expanded. I would like to save the height of the panel when the user
uses the splitter


Save the value of the splitter control's 'SplitPosition' property and
restore it later. You don't need to store the size of the controls
connected by the splitter.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #4

<url: http://www.codeproject.com/cs/miscctrl/collapsiblesplitter.asp>

Atara.

*** Sent via Developersdex http://www.developersdex.com ***
Nov 21 '05 #5
Sam,
In addition to the other comments.

A cursory glance at Splitter in VS.NET's Object Browser suggests:

Splitter.SplitPosition - the current position of the splitter.

Splitter.SplitterMoved - current position of the splitter moved.

Splitter.SplitterMoving - the current position of the splitter is about to
move.

Checking on-line help confirms the above.

http://msdn.microsoft.com/library/de...itiontopic.asp

http://msdn.microsoft.com/library/de...movedtopic.asp

http://msdn.microsoft.com/library/de...ovingtopic.asp

Hope this helps
Jay

"Sam" <sa**************@voila.fr> wrote in message
news:11*********************@o13g2000cwo.googlegro ups.com...
| Hi,
| I have a panel docked to the bottom of my form. This panel can be
| expanded vertically by clicking on a button. When the user click on the
| button again, the panel is then collapsed. The panel has a horizontal
| splitter, which the user can use to resize the panel when it is
| expanded. I would like to save the height of the panel when the user
| uses the splitter, so that when the panel is expanded via the button,
| it size will be automatically set to the one the user had set.
| Unfortunately I don't know on which event of the splitter I should
| store the new size?
|
| Can you help?
| Thx
|
Nov 21 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: MooMaster | last post by:
This is more of a wxPython centric question, but not seeing reference to this on the wx group I thought I'd try here since many here also use wxPython toolkit. I started learning GUI development...
7
by: John | last post by:
Hi, I have a group of controls in a panel on the right-hand side of a splitter and a treeview on the left-hand side. The only configuration that I can find to make the right-hand side resize...
3
by: Andre Loker | last post by:
Hi! For my current application I'm looking for a four-way-(cross) splitter control (as often seen in 3D-editors). The .NET Splitter-class is (IIRC) only a two-way splitter. Does anyone know such...
1
by: Krish | last post by:
This is my first try with C# windows gui devlopment, is it correct to say that gui development in C# is windows forms. I would like to create a form with two sections, 2 datagrids, I would like...
2
by: eric dexter | last post by:
I am trying to steal this code from the wxpython demo but it appears that mb comes from nowhere and I am having errors because of it import wx ...
7
by: newscorrespondent | last post by:
I want to save the state of a splitcontainer when an application ends. I also save the form state. The SplitContainer does not seem to have a well defined place to put intiialization and...
3
by: Angus | last post by:
I have a web page with a toolbar containing a Save button. The Save button can change contextually to be a Search button in some cases. Hence the button name searchsavechanges. The snippet of...
1
by: alan75 | last post by:
i want to set the min and max size of listview in one of the panel resizable by a splitter. am i able to size like 90% of the available height or width like in html instead of a fixed value? ...
3
by: Boki | last post by:
Hi All, When put in a webbowser box into form, there is no adjustable anchor for user to adjust size if he/she want. I use an external Hscroll for adjustment. The problem is I have two...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.