[comp.sys.amiga.programmer] Outputting Text in a Window

bneal@umaxc.weeg.uiowa.edu (Brian Neal) (05/25/91)

 
Hi,
	I am writing an application that writes a lot of text to a window.
I would like to have the user be able to resize the window and still
have the program "intelligently" output text.  By this I mean not truncate
words at the right edge of the window.  I don't need help with the 
algorithm for formatting the text to be output, but on how to figure
out the current width of the window in characters. 
	From looking at the RKM it seems that this can be done by opening
a custom window and using the console.device.  But is this the simplest
way?  Can I use a CON: window and somehow determine all the relevant
information?  Your input is most appreciated.
 
Brian (I'm not a lazy programmer, just an inexperienced one!  :^) )