always-on-top

How can I set a panel to be always on top when changing tabpages in C#?

北战南征 提交于 2019-12-08 08:59:06
问题 I have program with two tabs in a TabController, I also have a panel I want to always have in front. Despite what tabpage I am in. I tried setting the panel to BringToFront() , but that don´t seem to work when I change tabpage. Any suggestions how to solve this? 回答1: If the Panel is contained by the TabPage, then you'd have to manually switch it to the current tab whenever the tab changes, then call BringToFront(). An alternative would be to make the Panel so it's directly contained by the

How to place a Xul window as “Always On Top”?

拥有回忆 提交于 2019-12-07 15:39:36
问题 I found this file at google code with the function: function SetAlwaysOnTop() { var chkTop = document.getElementById("itmAlwaysOnTop"); var xulWin = window.QueryInterface(Ci.nsIInterfaceRequestor) .getInterface(Ci.nsIWebNavigation).QueryInterface(Ci.nsIDocShellTreeItem) .treeOwner.QueryInterface(Ci.nsIInterfaceRequestor) .getInterface(Ci.nsIXULWindow); if(chkTop.getAttribute("checked") == "true") { xulWin.zLevel = xulWin.raisedZ; } else { xulWin.zLevel = xulWin.normalZ; } } The parts of it

Really annoying bug with TopMost property in Windows Forms

假装没事ソ 提交于 2019-12-07 05:12:33
问题 I have this Windows Forms application where it sits in the notification area. Clicking on the icon brings it up front, clicking it again (or clicking on the app X icon) sends it back. This is the type of app that having the window always on top is important when it's displayed by clicking the icon (it's optional though). Right-clicking the icon brings up a context menu where one can select to enable the "always on top" option or not. When the application first starts up, the app settings are

Visual Studio 2010 addin which makes floating window non-topmost

有些话、适合烂在心里 提交于 2019-12-06 12:51:14
问题 Motivation: I miss MDI in Visual Studio 2010. In long term the best solution would probably be to have it back by Microsoft. (You can vote for this at Microsoft Connect.) However, even if Microsoft might decide to have it back, it will probably take a few years. I am therefore exploring the alternative meanwhile. Making the source window floating is a step to MDI, but it has nasty implication of the window being always on top of everything, including tool windows. Would it be possible to

How to place a Xul window as “Always On Top”?

倖福魔咒の 提交于 2019-12-06 04:36:24
I found this file at google code with the function: function SetAlwaysOnTop() { var chkTop = document.getElementById("itmAlwaysOnTop"); var xulWin = window.QueryInterface(Ci.nsIInterfaceRequestor) .getInterface(Ci.nsIWebNavigation).QueryInterface(Ci.nsIDocShellTreeItem) .treeOwner.QueryInterface(Ci.nsIInterfaceRequestor) .getInterface(Ci.nsIXULWindow); if(chkTop.getAttribute("checked") == "true") { xulWin.zLevel = xulWin.raisedZ; } else { xulWin.zLevel = xulWin.normalZ; } } The parts of it that I need are just: var xulWin = window.QueryInterface(Ci.nsIInterfaceRequestor) .getInterface(Ci

C/C++/C# Force window to be on top

亡梦爱人 提交于 2019-12-06 02:53:48
问题 Is the there a way to force another window to be on top? Not the application's window, but another one, already running on the system. (Windows, C/C++/C#) 回答1: You can use the Win32 API BringWindowToTop. It takes an HWND. You could also use the Win32 API SetWindowPos which also allows you to do things like make the window a top-level window. 回答2: SetWindowPos(that_window_handle, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE); BringWindowToTop moves the window to the top of the Z-order

Really annoying bug with TopMost property in Windows Forms

只愿长相守 提交于 2019-12-05 11:01:49
I have this Windows Forms application where it sits in the notification area. Clicking on the icon brings it up front, clicking it again (or clicking on the app X icon) sends it back. This is the type of app that having the window always on top is important when it's displayed by clicking the icon (it's optional though). Right-clicking the icon brings up a context menu where one can select to enable the "always on top" option or not. When the application first starts up, the app settings are read from an XML file and I'm 99% that this is working as it should, the TopMost property is properly

Android - Set a view to be on top of items drawn with canvas

跟風遠走 提交于 2019-12-05 07:04:05
I have an android app where the user paints, moves and reshapes some objects over a photo. In this page my screen layout consists of the photo that is loaded and below it (in portrait view) some buttons. My view looks exactly as I want it with the xml below: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" android:id="@+id/linear" > <LinearLayout android:id="@+id/buttons" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation=

Can't set always-on-top for external applications in Java / C++

一笑奈何 提交于 2019-12-05 03:00:19
问题 I'm looking for solution to make external application (not windows application like notepad or calc.exe) to stay always-on-top after pressing the button in Java GUI. I'm using this code in C++ for taking all opened windows on desktop and matching their Process ID (PID) with sent PID (from my app in Java) : #include "cjni.h" #include <cstdlib> #include <iostream> #include <windows.h> using namespace std; BOOL CALLBACK EnumWindowsProc(HWND windowHandle, LPARAM lParam){ DWORD searchedProcessId =

JavaFX Secondary Screen “Always on Top” of All Applications

前提是你 提交于 2019-12-04 23:45:48
问题 I've read about using a JDialog to wrap a JFXPanel in order to use JDialog's alwaysOnTop method. It works, but I'm having a small issue with this hack. Since I'm using this technique to make secondary windows to my main application (popups etc), I need to set them on top of the main window. If I use the wrapper hack to do this, the top panel is "always on top" of everything (including other applications). Is there a way to put the secondary screen only on top of my application ? I don't like