search for: focused

Displaying 20 results from an estimated 7297 matches for "focused".

2006 Feb 21
7
Validation issues
I have a form. Everything submits into the database if I don''t have any validation rules. When I put these rules: validates_uniqueness_of :title, :message => "already exists in database" validates_presence_of :title I get this error (which seems weird because I am not validating against that): You have a nil object when you didn''t expect it! You
2007 Mar 03
1
sticky windows and rotate focus
Hi everyone, One thing that has always annoyed me about compiz is how rotate handles sticky windows. If you have a sticky window on your desktop, it will usually (always?) get focus when you rotate to a different face on the cube. This happens even when other windows have been focused more recently on the face you rotate to. This seems like silly behaviour, because sticky windows are (for me) 'background' windows like media players, IM clients, and so on. The non-sticky windows are where I do all my work, so focus should go there whenever I rotate faces. I've atta...
2006 Feb 21
4
Error, got String?
I am getting this error. ActiveRecord::AssociationTypeMismatch in Resources#create Focus expected, got String I have a select menu named resource[focus]. My focus (belongs_to :resources) table has a one-to-many relationship with the resources (has_one :focus) table (A resource will have only one focus but one focus will have many resources). I assume this error means that the focus is
2011 Feb 20
2
concatenate vector after strsplit()
ls is a list of character vectors created by strsplit() I want to concatenate the 1st 4 character elements of each list item as a new vector called file. I admit to being confused about list syntax even after numerous readings. Here's what I tried: ls <- list(c("Focused", "10k", "A12", "t04.tif", "+", "µm"), c("Focused", "10k", "A12", "t08.tif", "+", "µm"), c("Focused", "10k", "A12", "t12.tif", "+",...
2007 Oct 26
0
Focus behavior when not using "Click to focus"
...located such that if I were to switch to viewport 1, it would hover over window 1 (and thus give focus to window 1). Now, if I manually select window 2 (using either switcher plugin or the scale plugin or any other where I don't move the mouse) the viewport changes to the correct (vp 1) but the focused window is NOT window 2 that I selected, but window 1 which the mouse is now hovering. Since I decided (by using the switcher, scale, ...) that I wanted to switch to window 2, focus should not be given to window 1 but to window 2 irrespective of where the mouse hovers. Alternatively, one could ar...
2007 Jan 14
2
Window Focus Changes When Dragging
Hi, Here is a scenario: I have two windows (A and B) and I want to drag a file from one to the other. I focus window A, browse to the place that I want to drop the file and then try and pick up the file from window B, window B gets focused when I start to drag the icon Is there any way to make Compiz only focus a window when I click it but not when I click and drag an item on it? (Sometimes, for example, Window B will cover up the thing I was trying to drop on window A) A quick survey: Windows: Doesn't change focus on drag OSX:...
2006 Jul 23
6
how do you give focus to a form field?
When you put up a page with a form on it and the top item is a text field it would be nice to have that field already focused instead of forcing the user to click in it before they start typing. Is there a rails (i.e. probably Prototype) way of giving focus to a field? I did some searching and found nothing. thanks, jp P.S. I''m on a Mac. Perhaps a winoze and/or unix automatically gives focus to the first...
2007 Apr 19
0
[PATCH] Make focusDefaultWindow () take a CompScreen as argument
From: Kristian Lyngstol <kristian@beryl-project.org> Avoids focus jumping from one screen to another. --- include/compiz.h | 4 ++-- plugins/rotate.c | 2 +- src/display.c | 38 +++++++++++++++++--------------------- src/event.c | 6 +++--- 4 files changed, 23 insertions(+), 27 deletions(-) diff --git a/include/compiz.h b/include/compiz.h index 4c72dd3..f882b84 100644
2007 Aug 22
0
Focus behavior
Hi all fellow compiz'es I am using compiz-0.5.2. I have disabled "Click to focus". Generally, I like the way compiz handles focus of windows. I have one outstanding issue though: Suppose I have different viewports and two windows in the first that are placed next to each other. I then switch to the second viewport. For some reason I now wish activate the left-most window on the
2006 Apr 26
3
Setting focus in a rhtml view
How do I set focus on a specific form field when I render a partial from the controller? I can do it with page[''name''].focus from an RJS view, but I can''t figure out how to do it when rendering this rhtml partial from the controller. I''m rendering a partial with two fields and neither one has focus until I hit the tab key or put the cursor in a field with the
2002 Mar 21
1
focus problems
Hi! I have some focus problems with wine if I use the managed mode. When I start the application it has focus. But if I switch to another window, and back, then the window gets its focus (the window decorations shows it), but the windows app does not get it. If I click somewhere in the window, then it gets the focus properly, but before that even the shortcuts does not work. With one app it
2008 Dec 31
2
Lattice trellis.focus() with pdf
Hi, I have a the code for a plot that works perfectly running in R and printing to a Quartz object but which doesn't work when I make the trellis device a pdf. The code is as follows: ---- trellis.device(device="pdf", new=TRUE) trellis.par.set(my.theme()) dotplot(Y ~ X | C, groups=G, data=D, layout=c(2,1), ... ) trellis.focus("panel", 1, 1) for (y in 1:5) {
2006 Aug 03
2
bringToTop without focus?
Hi all who know R on Windows, Quick question: Is there a way to do "bringToTop(stay=TRUE)" without giving "focus"? I would like to pop a graph window but I would like to preserve focus in the window which I was in before. Thanks for any lead, Chris
2006 Jul 19
2
trellis.focus with postscript device
Hello. First: R 2.3.1 on Windows XP. I am trying to add information (sample size) to the Trellis strips which I am successful using the trellis.focus function with the default Windows device. However, I typically use the postscript device as I use LaTeX and \includegraphic for incorporating graphs into stat reviews. Here's some example code (apologies for the lack of creativity and
2008 Sep 02
2
Disabling mouse tracking when X11 focus leaves wine?
Hello all, I was very pleased to find that Age of Empires II works so well in wine. Now, one hobby of mine is to create custom AI scripts for the game (see www.aiscripters.com for examples), and let different scripts (mine and other people's) play against each other, mostly unattended. The problem is, that the running AoEII game still tracks the position of the mouse pointer whenever I move
2007 Aug 31
2
Give focus to an input field of a form
Hi, I am new to rails and I have setup Typo on my site. One little thing bugs me, the login page doesn''t give focus to the "user_login" field. I was wondering what do I need to do to make rails help with this? I have seen some simple inline javascript to set the focus, sort of like: document.<form_name>.user_login.focus() However the rails view doesn''t
2005 Oct 25
24
InPlaceEditor scrolls to top in Firefox?
When I click an InPlaceEditor field in Firefox 1.0.7, the page scrolls up to the top. That''s disconcerting, and often ends up with the editable field out of the viewable pane. I can duplicate this on both Mac and PC. Is there a way to prevent this? Even the demo at http://wiki.script.aculo.us/scriptaculous/show/Ajax.InPlaceEditor does this. Jay Levitt
2004 Sep 03
1
Wine and Remote Desktop??---- can't get mouse focus
hi all: I copied over a windows MSTSC.exe and ran the remote desktop, it gave me a small window for the IP address, then after the successful connection, it shows me the (full screen ) XP login interface, weir thing is, it loses mouse / keyboard focus now, so I can't type in anything, neither can I close the window, the focus is still on the background (gnome) desktop, so I could press
2006 Apr 02
2
Focus on ajax newly-created form element
I have an ajax method that creates a new form. I want one of the input boxes to be focused when the form gets displayed. So in my inline RJS I have page << "document.getElementById(''post_title'').focus();" The input box is being created with <%= text_field ''post'', ''title'' %>, so the ID should end up being '...
2004 Nov 29
1
Call to trellis.focus(); thenpanel.superpose()
The following works fine with the x11 device, though it may well be that an initial plot is overwritten. With a pdf or postscript device, I get two plots, the first of which still has the red border from having the focus, while the second is the plot that I want. library(lattice); library(grid) plt <- xyplot(uptake ~ conc, groups=Plant, data=CO2) print(plt)