Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!bloom-beacon!EXPO.LCS.MIT.EDU!kit From: kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) Newsgroups: comp.windows.x Subject: Re: Opt Scrollbar/Vpane Problems Message-ID: <8907162239.AA15652@expo.lcs.mit.edu> Date: 16 Jul 89 22:39:53 GMT References: <4393@merlin.usc.edu> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 40 > 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