It was reported that LessTif was displaying ScrollBars on the ControlPanels
when it shouldn't be. I would like to set the record straight. The _real_
problem is that Motif isn't showing them when it should!!!! You do the math..

We have

Shell->MainW->Frame->ScrolledWindow->WorkSpace

Now with the example I was using, when you switch to user mode the WorkSpace
gets set to a width of 200, then the Shell is set to 200 also!!!! Check out
ControlPanel::setPanelStyle. Now, without even considering margins, spacing,
shadows, highlights, etc, the Frame must occupy at least 2 pixels of width,
otherwise it is totally useless. Therefore width_Shell _cannot_ equal
width_WorkSpace, at least in the dimension that I'm familiar with, so the
LessTif ScrolledWindow puts in ScrollBars.

And look at the comment that goes with it.......

//
// Need to set dims for both Workspace widget and dialog box.  They're
// similar but not the same.  Set the dialog to be the size of Workspace
// plus whatever it takes for window borders, etc horizontally and the size
// of Close,Help buttons vertically.  I obtained diffH from observation
// using editres and flash active widget.
//
        diffW = 0;
        diffH = 40;

Getting a widget dimension with editres!!!!!! That may be fine with one persons
settings of font/margins/shadows/highlights...... but ..... Was this actually
sold as a product like this, or was some of this stuff put in as a test for
openSource developers????

I'm really impressed with the understanding of Motif in some parts of the code,
mostly widgets/*.c, but there's other areas that I just have to cover my eyes
and twist open another brown bottle......

Anyway, I'll submit a "bandaid" for the scrollbar problem shortly, I'm not
really sure where to begin to actually "heal" this......

I'm beleiving more and more every day that Motif has gotten a bad reputation
with some people not by anything to do with Motif, but as a result of the
torture that people inflict on it.......

Sorry if I sound a little negative, but tracking problems through about 19 MB
of source code only to find something like this is not a pleasant experience.

Reply via email to