Page 1 of 1

special window

Posted: Sun Feb 19, 2012 8:32 am
by delikanli_19_82
hello guys,

on windows it's possible to make a window like a popup-menu. that means, if you load the window by clicking in example on a button on another main window, this second window will show over the main window, but the focus still stays on the main window.

every event that occurs on the second window will work normal, but the main window has the focus. the main window shows active and has its shadows around.

this could be interesting to create an own combobox gadget. if the combobox-list gets popped up, this part would be also a window, but even without a shine of to be a window. it would show like a normal combobox-list.

i found some options in the os x carbon api, but nothing really useful. there are these options that are usable by ChangeWindowAttribute_():

kWindowNoShadowAttribute = 2097152, kWindowIgnoreClicksAttribute = 536870912.

at least i thought that maybe by using kWindowInWindowMenuAttribute it could be possible to create a regular popup-menu, where i could paste a window directly in it. but no idea how to do this.

i hope, i could explain my concern.

has some one any idea, how to solve this?

:-)