skertic@sal-sun48.usc.edu (Robert Skertic) (07/16/89)
Dear X Architects: PROBLEM 1(Solved due to ART 12022): We are writing an application that parasites off the stnd xeditor. As you know the xeditor uses vpanes to manage the overall parent and child regions. If we try to add children to the parent vpane of xedit using XtCreateManagedWidget and XtPanedSetMinMax, our verticalScroll Option is scaled downward to a thickness of about 2. There does not seem to be a way to adjust the default thickness when outside of a scrollbarWidgetClass. SOLN: USE xedit_first = (XtAppContext)_XtDefaultAppContext(); instead of /*xedit_first = XtCreateApplicationContext(); */ IS THIS THE APPROVED SOLUTION?? PROBLEM 2: In addition, our grips do not resize our regions, even in the system version of xedit. Documentation on Vpanes says that you can resize child panes via the grips??? First, I want you to know that I read all of the applicable articles that I could find on the problems above, AND, article 12022 WORKED for the scrollBar problem. However, it did not fix the Grip problem. ALso, I would be interested in your answer to Mr. Robbins (msg 12022). reply to: skertic@merlin.usc.edu and truong@merlin.usc.edu As Always, THANKS IN ADVANCE, Bob Skertic and Duc Truong
kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) (07/17/89)
> PROBLEM 1(Solved due to ART 12022): > We are writing an application that parasites off the stnd xeditor. > As you know the xeditor uses vpanes to manage the overall parent > and child regions. If we try to add children to the parent vpane of > xedit using XtCreateManagedWidget and XtPanedSetMinMax, our > verticalScroll Option is scaled downward to a thickness of about 2. > There does not seem to be a way to adjust the default thickness > when outside of a scrollbarWidgetClass. > SOLN: USE xedit_first = (XtAppContext)_XtDefaultAppContext(); > instead of /*xedit_first = XtCreateApplicationContext(); */ Try Applying public patch number 9. This patch fixes a bug that shows symptoms very similiar to yours. > PROBLEM 2: > In addition, our grips do not resize our regions, even in the > system version of xedit. Documentation on Vpanes says that > you can resize child panes via the grips??? The values passed to XtPanedSetMinMax are the absolute minimum and maximum sizes for this pane. Since these are absolute sizes the user is not able to change them with the grips. The VPaned widget will use the current size of the child widget to determine the initial size of the pane. By setting the size of the child to the initial size of the pane and relaxing the values of min and max the VPaned Widget will let the user adjust the size of the panes. To make this task easier I have added a XtNpreferredPaneSize resource to the Athena Paned widget, this new version will be avaliable in X11R4. Chris D. Peterson MIT X Consortium Net: kit@expo.lcs.mit.edu Phone: (617) 253 - 9608 Address: MIT - Room NE43-213