minimize

Minimize a external application with Delphi

Is there a way to Minimize an external application that I don't have control over from with-in my Delphi application? for example notepad.exe, except the application I want to minimize will only ever have one instance. ...

Javascript Commands Only Executed When Unminimized

I want to log to the console when I'm using unminimized JS files. Comments are taken out already when I minimize JS. I'm wondering if there's a way I can write a command that isn't commented out but will still be taken out when I minimize the javascript file. ...

Vmware dual monitor problem

Hi, I am running VMware under windows on a dell d630 laptop. I am using the laptop monitor plus an external lcd, with the vmware maximized on an lcd and windows running on the laptop monitor. The lcd is much larger and therefore has larger resolution. When I minimize and then maximize under windows, the vmware window is minimized, but ...

How to disable the minimize button in C#?

In my application I need to temporarily gray out the minimize button of the main form. Any ideas how this can be achieved? I don't mind doing p/invokes to Win32 dlls. Edit: Graying out the minimize button would be the preferred solution, but is there any other way of preventing the form from becoming minimized? ...

Pocket PC/Windows Mobile: How to detect smart minimize

How do I detect when my Compact Framework application is being smart-minimized (smart minimize is what happens when the user clicks the "X" button in the top-right corner on a Pocket PC)? The Deactivate event isn't the right way because it occurs in circumstances other than minimization, such as when a message box or another form is sho...

Seeking an algorithm to efficiently layout calendar event banners

I'm looking for an algorithm to efficiently place all-day/multi-day event banners, much like the month view in Outlook or Google Calendar. I have a number of events with a begin and end date, ordered by increasing begin (and then end) date (or any other order you please, I'm gathering events from a database table). I would like to minimi...

Vista live thumbnail issue with SetWindowRgn

I know I am probably missing something, but I can't seem to get windows to show the live thumbnail preview correctly when using a window that has a region. When hitting the minimize button the preview will clip to the minimized size (160x25) rather than showing the full preview (like it does with other windows). Few points to make: ...

What do you use to minimize and compress JavaScript libraries?

What do you use to minimize and compress JavaScript libraries? ...

Minimize Polygon Vertices

What is a good algorithm for reducing the number of vertices in a polygon without changing the way it looks very much? Input: A polygon, represented as a list of points, with way too many verticies: raw input from the mouse, for example. Output: A polygon with much fewer verticies that still looks a lot like the original: something usa...

How do I put a Java app in the system tray?

I have a little control-panel, just a little application that I made. I would like to minimize/put the control-panel up/down with the systemicons, together with battery life, date, networks etc. Anyone that can give me a clue, link to a tutorial or something to read? ...

PyQt4 Minimize to Tray

Is there a way to minimize to tray in PyQt4? I've already worked with the QSystemTrayIcon class, but now I would like to minimize or "hide" my app window, and show only the tray icon. Has anybody done this? Any direction would be appreciated. Using Python 2.5.4 and PyQt4 on Window XP Pro ...

How to get the screenshot of a minimized application programmatically ?

Howdy guys, I'm trying to get the screenshot of a minimized application, any ideas of how to it under windows ? I'm using C# tks in advance, Jose ...

Letting a Batch file Minimize a DOS window?

So i'm kinda into MS-DOS and such again, but i came to ask myself, How can i minimize a DOS window? Any kind would be ok, minimalize, shrink to a tiny blue block. I just can't seem to find a way to let it work on my Windows XP computer, is realy evrything excluded in XP?! ...

Minimizing all open windows in C#

I saw this C++ code on a forum which minimizes all open windows #define MIN_ALL 419 #define MIN_ALL_UNDO 416 int main(int argc, char* argv[]) { HWND lHwnd = FindWindow("Shell_TrayWnd",NULL); SendMessage(lHwnd,WM_COMMAND,MIN_ALL,0); Sleep(2000); SendMessage(lHwnd,WM_COMMAND,MIN_ALL_UNDO,0); return 0; } How...

Injecting a javascript file with the fewest possible characters?

I'm working on a bookmarklet, and thought I'd throw down a challenge: how to inject an external javascript file from a link in as few characters as possible. Here's the shortest I was able to come up with: javascript:(function(d){d.body.appendChild(d.createElement('script')).src='URL'})(document) That's 88 characters without the URL....

Ways to reduce MS SQL database backup file sizes

This question might make one smile, really, HDD space is as cheap as dirt today. But nevertheless, with extremely slow internet connections (which is still the case in the major part of the world) transferring backups from different branches might be real pain in the back. So, do you have any ideas on how to decrease database file size ...

How do I detect when my window is minimized with wxPython?

I am writing a small wxPython utility. I would like to use some event to detect when a user minimizes the application/window. I have looked around but did not find an event like wx.EVT_MINIMIZE that I could bind to. Anyone know of a way that can be used to detect this? ...

Which gems can a Rails app survive without?

actionmailer actionpack activeresource activesupport I have a basic scaffolded CRUD app that uses ActiveRecord to connect to a SQLite database and I have frozen my Rails gems. Which of these gems could I delete without affecting my app? ...

Dont want form to minimize

Is it possible to disallow minimizing of a form\application in delphi ? I found the following code procedure TForm1.WMShowWindow(var Msg: TWMShowWindow); begin if not Msg.Show then Msg.Result := 0 else inherited; end; but if I press windows key + M or Windowskey + D, then it still gets minimized is there a way to preven...

Image animation stops on minimizing and restoring

I have a .NET WinForms application with an animated GIF in a PictureBox. It's a loading animation, shown while a BackgroundWorker does some processing in another thread. I load the image by setting the Image property and it animates on its own. All is fine until I minimize and restore the application. At which point, the image stops ani...