Welcome, Guest. Please login or register.

Author Topic: window size  (Read 3008 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Thomas

Re: window size
« on: February 01, 2012, 04:39:40 PM »
Quote from: Gilloo;678581
For a GimmeZeroZero window, use w->GZZWidth and w->GZZHeight instead w->Width and w->Height.


GZZWidth and GZZHeight are maintained for non-GZZ windows, too. You don't need to calculate them yourself.

Offline Thomas

Re: window size
« Reply #1 on: February 02, 2012, 07:36:27 AM »

Offline Thomas

Re: window size
« Reply #2 on: February 02, 2012, 04:02:20 PM »
When you say message handling you probably don't speak about AmigaOS messages, do you?

If you have multiple Amiga message ports it's quite easy to handle them all at the same time. You have one place in your program where you Wait() for all signals of all ports and then handle each port depending on which signal you received. (Example attached).

Offline Thomas

Re: window size
« Reply #3 on: February 02, 2012, 04:34:08 PM »
Quote
while waiting to hit a key, the last thing I need is to be told I need to resize


But what are you going to do if you tell the user to hit a key and he instead resizes the window?

I would just wait for input and then react on the input, i.e. continue printing text if the user hit a key and reflow the text if he resized the window.

If you are busy you shouldn't Wait() of course. You could do something like this: (see attachment)