Questions tagged [minimize]

To minimize is to replace one object with another object that can restore the original when selected.

In a graphical interface, to minimize is to replace one object with another, less obtrusive object that can restore the original when selected. The original object is often a window; the minimized form is often an iconic button located in a system dock, tray or task bar.

849 questions
4
votes
1 answer

Having trouble with scipy Minimize function, it is giving me odd results

Created an objective function Added constraints The problem is no matter what initial guess I use, the minimize functions just keeps on using that number. for example: If I use 15 for the initial guess, the solver will not try any other number and…
DataByDavid
  • 1,039
  • 3
  • 13
  • 20
4
votes
2 answers

JMenu doesn't appear until I minimize or resize the JFrame

I have a GUI with a JMenuBar, the problem is that sometimes a JMenu doesn't appear until i resize or minimize the JFrame. Can someone help me?
4
votes
1 answer

C#, FormBorderStyle:None Restore Issue

I have an app that uses Forms with FormBorderStyle set to "None." The issue with this is that if a user hits the "Show Desktop" button (which effectively minimizes all opened windows) and then restores one of the Forms from the taskbar, all of the…
funseiki
  • 9,167
  • 9
  • 36
  • 59
3
votes
1 answer

Why isn't this modeless child JDialog minimized when parent JFrame is?

My understanding is that when a parent JFrame is minimized then its children also are minimized but in the following dirt-simple example it doesn't happen (i.e. the child dialog stays visible when the jframe is minimized). Am I missing…
DeegC
  • 373
  • 4
  • 12
3
votes
1 answer

detect keypression when minimized and trayicon

For my test I've created a little program in C# to detect key presses with this code: protected override void OnKeyDown(KeyEventArgs e) { if (e.KeyCode == Keys.F12) MessageBox.Show("f12 pressed"); } This works fine when the form is focused and…
devilkkw
  • 418
  • 2
  • 6
  • 17
3
votes
3 answers

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…
Pavel Bastov
  • 6,911
  • 7
  • 39
  • 48
3
votes
3 answers

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…
Jed Schmidt
  • 2,907
  • 23
  • 23
3
votes
1 answer

NSWindow loses miniaturize button on Lion

I'm having this problem on OSX Lion when entering/exiting fullscreen. I tried to reapply the style mask without success: NSUInteger styleMask = NSResizableWindowMask | NSClosableWindowMask | NSMiniaturizableWindowMask |…
loretoparisi
  • 15,724
  • 11
  • 102
  • 146
3
votes
3 answers

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…
billyy
  • 2,265
  • 3
  • 18
  • 13
3
votes
3 answers

How to get the screenshot of a minimized application programmatically?

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
user90188
  • 41
  • 2
3
votes
1 answer

When I minimize the window and restore it again the window has a black background, I can't figure out why

I'm new in programming Windows Application, and I have simple window with some checkboxes, text and button. Everything seems to work as it should, but when I minimize the window and restore it again the window has a black background, I can't figure…
3
votes
1 answer

How to optimize the electric vehicle charging cost using Gekko?

from gekko import GEKKO import numpy as np import matplotlib.pyplot as plt m = GEKKO() m.options.SOLVER = 1 m.options.IMODE = 3 Num_car = 1 TOU =…
LAP1040400
  • 31
  • 3
3
votes
0 answers

Numerical Instability in Optim.jl

I'm currently working on a project in Julia where I am starting with an input beta which is assumed to be incorrect. I'm running through a sequence of code that updates this beta to be the correct value and checking the error. As beta gets larger, I…
3
votes
4 answers

Pandas find subset of rows minimizing the sum of a column under other column constraint

I have this very simple idea of finding the subset of rows that minimizes the sum of a column, while the sum of another column has to be greater than a certain value. Example: df = pd.DataFrame({'Names': ['a', 'b', 'c', 'd', 'e', 'f'], …
Waroulolz
  • 297
  • 9
  • 23
3
votes
1 answer

Scipy minimize / Scipy Curve fit / lmfit

log(VA) = gamma - (1/eta)log[alphaL^(-eta) + betaK^(-eta)] I'm trying to estimate the above function with nonlinear least squares. I am using 3 different packages (Scipy-minimize, Scipy-curve_fit and lmfit - Model) for this but I find different…