Retrieve GenPrimary's position/size?

Marcus Groeber (100712.270@compuserve.com)
Mon, 3 Feb 1997 07:51:31 -0500

Hi all,

a while ago, someone asked me whether there was an easy way for retrieving
the position/size of a GenPrimary window and storing it for later use (for
example, to restore a window position/size set by the user even if the
application was terminated in the meantime).

I have found the MSG_GEN_SET_WIN_POSITION und *_SIZE messages (defined by
GenClass), but is there a documented way of getting a Gen object's bounding
box at runtime?

I assume that I should somehow talk to the Vis portion of the UI object to
get information about its actual visual representation, but is that
considered good programming practice under Geos? :-)

ciao marcus