Seewer@DOCKMASTER.ARPA (02/25/89)
Please excuse me if this question has an obvious answer but I am a novice. I have a formWidget with several other children (label,command,etc...). One of the children is a dialogWidget. I would like to have the user be able to see what they type if it does not fit within the limits of the dialog box. I see three possible solutions but do not know how to implement them (or maybe I cannot) using the Relase 3 Xt widgets. I do not have to use the dialogWidget. If anyone knows of another way (ie with asciiStringWidgetClass) I am willing to listen. My solutions are as follows: a) expand the dialog box so the text is always seen or b) have the text move to the left so the user can see the last "N" characters they have typed c) just use asciiStringWidgets in some way that will satisfy my needs Any and all answers are appreciated. You can reply directly or simply post it here. Thanks! Dan Seewer Seewer@DOCKMASTER.arpa
kit@ATHENA.MIT.EDU (Chris D. Peterson) (03/01/89)
> I would like to have the user be able to see what > they type if it does not fit within the limits of the dialog box. > I see three possible solutions but do not know how to implement > them (or maybe I cannot) using the Relase 3 Xt widgets. I do not have > to use the dialogWidget. If anyone knows of another way (ie with > asciiStringWidgetClass) I am willing to listen. > My solutions are as follows: > a) expand the dialog box so the text is always seen or The ascii string widget already is able to do this. Set the text option: resizeWidth or resizeHeight. There is also a problem that the parents of the dialog or text widget will not let it resize. For shell widgets this is easily fixed by setting XtNallowShellResize to TRUE. For its other parents you may have to be more clever. Chris D. Peterson MIT X Consortium / Project Athena Net: kit@athena.mit.edu Phone: (617) 253 - 1326 USMail: MIT - Room E40-321 77 Massachusetts Ave. Cambridge, MA 02139