On Tue, 17 Jan 2006, Ivan Butorin wrote:

Hello,

I'm trying to write some kind of simple function that places window on
top of others:

DestroyFunc PlaceOnTop
AddToFunc PlaceOnTop
+ I DestroyWindowStyle
+ I WindowStyle StaysOnTop, !Iconifiable
+ I RefreshWindow

but 'StaysOnTop' style doesn't work (!Iconifiable, which was put here
just for test, works). It looks like applying 'StaysOnTop' style
doesn't work on existing windows.

Could you please tell me what am I doing wrong?


The StaysOnTop, StaysOnBottom and Layer window styles are initial styles only. To change the layer of an existing window you should use the Layer command. So you would have to use Layer 0 6 to put the layer on top (unless you have set a different top layer with the DefaultLayers command)

/Viktor

Reply via email to