#ActiveWindow?
2 messages in this thread
Lance,
The simple answer to your question is: Yes, Intuition generates a
message when the window is resized. Specifically, you will get a standard
IntuiMessage with a class of NEWSIZE…but only if the window is sizable.
There is also a message you can get called ACTIVEWINDOW whenever your
window is activated by clicking in it. Or you can test the WINDOWACTIVE
bit in the flags of the Window structure. All of this should be pretty
clear from looking at the RKMs or the include file "intuition.h".
By the way, I'm curious…why do you need to know that your window is
'active'?
Victor A. Wagner, Jr.
Vic,
Thanks for the info. I've retested, insuring the flags were properly
set, and sure enough, in came the messages. I think I may have been
improperly initializing the Flags.
As far as why I'm interested; I'm designing/experimenting with a generic
window handler, and I thought it would be usefull info to pass on to the
the user of the handler. The more I think of it though, the fewer the
possabilities I can see for its usefullness. Shall see….
Thanks,
Lance Shorb
– via Whap!