Beispiel #1
0
static void 
TravCB (Widget w, XtPointer client_data, XtPointer call_data) 
{
    XmTraverseObscuredCallbackStruct * tocs =
	(XmTraverseObscuredCallbackStruct *) call_data ;

    XmScrollVisible(w, tocs->traversal_destination, 20, 20) ; 
}
Beispiel #2
0
void Container::MakeChildVisible(Widget widget, XtPointer, XtPointer call_data)
{
   XmTraverseObscuredCallbackStruct *cb;
   Widget w;

   cb = (XmTraverseObscuredCallbackStruct *) call_data;
   w = cb->traversal_destination;
   XmScrollVisible(widget, w, 0, 0);
}
Beispiel #3
0
void MotifUI::DoMakeVisible()
{
   Widget sw = XtParent(_w);
   if (sw && !XmIsScrolledWindow(sw))
      sw = XtParent(sw);
   if (sw && !XmIsScrolledWindow(sw))
      sw = XtParent(sw);
   if (sw && XmIsScrolledWindow(sw) && !XmIsMainWindow(sw))
      XmScrollVisible(sw, _w, 0, 0);
}