No replies -- reposting this.
I have troubles with windows of the metal look. I create the window from
err = CreateNewWindow (kDoentWindowClass,
kWindowCloseBoxAttribute | kWindowCollapseBoxAttribute
| kWindowStandardHandlerAttribute | kWindowMetalAttribute
I read in the doentation that you should always set the compositing
attribute when using the metal attribute. Can anyone explain me what the
compositing attribute is for? When I set it, I don't get any update events
any more!!! When I do NOT set the compositing attribute, the window will be
Another problem is that, whether the compositing attribute is set or not, a
click in the window will always result in the window being dragged. I do get
a content click event, but only when the mouse button has been released.
This is not so when I am using a normal window rather than a metal one. I
have found out that I could solve this problem by overriding the
kEventWindowHitTest event, but it would be rather troublesome as I would
have to create a content click event from the handler, yet the handler is
not only called on clicks but on mere mouse movements as well (probably
because the window widgets need to be highlit when the mouse is over them).
I wonder how this is done in a clean way? Should I create custom controls
for all the areas where I want to receive mouse click events?
Thanks in advance,