Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

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.

[email protected]

SRP Computer Solutions


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

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/2255bf0c1855e074852565af0049b987.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1