background

How to set a background of WPF Window?

I have a simple WPF window. I intend to set it's background to be one of the images I added to project as Embedded Resource. This is what I tried: <Window x:Class="A_Boggle.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="A-Boggle" Height="300" Width...

iPhone: Since when did SKPaymentQueue addPayment trigger the applicationWillResignActive callback?

Did I miss this information in the documentation? Am I going mad?? I'm debugging some payment issues and have just discovered that the following code is triggering our applicationWillResignActive callback in the app delegate. SKPayment *payment = [SKPayment paymentWithProductIdentifier:productid]; [[SKPaymentQueue defaultQueue] addPaym...

Brower Scroll cuts off content

I created a simple example to illustrate the issue I am having. It seems that if I have a DIV set to a specific pixel width, then resize the browser smaller until the horizontal scroll bar appears then scroll to the right, the content is cut off. Or at least some of it. http://www.artworknotavailable.com/examples/cutoff.html Am I miss...

want to add image left corner of div

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr"> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.0/jquery.min.js" type="text/javascript"></script> <style type="text/css"> .connection...

How to stop view updates when app is in background (or sleeping)?

The Executing Code in the Background asks for "Avoid updating your windows and views". Because the UI updates are all over different views in various methods, what I can think of is setting a BOOL 'global' within each view controller (e.g. under the @implementation mapViewController), and use many if (BOOL) controls to stop updating IB...

How to make Gtk+ window background transparent?

I'd like to make the background of a Gtk+ window transparent so that only the widgets in the window are visible. I found a few tutorials: http://mikehearn.wordpress.com/2006/03/26/gtk-windows-with-alpha-channels/ http://macslow.thepimp.net/?p=26 But they both appear to listen to the "expose" event, and then delegate to Cairo to do the...

Background image in view controller result in memory increase + UIColor colorWithPatternImage

I tried 2 different methods of creating a background image for a view controller. I have researched this before and came to the conclusion that for good memory practice you should use this method: NSString *path = [[NSBundle mainBundle] pathForResource:@"controllerBackground" ofType:@"png" inDirectory:@""]; [self.view setBackgroundCol...

UITableView background with alpha color causing problem with UITableViewCell

Hi everybody, I'm trying to get a semi-transparent uitableview, with this color [UIColor colorWithRed:(247.0/255.) green:(151.0/255.0) blue:(121.0/255.0) alpha:0.38]; It's ok if there are only empty cells, but when a cell has content inside, the background turns more solid. It's as if the cell itself had the same table background, so ...

Custom ListView background problem

I have a LinearLayout layout with a ListView in it. I've made the android:background of the LinearLayout (I've also tried it on the ListView) be an image that I would like for my background. This works fine enough. However, when I start scrolling through the ListView, the background often disappears and becomes black. If I move it ar...

how to kill background php thread ?

I created a php script that has ignore_user_abort(true); in it, and it is running in infinite loop... I closed the webpage, apache server and the browser too.. Its running like a armageddon now.. Nothing seems to stop it.. how do I stop it ?? What does it run as (process name) in windows ?? I searched for terms related to php or server ...

How are background permissions actually managed in iOS4?

Hello, I'm a beginner at iPhone developing. Though I've read lots of guides and users' notes I have no exact and accessible answer to the following question: "Are there any ways to execute internal tasks (for example to listen for server activity) in background in iOS 4.x?" I know that only 3 kinds of tasks are permitted (audio, voip a...

Powershell Start-Job won't run

I'm trying to run a simple job process in powershell 2.0 and it doesn't seem to run. $job = Start-Job { Return "Some string." } When I call $job, the status says it's running. But the problem is that it never completes. Tried the same thing on my Windows 7 machine and it completes immediately. I'm running powershell 2.0 on wind...

Spring: Inject bean depended on context (session/web or local thread/background process)

Is it possible to create a factory or proxy that can decide if thread is running in (Web)Request or background-process (ie. scheduler) and then depending on that information, it creates a session bean or a prototype bean? Example (pseudo Spring config :) <bean id="userInfoSession" scope="session" /> <bean id="userInfoStatic" scope="pro...

How can a C/C++ process know if it runs in background ?

Hi I have a method in my process that should be run only if the process is not in background. How can I dynamically test if the current process is in background ? Thanks ...

body less width then inside elements

Hello, I'm trying to have the following markup: body #container #content where body is full width and has a background snapping to the bottom right. where container has a set width of 960px and min-width of 600px, located in the top left corner of the page. where content has a set width of 600px and is also located in the top le...

Rails parallel background processing

I have a rails application (which acts like some sort of load balancer for a group of printers) that needs to do some background processing. The background processing logic needs to iterate over all available (non busy) printers and send a print job via TCP socket to each one as long as there are jobs present. I know there are several s...

css background image positioning

Hi guys, I need help with positioning two images on a web page. I want both the images to be fixed on the page, so one will be fixed to the top-left of the page and the other will be fixed to the bottom-right. But i also want the background to be black so if there is lots of text or content then both the images will lengthen. Below is a...

WPF set border background in trigger

Hello! I need to create a trigger, that will change Border background property, when MouseEnter occurred. I did the follow: <Border Width="20" Height="30" Focusable="True"> <Border.Background> <LinearGradientBrush> <LinearGradientBrush.GradientStops> <GradientStop Color="Aquamarine...

If my application goes to background, it still continue working? (sending/getting data from internet)

Hi i am working on an application that send and get data from internet each 5 min if i press home key and my app goes to background... it will still continue sending/getting data from internet? or i have to do something special? thanks ...

How to I draw and change background without using too much memory?

I have created a simple test game that randomly spawns icons that move around the screen. When you click on an icon, it disappears. I used sample code from SDK, and various internet sites. I want to change the background, it is being set to BLACK. I would like to use a picture I have. public void onDraw(Canvas canvas) { canvas....