[comp.sys.atari.st] RCS troubles. HELP!

glenn@otto.COM (Glenn Scott) (08/20/87)

  I have a problem that I'm sure someone can help with just a mail message.

  My goal is to use a FREE tree object in an application.  The objects in the
tree are editable and plain text fields.  No other objects, other than those
in the FREE tree and the menu bar, will be displayed.  I am using GEM RCS
V1.4 (03/27/85) as supplied in the Atari Developers Kit.

  I can create a FREE tree in the RCS which, when the window is expanded,
fills as much of screen that I want (Medium Rez).  The text items are placed
where I want them and all looks fine -- in the RCS.  I write out the resultant
RSC file and, for fun, I write out the corresponding .C file for my persual.

  I tried several ways of displaying the FREE tree, all of them display
the tree, but none of them display it as I saw it in the RCS.  Particularly,
everything in the Y axis is squeezed together.  Items that had some white
space between them in the RCS would be overlapped when displayed from my
application.  This is also true for DIALOG boxes that I construct.  I have to
exaggerate the white space between items (in the Y axis) while using the RCS
in order for the resulting DIALOG box to be displayed without items
overlapping. 

  All of my attempts to display the FREE tree used objc_draw().  I did try
to use form_center to get the coordinates of the rectangle used by my FREE
tree, but even form_center didn't get it right.  I would guess that the
actual height of the displayed tree should be 160 - 180 pixels.  Yet,
form_center says it is around 80 and objc_draw displays it as if it were
80.  I did change the ob_height structure member of the FREE tree to 180
and it did display the outer rectangle with what appeared to be that
dimension, but the items within the FREE tree were still overlapped.
I didn't continue with that approach because I figured there must be a better
way.

  I hope I've made the problem clear and that someone can tell me how to get
this problem solved.

Glenn
----
Glenn Scott  Las Vegas Sun  Las Vegas, Nevada
{mirror,sdcrdcf,ihnp4}!otto!glenn