[comp.windows.x] TEXT WIDGET WORT

MATLEVAN@EKU.BITNET (03/12/90)

Hello,

The new text widget insert file mechanism (meta i) is a little
tricky to use. Running the "xtext" application found in
mit/examples/Xaw will show the problem.

After starting xtext type meta i to bring up the insert file
dialog. Enter a filename longer than the "input" box. Note that
when the edge of the input box is hit, that the box does *not*
grow to the right! Instead a scrollbar appears and the file
name is broken into two lines, bummer.

Workaround (a): invoke xtext -xrm "*insertFile*text*width: 300"
This will make the input box 300 pixels wide.

Workaround (b): type the last character of the filename first. Then
back up the cursor and type the rest of the filename. This time
when the right edge of the box is hit it will grow towards the right.

Anybody got a cleaner solution?

Jerry

-----------------------------------------------------------------------------
| Jerry LeVan                           | Phone:(606)-622-1931              |
| Department of Computer Science        |                                   |
| Eastern Kentucky University           | Email:matlevan@eku.bitnet         |
| Richmond Ky 40475                     |                                   |
|---------------------------------------------------------------------------|
|      "The series converges so slowly that it actually diverges."          |
-----------------------------------------------------------------------------

MATLEVAN@EKU.BITNET (03/12/90)

Well I goofed.

Tain't a problem with the Text Widget Insert File widget. The
problem was in the default fallback resources. There are too
many wildcards and these cause the fallback resources to be
used with the InsertFile dialog. The scrollVertical,scrollHor-
izontal and autoFill resources *should* have been specified as

        "*paned.text.scrollVertical:    whenNeeded"
        "*paned.text.scrollHorizontal:  whenNeeded"
        "*paned.text.autoFill:          on"

The explicit path prevents the resources being applied to the
InsertFile dialog. (At least that's the way I think it works.)

Jerry

-----------------------------------------------------------------------------
| Jerry LeVan                           | Phone:(606)-622-1931              |
| Department of Computer Science        |                                   |
| Eastern Kentucky University           | Email:matlevan@eku.bitnet         |
| Richmond Ky 40475                     |                                   |
|---------------------------------------------------------------------------|
|      "The series converges so slowly that it actually diverges."          |
-----------------------------------------------------------------------------