maximize-window

How to catch the maximize signal in Tk?

大城市里の小女人 提交于 2020-03-22 07:54:13
问题 You can bind a command with the X button of the window by this: wm protocol $windowPath WM_DELETE_WINDOW $command How can I do the same for the maximize button of the window? 回答1: There's no standard protocol for it, either among the X11 ICCCM set or the FreeDesktop set. As such, wm protocol cannot possibly be used for it. However, you can use the <Configure> event to track all size changes for a window. Note that if you set it on a toplevel, you will also get notifications for all widgets

Maximize window maintaining taskbar limits

て烟熏妆下的殇ゞ 提交于 2020-02-04 04:39:25
问题 I want to create a Qt application without the windows title bar (I want to create a customized one). I've created three buttons for minimizing, maximizing and closing the window. Everything works except for considering that when I maximize the window, application doesn't take into account the taskbar, and the maximized window takes the entire screen, going under the taskbar. A normal maximize command from windows instead maximizes the application window avoiding to go under the taskbar. If I

How can i maximize a specific window through cmd?(windows)

走远了吗. 提交于 2020-01-11 02:16:53
问题 I just wanna make a simple notepad .bat file that would maximize a specific process window. Is that possible? 回答1: Start takes an argument to do that. START /MAX notepad.exe However, if it an already running instance, it is outside cmd 's control. 回答2: If you want to maximize already running program/window you can try with windowMode.bat using its title (or a string that the title starts with) @echo off call windowMode -title "Notepad" -mode maximized or with its process id: @echo off call

Detect browser window Maximized/Minimized with Javascript

徘徊边缘 提交于 2020-01-10 04:57:04
问题 When the user clicks the Maximized/Restore Down or Minimised buttons of the browser, is there a way to keep track of these events with javascript? Are there any appropriate event or property to use? I want that when the user clicks the 'maximized' button at the top-right of the browser, the webpage should stretch to a specific width and when the browser is in the resizable mode, the webpage is resizable. Please can someone help me in this? I don't mind either javascript or jquery. Thanks in

Node-Webkit - Starting Maximized

懵懂的女人 提交于 2020-01-01 07:50:08
问题 I don't want a fullscreen application, but I would like to start a Node-Webkit application maximized. Can this be done? I am guessing its something to do with package.json, but can't seem to find what needs to be done. 回答1: I don't think the manifest has an option to do that. Instead, call nw's Window.maximize() on startup. Something like: // Load native UI library var ngui = require('nw.gui'); // Get the current window var nwin = ngui.Window.get(); Sometime later, in onload or some other

WPF window is under top/left placed taskbar in Maximized state

走远了吗. 提交于 2019-12-23 03:59:14
问题 I am working on WPF application and I faced problem that when WindowStyle=None and WindowState = WindowState.Maximized the application goes under top or left placed taskbar. When taskbar is placed bottom or right all works normal. I know about Left and Top properties of window, but they are ignored in Maximized state. Also there is Microsoft.Windows.Shell.WindowСhrome that gives ability to drag, double click to maximize and restore, snap and unsnap. (it is need to be added as dll reference) I

Keep window maximized with AutoHotkey?

时光怂恿深爱的人放手 提交于 2019-12-23 02:59:07
问题 I have an AutoHotkey script that launches an application maximized like this: `Run, myprogram.exe,, Max` It then gets rid of the minimize and restore buttons. I can still click on the task bar and drag downwards to restore the window. Is there any good way to keep my window maximized in AHK? How about just locking the window's position? 回答1: Does the F11 key maximize the app? When in F11 mode most apps completely lose their title bar. If so, run the app then send an F11 key (You may need to

Expand (maximise) subplot figure temporarily — then collapse it back

筅森魡賤 提交于 2019-12-21 19:40:23
问题 Often in Matlab we would plot a figure with many subplot axes, but they are all tiny. In the prevalent UX paradigm, you would expect to be able to double-click such a small plot to have a closer look using the entire screen space. Typically this is the reason I avoid using subplot , but plot many individual figures instead — so I can move them around on the screen and double-click on their titlebars which (on Windows) maximises the figure to full screen. (Double-click again, and it returns to

How to trigger the event associated with maximize in C#

微笑、不失礼 提交于 2019-12-20 01:33:40
问题 Consider the following code: Window myWindow = new MyWindowSubclass(); myWindow.BringIntoView(); myWindow.Show(); // Code which is effective as pressing the maximize button Also, how to detect if the window is indeed in maximized state. 回答1: In WPF, you can use the WindowState property: myWindow.WindowState = WindowState.Maximized; You can of course query that property to obtain the current window state: if (myWindow.WindowState == WindowState.Maximized) { // Window is currently maximized. }

What can I do about maximized, styled windows, which show their borders on adjacent monitors?

馋奶兔 提交于 2019-12-18 11:47:14
问题 On a multi-monitor system, a "blank" VCL application maximizes fine, but the same application with styles enabled (and one chosen as default) maximizes incorrectly. What I'm seeing is the right-hand edge of the window extend onto the 2nd monitor (my main is on the left). When I started comparing to other Windows apps, I noticed that under Windows 7 (at least), maximized windows do not even have non-client borders on the left, right or bottom sides. And indeed, the standard VCL (non-styled)