window

How can I resize an image dynamically with CSS as the browser width/height changes?

本小妞迷上赌 提交于 2019-12-17 01:36:02
问题 I wonder how I could make an image resize along with the browser window, here is what I have done so far (or download the whole site in a ZIP). This works okay in Firefox, but it has problems in Chrome: the image does not always resize, it somehow depends on the size of the window when the page was loaded. This also works okay in Safari, but sometimes the image is loaded with its minimum width/height. Maybe this is caused by the image size, I am not sure. (If it loads okay, try to refresh

How to check if explorer window is open by title in batch?

﹥>﹥吖頭↗ 提交于 2019-12-14 04:13:39
问题 How do I check if an explorer is open or not in batch? I need to take a screenshot of the directory with a file selected, but only after the window has opened. The window title is always the same. Thanks Example: REM Opening folder with a file selected START /W EXPLORER /SELECT,\\10.10.10.10\C$\ThisFolder\FileToHighlight.txt REM Unreliably waiting for window to open TIMEOUT /T 3 /NOBREAK >NUL REM Taking screenshot of window with a third-party app START .\Bin\screenshot-cmd.exe -wt "ThisFolder

C++/SFML display glitch with sprite member changed by mouseclick

一笑奈何 提交于 2019-12-14 03:54:45
问题 I am learning C++/SFML and as a practice exercise I am making a small program that dispalys a 10x10 grid of 64x64 px square brown sprites in a window. This program allows you to select green/yellow/blue/grey/brown square sprites using the keyboard and replace any tile on said grid with this selected sprite. Game loop below: while (window.isOpen()) { window.clear(sf::Color(sf::Color::Black)); sf::Event event; while (window.pollEvent(event)) { if (event.type == sf::Event::Closed) window.close()

disable maximize capacity in a wpf window

别来无恙 提交于 2019-12-14 03:49:37
问题 I'm trying to disable the maximize capacity (not the maximize button) in a wpf window, but so far nothing has succeded. I'm using a window with WindowStyle="none", but when I drag the window to the far top of the screen, the OS "maximizes" the window (terribly bad, by the way). I uploaded 3 pictures to show what is happening exactly. (however, due to the fact that I don't have 10 reputation, I have to post the links instead. Sorry about that. And I can't put all 3 links, only 2 of them, but

What is the best way to determine if a window is actually visible in WPF

这一生的挚爱 提交于 2019-12-14 03:43:28
问题 I'm trying to toggle the display of a small window based on the click of a notify icon in a system tray app. This is simple enough to implement, however when the small window is displayed and another application takes focus and therefore moves in front of it (z-order) I want the toggle to assume that the small window is now hidden, even though it's visibility is still set to visible. Otherwise, clicking the icon would set the windows visiblity to hidden even though it is already hidden behind

what can be used to prompt translucent window or notification? screenshot example attacehed [closed]

我们两清 提交于 2019-12-14 03:28:23
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . What tool can be used to recreate similar translucent window? http://cdn.osxdaily.com/wp-content/uploads/2013/05/bluetooth-connected-connection-lost-mac.jpg What I tried today is demo example of: uiswing trans_shaped_windows from Oracle but I'm getting "Unable to launch the application." But I got the error that

Programmatically close a window made with `racket/gui` (to stop a `timer%`)

删除回忆录丶 提交于 2019-12-14 01:42:22
问题 Racket programs that use racket/gui run until all of the windows are closed. This makes it easy to write a program like: #lang racket/gui (define window (new frame% [label "Hello"] [width 100] [height 100])) (send window show #t) And now the program will continue to run until the window is closed. However, it sometimes makes sense to close a window programmatically, for example, if I want a countdown that will close the window and finish after the countdown is done. As far as I can tell

How do I delay html text from appearing until background image sprite is loaded?

三世轮回 提交于 2019-12-14 01:00:48
问题 Here's some sample code that I want to control using jQuery (white button bg on black page bg): <ul class="buttons"> <li class="button-displays"><a href="/products/">Products and Services for the company</a></li> <li class="button-packaging"><a href="/packaging/">Successful packaging services for the company</a></li> <li class="button-tools"><a href="/tools/">Data, mail and print tools for your company</li> </ul> In the CSS file, I have the following: .buttons li { background-image: url

Putty Dynamic Title (with $PWD)

风格不统一 提交于 2019-12-14 00:58:09
问题 I would like putty terminal to display the current folder. Is this possible ? For example, when i'm in $HOME , the putty window title would be $HOME . Then, if I do cd $HOME/foodir , the title would change to $HOME/foodir . Is that possible ? Thanks 回答1: Setting PS1 did not work for me (putty 0.62). I'm using bash, and here's what works : PROMPT_COMMAND='printf "\033]0;%s@%s:%s\033\\" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/~}"' 回答2: Putty window is like a terminal on Linux, so it´s

WS_EX_TRANSPARENT and stylus events

≡放荡痞女 提交于 2019-12-14 00:11:24
问题 I'm setting WS_EX_TRANSPARENT flag in window with the following code: SetWindowLong( hwnd, GWL_EXSTYLE,WS_EX_TRANSPARENT | WS_EX_COMPOSITED | WS_EX_LAYERED ); This flag make that mouse events go to windows system instead of my app. When I set this, I can't get Stylus events in hwnd window. Any way to solve that or that's not possible? 回答1: The behavior for the WS_EX_TRANSPARENT extended window style for Layered Windows is documented: [I]f the layered window has the WS_EX_TRANSPARENT extended