From: Raymond de Lacaze

Subject: Re: resize and on-paint events

Date: 1998-5-6 9:31



You can specialize the following two generic functions:

COMMON-GRAPHICS::REDISPLAY-WINDOW

COMMON-GRAPHICS::RESIZE-WINDOW

Also, there are several keyword arguments to open-stream,
such as :user-scrollable, :user-resizable, etc... that control 
the behavior you want.

Finally you should use/inherit from  the classes
common-graphics::bitmap-window & commmon-graphics::bitmap-dialog-pane
to get the self-refreshing aspect (i.e. backing-store).

Ray,


________________________________________________________________________
Raymond de Lacaze
Blackboard Technology Group, Inc.                  http://www.bbtech.com
401 Main Street                                      Phone: 413-256-8990
Amherst, MA  01002                                     Fax: 413-256-3179





On Wed, 6 May 1998, Antoine Zahnd wrote:

> Hello, > > I use Allegro CL for windows 3.0.1 and I would like a resizable > non-scrolable, refreshing window! > > Even better, how can I intercept a resize event and an on-paint event? > What I need is to know > when the window is resized (only specific width and height will be allowed) > and when the window > needs to be re-paint. > > What I have try is the following: > > A non-scrolable resizable bitmap-window, but then it is impossible to > obtain a larger window that > the one design in the interface builder (If scrolable it is possible). > > A non-scrolable resizable frame-window, but then I don't know where to > write the re-paint code. > > Either way I would like to control at run time the dimensions of the > window, say for example that > when resizing it, only the width and height which are multiple of 10 will > be possible (done by > rounding). > > > Thank you very much in advance for your replies. > Antoine. >