selection

Getting a GridView to select the row on click (not just clicking on the text)

We want to select a row on a mouseclick anywhere in that row. Currently the user has to click the text in the row to select the row. This is our ListView inside a Grid, with a GridView inside it: <ListView Grid.Row="1" x:Name="lvUsers" PreviewMouseDoubleClick="lvUsers_PreviewMouseDoubleClick" IsSynchro...

Find out deselected item in spark list with multiple selection

In a spark list I could use the change event to find out which item has been selected or deselected. The dispatched IndexChangeEvent object has the properties newIndex and oldIndex holding this information. But with multiple selection allowed this doesn't work anymore because newIndex and oldIndex could refer to indices of still selecte...

Identify whether the selected text in a web page is bold nor not

Hi I am trying to identify whether a selected text (in Firefox) is bold or not? For e.g.: <p>Some <b>text is typed</b> here</p> <p>Some <span style="font-weight: bold">more text is typed</span> here</p> The user can either select a part of bold text, or the full bold text. Here is what I am trying to do: function isSelectedBold(){ ...

Getting selected item in active window

I am using C# to develop an application that works with the clipboard, an was wondering if its possible to get the contents of what the user has selected in the current window, no matter what window it is (e.g. could be FireFox, notepad, etc.). ...

change list selection to be a toggle selection

Hi All, I have an ASP.Net (3.5) Web application and I would like my users to be able to select the items from a simple HTML list using a toggle selection rather than the usual multiple selection (with CTRL and SHIFT). I guess the best way should be to achieve this on the client side using some jQuery or simple javascript. Does anyone ...

Change text selection highlight with JS

For standard browsers you can use something like this to change the coloring of selected text. div.txtArea::selection { background: transparent; } div.txtArea::-moz-selection { background: transparent; } div.txtArea::-webkit-selection { background: transparent; } Is there a way to do this with javascript? My users can select tex...

Templates: instantiating from (and refering to) non-typed parameter at runtime?

I developed a generic "Unsigned" class, or really a class template Unsigned<size_t N> that models after the C (C++) built-in unsigneds using the amount of uint8_ts as a parameter. For example Unsigned<4> is identical to a uint32_t and Unsigned<32> would be identical to a uint256_t -- if it existed. So far I have managed to follow most i...

Cross Browser Selection Range Library?

Does any one know of any cross browser user selection range libraries written in javascript? I have a found a few jquery plugins, (which quite frankly are too limiting and very buggy). I have already implemented and am using the following to pull off some of my tricks: http://plugins.jquery.com/project/wrapSelection http://perplexed.co...

Help with jQuery selection.

I figured enough jQuery to select this chunk out of a huge HTML document. I want to select the value of subject, body, and date_or_offset. (these are name attributes as shown below). How do I go about this. Assuming this print is from alert($(this).html()) inside a call back function. <p><label for="first">Subject</label> <br> <...

Allowing item selection indicator in ListBox to overlay all items in Silverlight

I have a ListBox that uses a WrapPanel for its ItemsPanel, a custom ItemTemplate, and a custom ItemContainerStyle. The ItemContainerStyle's template contains a selection box that shows up when an item is selected. The graphics designer would like this selection box to overlap sibling items in the ListBox like it's an overlay. The firs...

CSS3 TextArea Highlight Color

I've been using the following CSS3 option to change the highlight color of text on a webpage. However, the only element on the webpage is a textarea, and the following CSS doesn't seem to do anything. ::selection { background:#B9B9B9; color:#000000; } Am I doing it wrong? Is it possible to change the highlight color of a textarea? Or ...

Configure gnome-terminal so that right click extends selection rather than displays menu

I've been using Linux for a long time, but have only recently 'upgraded' to a full GUI desktop since using it command-line-only for the last three or four years. I used to use 'aterm' before then (with fluxbox, and other old-school things) but I see now that gnome-terminal is pretty usable in Ubuntu's Gnome. However, there's one thing t...

Pyqt get pixel position and value when mouse click on the image

Hi everybody, I would like to know how i can select a pixel with a mouse click in an image (QImge) and get pixel position and value. Thanks ...

How can I change the selection in an unfocused textbox?

I have seen this question: http://stackoverflow.com/questions/642498/how-to-keep-wpf-textbox-selection-when-not-focused And have implemented the solution there, so that my textbox shows the selection, even when it does not have focus. However, when I change the selection start or length, nothing changes visually in the textbox. Also, ...

Full-word selection in browser.

I understand that IE has a full-word selection feature, which people often want to turn off. I want the opposite. I want to automatically expand the selection to complete words in all browsers. Actually, for the moment, I don't really care about IE (but I will eventually). Anyone know of a solution for this? Thanks. ...

How do you retrieve the selected text in MATLAB?

MATLAB has several selection-sensitive capabilities. For example, if you select some text and press F9, it evaluates your selection. (Unless you've remapped your keyboard settings.) I'd like to be able to replicate this functionality with for a shortcut. So, for example, I want to click a shortcut that displays the current selection....

Dashcode List Selection

I am working with the Dashcode List element from the library and am trying to make a selection from within the program. I have 2 lists binded to a datasource that gets requeried, which removes my selection from the lists. I am trying to keep the selection on the lists, so my current attempt to workaround the problem is to save the index...

Listbox datatemplate - item only selectable by clicking a subelement, not just anywhere on the item

I have a listbox with a datatemplate for the items. The problem is that selecting an item doesn't work by just clicking anywhere on the item; I have to click on a specific sub-element for it to actually work. My item has an image and a textblock. If I hover the mouse over the image or text-block, I actually see the hover-effect. If I ho...

simple action script 2.0 click 4 check boxes.

I have an action script 2.0 request. i have a flash movie with 7 check boxes. when the user has selcted a total of 4 check boxes the flash movie goes to another frame. pretty simple i'll contain all the checkboxes in a movie clip called mcCheckBox. I just need to the code to make it go to a new frame once four check boxes have been...

ExtJS Grid Paging Row Selection

Is there anyway in the ExtJS Grid to select a row that is located in another page, when the PagingToolbar is used. Any help would be greatly appreciated. ...