minimize

How do I make my CSS/HTML category menu minimize gracefully when a user minimizes the browser window?

My Problem When I minimize the browser window the category menu does not minimize the way I would like it to. I would like the li elements to drop one by one below the other other li elements as the window is minimized. The problem is that the whole ul element is dropped below the p element. A live example of the menu is located here. ...

Minimizing a supplementary JFrame when main application JFrame gets minimized

The application I'm working on contains a main JFrame, from which users might eventually open another supplementary frame. I am trying to implement such a behavior of the app where the supplementary frame is minimized (iconified) as soon as the main frame gets minimized. I was thinking of overriding the setExtendedState method of the ma...

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...

solve.QP require D to be symmetric positive definite in R

When I run solve.QP on my problem, I get the following error from R: Error in solve.QP(sigma, rep(0, 5), t(Amat), bvec, meq = 2) : matrix D in quadratic function is not positive definite! My sigma matrix is symmetric but is not positive definite. Why is this needed? If I solve it myself using Lagrangian functions, I am able to get ...

Painted content invisible while resizing in Java

Please note I haven't tested this on a Windows-machine only on a Mac-machine. I'm not so sure whether this also occurs on a Windows-machine... When I resize my Java-application the content is invisible. I already found a way to fix it after resizing it, but not while the user is resizing the window. I'm not using Swing or something bec...

android: How can I send an activity to background & call her from there

I am in process of creating some test application "Time Tracker" app like stopwatch so I start app go to Activity where I start time counter and now I need some functionality to send my activity to background or minimize or hide and after some period to call this activity again and stop her counter to get passed time period ....

Code for minimizing application window in Mac?

Hi, I'm wondering whether there is a way to write code for Mac OS 10.5 which will minimize and restore a window. What language would it be in? Could someone please give me an example or direct me to documentation on Apple's developer site I should look at? Thanks! ...

IE is randomly minimizing when a link is clicked

I have the bizarre problem. When I click on a link in IE7 the window minimizes. It seems to only be a subset of the links on the page. It also doesn't consistently happen with the same link and differs from computer to computer. example link text: <a hidefocus="on" href="#" tabindex="1"><span unselectable="on" id="extdd-102">Canadi...

How do I minimize or restore an external app with the correct animation effect in Vista/Win7?

I'm writing an app that can minimize or restore other, external apps' windows. However, when I do this, the windows will usually just minimize or restore directly, without the zoom/collapse animation effect that you normally see. Or, in some cases, minimizing will cause the window to fade, but not collapse. I've tried posting or sendi...

Add-in makes Excel crash when starting minimized

I start Excel from within my C# WinForms application using Process.Start(...) (this has a reason). I want to start it in background, without distracting the user, so I try to start it minimized or hidden. In both cases, I experience a very weird behavior: After some seconds, Excel restores the window (even makes it visible if it's hidde...

Cancel A WinForm Minimize?

Hi, I have a winform with the minimizeMaximizeClose buttons disabled, but still if someone presses it in the task bar, it will minimize. I want to prevent this from happening. How can I accomplish this? ...

Need Cost Minimization Algorithm for USPS Flat Rate Boxes

I have a client who ships fluids in USPS flat rate boxes. If you are unfamiliar with USPS flat rate boxes, they are boxes of a certain volume that ship regardless of weight. Anything that fits in the box, ships for one low price. My client uses two box sizes: the medium flat rate boxes, and the large flat rate boxes. Additionally, my cli...

How can I override the close button to minimize instead for a specific application?

I would like to override the close button to minimize an application instead. Can I write such thing in C#? Or do I need to use C++? How do I write this kind of hook? Do I need a process running or would a driver/dll/service suffice? As far as I got researching I think I have to do something like this but I don't know how exactly: ...

How to minimize a JFrame window from Java ?

In my Java app, I have a JFrame window, how can I minimize it from my Java program ? ...

Swap if-statements

Hi, I am working on code minimization and enhancement. My question is: is it possible to swap the if statements above without destroying the logic of the code? int c1 = Integer.parseInt(args[0]) ; int c2 = Integer.parseInt(args[1]) ; int c3 = Integer.parseInt(args[2]) ; if (c2-c1==0) if ( c1 != c3 ) Since betwe...

Insert variables to minimize code

Hi, I am facing a strange problem. if ( c2==c1){ c3 *= 2 ; System.out.println( c3 ) ; ..... } I want to insert c3*2 in the println statment. But if ( c2==c1){ System.out.println( c3*2 ) ; gives me a different result. Here is the whole code: public static void main(String [] args) { int c1 =...

Minimize code in reference to read/write operations

Hi, I started with the following code: class Vereinfache2_edit { public static void main(String[] args) { int c1 = Integer.parseInt(args[0]); int c2 = Integer.parseInt(args[1]); int c3 = Integer.parseInt(args[2]); /* 1 */if (c2 - c1 == 0) { /* 2 */if (c1 != c3) { c3 += ...

Minimize loops in reference to read/write operations

Hi, the last thing I want to minimize today is code that contains while and do-while loops. Here is the original: class Vereinfache3_edit { public static void main(String [] args) { int c1 = Integer.parseInt(args[0]) ; int c2 = Integer.parseInt(args[1]) ; int c3 = Integer.parseInt(args[2]) ; ...