maximize

Eclipse shortcut ctrl+m behavior

In eclipse we have the ctrl+m shortcut for maximizing windows. But when you have two editors opened side by side, it maximizes both editors. Is there anyway to change the default behavior of ctrl+m so it only maximizes one window? (Personally this is the behavior i need 9 out of 10 times using ctrl+m) Thanks. ...

GUI freezing after datagridviews have been updated using backgroundworkers

I have made an application which runs three backgroundworkers simultaneously. It basically updates three datagridviews, which it is doing spot on. My problem is if I press maximizebox button or anywhere in any of the datagridview the program hangs for quite a long time. I am able to use the horizontal scroll but not vertical scrolls. I h...

Canvas maximization bug?

I must've killed over an hour on what seems to me like strange behaviour that happens in Firefox, Safari and Chrome. Here is some code: <!doctype html> <html> <head> <title>Watch me grow scrollbars!</title> </head> <body onload="resizeCanvas()"> <canvas id="canvas"></canvas> </body> </html> <script type=...

How can you make the form maximize to any computer screen in a Windows Forms application?

So I am making a game on Visual Studio C# and I want the form to be automatically maximized to any user's computer screen when compiled? How can I do that? ...

Disabling Minimize & Maximize On WinForm?

Hello SO and happy Friday, WinForms have those three boxes in the upper right hand corner that minimize, maximize, and close the form. What I want to be able to do is to remove the minimize and maximize, while keeping the close. I also what to make the close minimize the form instead of closing it. How can this be done? ...

How can I make a WPF window maximized on the screen with the mouse cursor?

According to the MSDN documentation for the WindowStartupLocation Property: Setting CenterScreen causes a window to be positioned in the center of the screen that contains the mouse cursor. Although the MSDN doc for the CenterScreen Field itself defines it somewhat less clearly as: The startup location of a window is the center...

Qt hide minimize, maximize and close buttons

Do you know how to hide minimize, maximize and close buttons of title bar in Qt. i did it before in some other project but i could not find it now. could u help me? especially i need to hide it on QMainWindow ...

How do I sync a window's System-menu after SetWindowPos()?

After SetWindowPos( hwnd, HWND_NOTOPMOST, x, y, cx, cy, SWP_SHOWWINDOW), a window whose state was previously maximized, does resize and reposition itself as expected, but the system menu does not change, and still presents the menu items for a "currently-maximized" window, even though it is no longer maximized. Following up with PostMes...

Java MIDP app runs minimized when activated via PushRegistry alarm

I'm trying to get an application to restart correctly on a ZTE GR255 phone. There's some network activity as the app starts, and if it times out, the user gets the option to retry. I've implemented retrying by just killing the applicaion via PushRegistry.registerAlarm to start the app in 4 seconds, then killing the app with notifyDestro...

Minimise / maximise a div

I ve created a chat appliction in one DIV. Now i need it to be placed in the bottom of page, which should be minimised & maximized Can any one help me <div style="height:40px; width:300px; background-color:#CC66FF; position:absolute;bottom:15px;" > <div id="vithu" style="height:40px; width:200px;"></div> <span id="error_msg"></spa...

Maximizing a JFrame on action?

Hey all, Does anyone know how to maximize a JFrame once a specfic action has occured? I'll post my code below, I'm a fiend for not commenting my code (I'll do it at some point) but it should be fairly self explanitory. What I was trying to do was to get the frame to maximize once the option was selected from the menu. If anyone can tell...

Maximize Form from differient form C#

hi does anyone know how to maximize a form from another formin c# i tried the code below but it wont work Form1 form1 = new Form1(); form1.WindowState = FormWindowState.Maximized; any ideas ...

WinForm Maximize On Tray Restore?

Hi stack overflow, I have a little problem where if I have a WinForm and maximize it, and send it to the system tray, when I restore it, it isn't the maximum size any longer. I'm trying to set a flag IsMaximized to true if the form is maximized when it is sent to the tray, but when it is being sent to the tray, the form state is mini...

Maximized Window Restores to Full Screen

Using CWnd::ShowWindow(SW_SHOWMAXIMIZED) maximizes my app window as expected. However, when clicking the restore button on the app (or double clicking the title-bar), the restored size is the same size as the maximized window, which is confusing for the user. Using this alternative code has the same problem: WINDOWPLACEMENT wndpl; Get...

horizontally center vertically maximized WPF window

I have a WPF window that has a MaxWidth set, so when I hit the Maximize button, it maximizes vertically but not horizontally. This is expected behavior. However, the window always docks to the left side of the screen (Windows 7, if that matters) and I want it to be centered horizontally when Maximized. I tried adding the following Sta...

Algorithm for maximizing coverage of rectangular area with scaling tiles

I have N scalable square tiles (buttons) that need to be placed inside of fixed sized rectangular surface (toolbox). I would like to present the buttons all at the same size. How could I solve for the optimal size of the tiles that would provide the largest area of the rectangular surface being covered by tiles. ...

How to remove the window border (containing minimize, maximize and close buttons) from a Qt widget ?

I would like to animate a widget (QPushButon) to move across my application screen. For that I create a new button and using the QPropertyAnimation class and the property "geometry" of the button, I move it from top to down. The problem is that the button comes with the close, minimize, maximize buttons, etc. I don't want them to be ther...