aMSN Forums
February 12, 2012, 05:40:57 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: New forum for aMSN !!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Text Input Field size?  (Read 2298 times)
Kurt_
Newbie

Offline Offline

Posts: 1


View Profile
« on: April 23, 2009, 03:19:18 am »

Well, I'm trying to make the switch to aMSN from Trillian, and it's quite hard, to be honest. I like trillian much better, but msn on trillian is a tad buggy.

I don't type novels. I don't need a minimum text input field height of five rows. Is there a way/plugin to get this field sized down to one row instead of five?
Logged
kakaroto
Administrator
Super Power User
*****
Offline Offline

Posts: 9424


View Profile WWW
« Reply #1 on: April 23, 2009, 08:24:26 am »

Hi, welcome to the forums and to aMSN!
well the size is dependent on the display picture on the left, so you can't make it smaller than the size of the display picture otherwise it would get cropped... What you can do is either :
1 - go to preferences->advanced-> enable "Show only one display picture frame in the chat window"
2 - open a chat window
3 - click on the display picture of your friend and select Change size->small
4 - resize it to the minimum

This should give you 2 lines (or 4 lines if you enable "Hide button bar"). That's the minimum you can go (which is hardcoded to be 100 pixels minimum).

If you want a different solution, then you'll have to edit the amsn source code (no recompilation is necessary since it's tcl (interpreted) language).
Open the chatwindow.tcl file (C:\Program Files\aMSN\scripts\chatwindow.tcl or /usr/share/amsn/chatwindow.tcl) with your favorite text editor (wordpad, emacs, vi, ...) and find these two lines :
Code:
$paned paneconfigure $input -minsize 100 -height 120

and
Code:
$win.f paneconfigure [GetInFrame $win] -minsize $h

and replace the value of -minsize by something else (the first sets the minsize to 100 pixels, the second one to $h (whcih is the heigh of the display picture), so you would have the two lines look something like this (for 20 pixels maximum for example) :
Code:
$paned paneconfigure $input -minsize 20 -height 120

and
Code:
$win.f paneconfigure [GetInFrame $win] -minsize 20

This should make it use 20 pixels max which is way enough to let you resize it to whatever size you want!
anyways, I calculated the sizes you'd need, I think 40 is the perfect minsize for a 1 liner if you are hiding the button bar, if you want to display the button bar, then 80 is just perfect for you (assuming you are using the default skin).

I hope that helps! Smiley
Logged

KaKaRoTo
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!