Blitz (78/459)

From:Frederic Laboureur
Date:7 Jan 2000 at 18:36:42
Subject:Re: FRED -> Possible NCS windowlib bug!

Hello Toby,

> I say -possible- because there may be a logical explanation for this that
> isn't explained in the docs...
>
> My program needs to expand/shrink its windows' size according to which
> menu the user is viewing (it's a sort of shell-like display). I do this
> using NWSize, the problem being that it takes a while for NWInnerHeight to
> take notice of the new size... At the moment I have a simple loop that
> keeps VWaiting until it's taken note of the new size, except if the last
> menu size was the same as this one, then it'll go on infinitely!
>
> What I need is for NWInnerHeight and InnerWidth to take notice of the new
> size STRAIGHT away! Cuz all my lovely borders and flashy text go haywire
> otherwise ;]
>
> Any help from anyone is appreciated (better work-arounds or a solution I
> havn't thought of? I am pretty tired atm:)

Ok :). You simply have an IDCMP event which is send to the window message
port when the window has been efficively resized. This is the following
flags:

#IDCMP_NEWSIZE

> VWait 100 would work I suppose but that's hell dodgy =]

The bad solution :-)

Enjoy,



Fred.

--------------------------------------------------------------------------

/\/\/\/\/\ Frederic 'AlphaSND' Laboureur
__/ \_ e-Mail : alphasnd@free.fr
/^ ^ u^ ^n ^ ^\
(o o_ /(o o)\ _o o) Quality software for the Amiga
_/_ /// | | \\\ _\_
(o_o)// (o o) \\(o_o) � 1999 - Fantaisie Software
`---' `---' `---'
F-Base TheBoss F-Bench http://www.citeweb.net/fantaisi

PureBasic: R.E.L.E.A.S.E.D - Feel the Power !

--------------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie