Window always on top (OpenInsight Specific)
At 18 FEB 1998 08:25:16AM Jeff Word Enterprises wrote:
In the knowledge base there is a command for setting a window "always on top".
X=Set_Property( @Window, 'STYLE_EX', '0x8' )
What is the command to undo this and set it as a normal window again?
At 18 FEB 1998 08:35AM Don Bakke wrote:
Jeff,
X=Set_Property( @Window, 'STYLE_EX', '0x8' )
I could be wrong, but I'm not sure this is the correct syntax. Usually one has to retrieve the current style, BitOr the current style with the style being added, and then use Set_Property to get the new style into the window.
Removing a style is similar but instead you BitAnd the BitNot of the style being removed (see STYLE(STYLE_EX) in the PRG).
Perhaps this is a unique situation however.
At 18 FEB 1998 09:27AM Blaise(Revelation) wrote:
Hey Jeff,
I am using this functionality in one of my applications also. If I don't want the window to be 'Always on Top' I simply set the 'Style_Ex' property to NULL or "".
Turn on (Always on Top) Set_Property(@WINDOW , "STYLE_EX" , "0x8") Turn off (Normal)
Set_Property(@WINDOW , "STYLE_EX" , "")
Good luckā¦
-Blaise