Path: utzoo!attcan!uunet!lll-winken!ames!mailrus!uflorida!gatech!emcard!stiatl!meo From: meo@stiatl.UUCP (Miles O'Neal) Newsgroups: comp.windows.x Subject: Re: Geometry management philosophy/procedure Keywords: text widget,terminal widget,lines vs pixels Message-ID: <2639@stiatl.UUCP> Date: 12 Jan 89 14:54:14 GMT Distribution: na Organization: Sales Technologies Inc., Atlanta, GA Lines: 20 In article <8901112355.AA18650@DORA.MIT.EDU> kit@ATHENA.MIT.EDU (Chris D. Peterson) writes: >> Another feature I would like that complicates things a little more is >> have my text widget be a fixed number of lines in height instead of a >> fixed number of pixels. > >The "right" solution is to be able to specify the height of the text widget >in lines as well as pixels, but since the Athena text widget does not >let you do this you must either hack it in, or do something like the following: This will certainly work; I used it until we ran into yet another stone wall in the text widget. So we have written a replacement. It doesn't have all the capability of the textWidget (ie, cut/paste, etc) yet; we just adds as we goes. I suggest writing a macro or function that you pass a widget or part of it's data structure, and the # of lines you want, that returns the proper # of pixels. I can't get to mine right now, as we are downgrading our OS (sigh), but if you want, I can send the macros & functions. Just drop me email. -Miles (gatech!stiatl!meo)