1280X1024 switch to 1024x768 video scroll bar rabbit

From: <sherman_at_pet.wustl.edu>
Date: Tue, 14 Jul 1998 15:27:17 -0500

Dear managers:

We switched our Alpha monitors to a 1024x768 resolution which means
we use 100dpi fonts instead of 75dpi fonts. Anyways, after working
through various things like customized font problems we end up with
just one major problem in our X11/Motif program. We lost our vertical
(as well as horizontal) scroll bar on our medical image display
programs. The scroll bars work perfectly fine for 1280x1024 display.
My boss now deceased wrote many spaghetti like programs which I am
now trying to decode:)

Here is the code for vertical and horizontal scroll bar:

i = 0;
        XtSetArg(args[i], XmNx, 620); i++;
        XtSetArg(args[i], XmNy, 180); i++;
        XtSetArg(args[i], XmNwidth, 20); i++;
        XtSetArg(args[i], XmNheight, 256); i++;
        XtSetArg(args[i], XmNvalue, 1); i++;
        XtSetArg(args[i], XmNincrement, 10); i++;
        XtSetArg(args[i], XmNsliderSize, 1); i++;
        XtSetArg(args[i], XmNminimum, 0); i++;
        XtSetArg(args[i], XmNmaximum, 1023); i++;
        XtSetArg(args[i], XmNorientation, XmVERTICAL); i++;
        ver_image = XmCreateScrollBar(toplevel,"Background Profile",
args, i);
    XtAddCallback(ver_image, XmNdragCallback, scroll_image,
                        k_vert);
        i = 0;
        XtSetArg(args[i], XmNx, 512); i++;
        XtSetArg(args[i], XmNy, 296); i++;
        XtSetArg(args[i], XmNwidth, 256); i++;
        XtSetArg(args[i], XmNheight, 20); i++;
        XtSetArg(args[i], XmNvalue, 1); i++;
        XtSetArg(args[i], XmNincrement, 10); i++;
        XtSetArg(args[i], XmNsliderSize, 1); i++;
        XtSetArg(args[i], XmNminimum, 0); i++;
        XtSetArg(args[i], XmNmaximum, 511); i++;
        XtSetArg(args[i], XmNorientation, XmHORIZONTAL); i++;
        horiz_image = XmCreateScrollBar(toplevel, "Background", args,
i);
    XtAddCallback(horiz_image, XmNdragCallback, scroll_image,
                        k_horiz);


Sincerely yours!!

Sherman Owens
Wash. Univ. Sch. Med.
Dept. Rad. Div. Nuc. Med.
St. Louis, MO
sherman_at_pet.wustl.edu
Received on Tue Jul 14 1998 - 22:27:56 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:38 NZDT