Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

BWidget PanedWindow: changing size of frames

Status
Not open for further replies.

sevmaster

Programmer
Jul 20, 2005
2
0
0
UA
Hi all!

There is a toplevel form with PanedWindow widget (BWidget library) with two horizontally separated frames (left and right). I have two qwestions:
1. How to set a fixed proportion between the frames when I resizing the window? - For example, left panel allways will be 0.3 and right panel allways will be 0.7 of aggregate width of PanedWindow widget (or 3:7) when parent window is resized.

2. How to hide one of panels (for example - left) when any key (or button) was pressed and show it again after that key (or button) would will be pressed twice?
Each panel contains other widgets. I try to set the panel's width by 'configure -width x' command but nothing happens.

Any ideas?
---
With best regards, Dimon.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top