DrawingAreaWidget top Left hand corner

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

5 posts / 0 new
Last post
DrawingAreaWidget top Left hand corner

Submitted by Anonymous on Thu, 05/02/2002 - 10:59. Developers
I have another 1.2 to 2.1.30 positioning issue. These appear tobe the only problems
all other functionality has ported OK. I need to sort these before moving on to use
2.2 and the new functionality, i.e replace the `tools` ComboBox and use the Tab functions
instead of my home grown variety.

This time the structure is scrolledWindow - DrawingArea - labels&graphics

The basic display I want is OK the relative position of my widgets are as required.

The problem is the position of the first one on thre DrawingArea surface. It is displaced
both verticalyl and horizontally, in a ratio of 1 unit vertical 4 units horizontal.
I can change how physically much by inserting a XmNunitType
resource, which does not remove these margins and maintains the relative ratios.

I have inserted form widgets to see if that will help but it does not. Even replaced the
Drawing Area with a form which produced a blank grey block in the same position.

This is so similar to the RowColumn cry for help I reported last week that I cannot help
think that I must have resources set or not set somewhere that is controlling this, but cannot
think what.

All input gratefully received

Anonymous

Sorry reader, with a red face I found an XmNx,XmNy setting that was over riding my actions
However, these settings were ignored in 1.2. A case of working by coincidence.

Anonymous

You XtVaSet various scrolled window properties like

XmNscrolledWindowMarginWidth
XmNspacing
etc...
right?

I don`t know what your putting in the scrolled window - but those widgets may also have spacing properties that are changeable.

Anonymous

The Drawing Widget is used to present a mixture of label widgets and graphics
to the happy user.

The layout is controlled by local/user app-defaults and resolution, thereby ensuring
readability. The presentation manages the layout strickly and other than scrolling
there are no user callback interactions, but that may change.

Thanks for your input.

Anonymous

Yes.

When you keep hacking neer the solution it often pops out )

Have fun,
John