Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SendBehind behaves like SendToBack with WindowGroups?



Hi,

I have several window groups in my application, and want to send another window in an outer group behind a window in one of the sub- groups. However, for some reason SendBehind() always sends the window behind *all* windows. Anyone have an idea why it would do that, and how I could prevent it? An example:

SeparatorWindow
SomeOtherWindow
WindowGroup1 {
	GroupedWindowA
	GroupedWindowB
}
WindowGroup2 {
	GroupedWindowC
	GroupedWindowD
}

I now want SeparatorWindow to land exactly between the two window groups. So, I do a SendBehind( SeparatorWindow, GroupedWindowB ). However, surprisingly this gives me:

SomeOtherWindow
WindowGroup1 {
	GroupedWindowA
	GroupedWindowB
}
WindowGroup2 {
	GroupedWindowC
	GroupedWindowD
}
SeparatorWindow

The actual situation also has additional groups as subgroups of these two window groups, and all windows are of kDocumentWindowClass and are subgroups of that group, not sure whether that changes anything.

Anyone have an idea what could be going wrong here? Under what circumstances would SendBehind send a window to the back? Is there another call I can use to put a window behind a window group?

Cheers,
-- M. Uli Kusterer
"The Witnesses of TeachText are everywhere..."



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.