🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.soft-sys.andrew
Article #1934

Re: How to resize the window of a running application?

#1934
From: Gary Keim
Date: Tue, 12 Jan 1993 21:54
24 lines
1346 bytes
Excerpts from misc: 12-Jan-93 How to resize the window of.. Fodatec
Project@harare.k (274)

> Could anyone please give me a hint how to change the window size of a
> running application from within that application, to the values which
> are computed at run-time in a result of some user's action ?

There are methods in andrew/atk/basics/x/xim.c that do what you want:

xim__ResizeWindow(self, w, h)
xim__MoveWindow(self, x, y)

These methods don't seem to be fully integrated into the system because
they don't appear in xim.ch and you would also expect there to be empty,
dummy routines in im.c that these would override.  This might imply that
there is a problem with these routines.... anybody know?

You should be able to use these guys in your code, like so:

#include <im.ih>
im_ResizeWindow(fooview_GetIM(self), newWidth, newHeight);

Gary Keim
Andrew Consortium
Technical Details
Message-ID: <4fIns9G00WohAsZHwz@andrew.cmu.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!sdd.hp.com!hplabs!ucbvax!ANDREW.CMU.EDU!gk5g+
References: <EfIgt6SIlUc5Q8TkJy@harare.kapsch.co.at>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!sdd.hp.com!hplabs!ucbvax!ANDREW.CMU.EDU!gk5g+
From: gk5g+@ANDREW.CMU.EDU (Gary Keim)
Newsgroups: comp.soft-sys.andrew
Subject: Re: How to resize the window of a running application?
Message-ID: <4fIns9G00WohAsZHwz@andrew.cmu.edu>
Date: 12 Jan 93 21:54:17 GMT
References: <EfIgt6SIlUc5Q8TkJy@harare.kapsch.co.at>
Sender: daemon@ucbvax.BERKELEY.EDU
Distribution: world
Organization: The Internet
Lines: 25