selection

Prevent selection in HTML

Hi, I have a div on a HTML page and whenever I press the mouse and move it, it will show that "can't drop" cursor like it selects something. Is there a way to disable selection? I tried CSS user-select with none without success. ...

Windows Forms DataGridViews' SelectionChanged event fired multiple times

Hi Here is my problem: I have DataGridView. It's source is set to the BindingList of my business objects. Business object implement INotifyPropertyChanged interface. Each time the business object changes DataGridView fires several SelectionChanged events. When I add/remove objects to the DataSource SelectionChanged events are fired too...

Text Color in PowerPoint Add-in

Does anyone know how to change the color of a selected range of text within a powerpoint add-in using C#? ...

How do I programmatically select an item in a listview in Android

I am displaying a radio schedule in a List View and would like to highlight the currently playing program. I also want to allow the user to click on any program and get more details for the program. I have tried the following: radioView.setSelection(adapter.getCurrentProgramIndex()); radioView.setSelected(true); This does scroll the...

Global event if a jQuery selection returns no elements?

Is there any way to globally monitor or listen to if a selection is made in jQuery and it returns no elements? E.g.: You have a page with: <div id=”some-id”></div> And in a JavaScript someone tries to get the element but mistypes the id: $(“#someid”) Is there any way to globally handle when a jQuery selection returns no elements? ...

QTableView selectionChanged

I have a QTableView that I need to get the selectionChanged event from. I can't seem to get the connect working. I have: MyWidget.h ... protected slots: void slotLoadTransaction(const QItemSelection & selected, const QItemSelection & deselected); private: QTableView table; ... MyWidget.cpp ... connect( table->selectionModel()...

jQuery: Get selected option from dropdown

I am trying to get the selected option from a dropdown and populate another item with that text, as follows. IE is barking up a storm and it doesn't work in Firefox: $('#ddlCodes').change(function() { $('#txtEntry2').text('#ddlCodes option:selected').text(); }); What am I doing wrong? ...

prevent listview to lose selected item

Hi, I'm currently working on a listview in winform c# and everytime I click on an empty space on the listview, the selected item is lost. please help ed ...

How To Select A Range in an Iframe With "Start" and "End" in Firefox like "selectionStart" from inputs element

Hi, for Internet Explorer, I have the current code to select a range in an iframe with desingMode setting to on: var Range = window.document.selection.createRange(); var obj = { start: 3, end : 6} Range.collapse( true ); Range.moveStart( 'character', obj.start ); Range.moveEnd( 'character', obj.end - obj.start );...

glPushName + glPopName stack overflow and underflow

Can anybody please explain me how to use glPushName and glPopName. I like to use them instead of glLoadName, but I laways get GL_STACK_OVERFLOW and GL_STACK_UNDERFLOW errors. (First, under then overflow). Example code would help me too. Thanks for any advice. Note #1: My Rendering/selection_rednering code consists of multiple glBegin(...

Removing extra pixels after shrinking to a point and selecting the correct pixel as the cross point with Matlab

link text Based on the link above, I managed to get the cross point but sometimes I get 2 or more results. I have 10 similar images with the cross slightly moved in every frame. Is there a way that I can remove the extra pixels remaining that are very off from the other 9 images by comparing it to the cross point of the 1st image? As th...

Selecting the usercontrol to the relating datatemplate in mvvm

Hello, I have lets say a WeeklyViewUserControl.xaml and a DailyViewUserControl.xaml. Normally I used stuff like this to switch content: <DataTemplate DataType="{x:Type ViewModel:LessonPlannerViewModel}"> <View:LessonPlannerDailyUC/> </DataTemplate> This worked so far. But now I have still the WeeklyViewUC which uses 90 ...

How can I determine the quality of service in WCF?

I want to determine the following QoS Attribute of my service: Response Time Reliability Availability I will be creating an application that will select a service based on the mentioned attribute. ...

Datagrid selects the wrong custom cell in my datagrid...

Hi everybody, I am working on a problem since a week soon, but I still couldn't make it work as expected. I have a DataGrid which has HBox with a CheckBox an a Label as itemRenderer (see Code below). When I tap in to the Cell the standard itemEditor pops up and lets you enter the content of the label. Thats the standard behavior. I work...

What's the best way to find the first common parent of two DOM nodes in javascript?

My question is exactly that but in context I want to examine the selection object, compare the anchorNode and focusNode and if they are different then find the first common parent element. var selected = window.getSelection(); var anchor = selection.anchorNode; var focus = selection.focusNode; if ( anchor != focus ) { // find common...

Flex custom list selection not highlighting

I want to create a custom list in Flex for an interface prototype. The list is supposed to have an image and 3 text fields. This is what I have done so far, the control displayed is what I want. But, when I click on one of the items, the item does not appear (visually) to be selected. I was not sure how I would implement this. Here is m...

Preventing multiple repeat selection of synchronized Controls ?

The working code sample here synchronizes (single) selection in a TreeView, ListView, and ComboBox via the use of lambda expressions in a dictionary where the Key in the dictionary is a Control, and the Value of each Key is an Action<int>. Where I am stuck is that I am getting multiple repetitions of execution of the code that sets the ...

How to select a names from a column MS Excel 2007

Hey guys, I have an Excel document which has a list of students and their group names. I have another sheet within the the same excel document which is called comments. In this sheet, I would like to have a list of individual team names listed. There are 65 students and 14 defined groups. Is there a way to select the 14 group names, w...

WPF How to animate selection box movement of ListView?

I want to animate movement of a selection box in ListView so it will move from old selected item to currently selected. I don't even know where to start - could someone please share ideas how to achieve that or it's impossible to do in WPF. ...

Disable selecting in WPF DataGrid

How can I disable selecting in a WPFTooklit's DataGrid? I tried modifying the solution that works for ListView (from http://stackoverflow.com/questions/1051215/wpf-listview-turn-off-selection#comment-863179), but that doesn't work: <tk:DataGrid> <tk:DataGrid.ItemContainerStyle> <Style TargetType="{x:Type tk:DataGridRow}"> ...