Maxport Slightly modified Viewport Widget David Harrison UC Berkeley Electronics Research Lab davidh ic Berkeley EDU ucbvax ucbcad davidh Maxport is a subclass of the Athena Viewport widget that allows the caller to specify a maximum width and height This is useful if you have a child widget that starts out very large and you would like to force the viewport to scroll initially XtCreateWidget is used to create new Maxport widgets usnig the class variable maxportWidgetClass The resources listed below are retrieved from the argument list or from the resource database maxportWidgetClass Name Class RepType Default Value accelerators Accelerators AcceleratorTable NULL ancestorSensitive AncestorSensitive Boolean True allowHoriz Boolean Boolean False allowVert Boolean Boolean False background Background Pixel XtDefaultBackground backgroundPixmap Pixmap Pixmap XtUnspecifiedPixmap borderColor BorderColor Pixel XtDefaultForeground borderPixmap Pixmap Pixmap XtUnspecifiedPixmap borderWidth BorderWidth Dimension 1 children ReadOnly WidgetList NULL colormap Colormap Pointer Parent s Colormap depth Depth int Parent s Depth destroyCallback Callback Pointer NULL forceBars Boolean Boolean False height Height Dimension 0 mappedWhenManaged MappedWhenManaged Boolean True maxHeight Height Dimension 0 maxWidth Width Dimension 0 numChildren ReadOnly Cardinal 0 sensitive Sensitive Boolean True useBottom Boolean Boolean False useRight Boolean Boolean False width Width Dimension 0 x Position Position 0 y Position Position 0 accelerators List of event to action bindings to be executed by this widget even though the event happened in a different widget see X Toolkit manual for details allowHoriz allowVert If these resources are False then the Maxport will never create a scrollbar in this direction If the value is True the scrollbar will appear only when needed unless forceBars is True ancestorSensitive The sensitivity state of the ancestors of this widget background Pixel specifying background color for widget backgroundPixmap Pixmap to use for tiling background of widget border Pixel specifying the border color for the widget borderPixmap Pixmap to use for tiling the widget border borderWidth Width of widget border in pixels children A list of all of the children of the Maxport colormap The colormap this widget uses to determine pixel to color mappings depth The depth of the widget window measured in planes destroyCallback List of routines to call when the widget is destroyed forceBars When True the scrollbars that have been allowed will always be visible regardless of the size of the child height width The overall width and height of the widget in pixels mappedWhenManaged If this resource is True the widget s window will automatically be mapped by the toolkit when it is realized and managed maxWidth maxHeight If non zero these values specify the maximum size of the maxport widget before it begins clipping its child This is the one major difference between this widget and the viewport widget numChildren The number of children of this widget sensitive If True the toolkit will not pass user events to this widget useBottom useRight By default the scrollbars appear on the left and top of the screen These resources allow vertical scrollbars to appear on the right and horizontal scrollbars to appear at the top of the screen x y Location of the upper right outside corner fo the widget inside it s parent
View Full Document
Unlocking...