Window Operations * ITW. / NTW.

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > Window Operations > ITW. - If Top Window >

Window Operations * ITW. / NTW.

"N" - Flag "No TopMost"

Previous Top Next


MiniRobotLanguage (MRL)

 

"N" - Flag "No TopMost"

No more TopMost

 

 

Intention

 

In windows, there is a property  of Top-Windows that will make them stay always in front of all other windows.

 

This property is called "TopMost".

 

A window that is "TopMost" is always on top of all other windows, that are not TopMost.

 

Only another TopMost window can be in front of an TopMost window.

 

For example the MR-Editor can be set to TopMost.

 

Now you may think "this sounds good!". Be warned. This is an advanced feature for advanced users.

 

Programs have Messageboxes and also open up other windows. In case they have been made TopMost, you may not be able to see those Messages or PopUp windows. This may lead for you to think that the program hangs.

 

Why don't you see those messages?

Because they will not be TopMost and therefore they will appear behind the TopMost window!

 

Therefore use TopMost style only when really needed and when you know what you are doing.

 

Using the Flag "M", the window will be made TopMost immediately after it was localized.

 

ITW.cM|WindowClass

MMV.

EIF.

 

Use the "N"-Flag to remove the TopMost-property from a TopMost window.

 

 

 

 

 

Example

 

'#EXE:?pfad\

'#SPI:ForceWrite

'

' Locate the Application (Top-)Window

ITW.Mc|#32768

VAR.$$HWN=#hwn#

EIF.

' Remove the TopMost Property

ITW.hN|$$HWN

'...

EIF.

 

ENR.

 

 

 

 

Remarks

 

-

 

 

 

Limitations:

 

-

 

 

 

See also:

 

    "M" - Flag - ITW.