I decided to have a go at TK (no i am not making an msn messenger) and that is what i have so far, my only problem is that the bottom row doesnt line up and justify nicely:
Well I can tell you why the "Message:" and text box aren't lined up: message is set to fill the Y axis, centering it vertically. The text box fills on the X axis, centering it horizontally, but it didn't say anything about centering itself vertically.
And as for the button, I dunno what's up with that one.
My advice: Create three frames in the bottom frame, and that should make it easier to line everything up. _________________ Current Site (2008) http://www.cuvou.com/
For your three frames at the bottom, pack $label_section on the left and $button_section on the right. That should line them up horizontally a little more.
If not, try packing all of them to the left and see if that does anything, or pack the two left ones to the left and the other to the right. You might have to play around with it a little. _________________ Current Site (2008) http://www.cuvou.com/
Joined: 29 Dec 2004 Posts: 367 Location: Australia
Posted: Sun May 01, 2005 6:34 am Post subject:
Now that i've got that nasty issue sorted, i have another problem
The window can of course be changed in size when its open, but when you shrink it, i need to be able to fix things so they dont shrink/disappear and that other parts do.
ie. the send button shouldn't dissappear, instead the msg box should get smaller and on the other axis the scroll box should shrink instead of the msgbox disappearing....
sorry for the annoying questions, but if you have any ideas that would be great!
Now that i've got that nasty issue sorted, i have another problem
The window can of course be changed in size when its open, but when you shrink it, i need to be able to fix things so they dont shrink/disappear and that other parts do.
ie. the send button shouldn't dissappear, instead the msg box should get smaller and on the other axis the scroll box should shrink instead of the msgbox disappearing....
sorry for the annoying questions, but if you have any ideas that would be great!
thanks [right][snapback]48126[/snapback][/right]
I would think that $main->minsize wouldn't allow you to scale the window smaller than the size specified.
Anyway, to get things to resize automatically (like text boxes), add "-expand => 1" when you pack them. So when you start shrinking the window, all the things set to -expand should shrink first, and when they can't shrink any further then it would start making the other things disappear.
But there's not much you can do about it, any Tk window can be scaled down until just the title bar and menu bar are visible. _________________ Current Site (2008) http://www.cuvou.com/