selection

How to prevent the 'Save (image) as' dialog on Ctrl+click in Opera

I have to create an image gallery where user can select some images and then process them. The selection should be done via Ctrl+LeftClick of the mouse. It works well in FF and IE8, but when I Ctrl+click in Opera, new dialog "Save as" appears which causes saving the clicked image. How do I prevent opening the dialog in Opera? (it's prob...

A Selection Problem About Jquery

In the code below, when I click lnkSecc, I want checkboxes under the first div coming after lnkSecc which id is Grup to be selected. How can I do it? <td>Sipariş</td><td> <a href="#" id="lnkSecc" onclick="javascript:SelectSubCheckboxes(this);" >Seç/Kaldır</a> </td><td> <div id="Grup"> <table cellspacing="0" cellpadding="0" rules="all"...

Rich text box rounded corner selection highlight

I've been searching around the web on how to code syntax highlighting text boxes and I've got most of it working. But I've always loved mac's xcode selection highlight which has rounded corners. Recently I saw this type of selection highlight in inType text editor. This image explians much better the effect I want to have in my rich text...

WPF - UIElement.RenderSize not working for Line shape

I'm trying to make some drawing application and I get strange results in my "selection mode". If I draw a rectangle and "select it" RenderSize returns proper Size for it, but if Line is selected RenderSize returns Size which has Width set as Line.X2, and Height set as Line.Y2. For example: Line begins at X1 = 50, Y1 = 50, ends at X2 = 13...

JTable not returning selected row correctly

I am working with an extension of the DefaultTableModel as follows: This is the NEW AchievementTableModel after updating it to reflect input from some answers. public AchievementTableModel(Object[][] c, Object[] co) { super(c,co); } public boolean isCellEditable(int r, int c) {return false;} public void replace(Object[][] c, Object[]...

PHP/GD, how to copy a circle from one image to another?

Is there a reasonably straightforward way to copy a circular area from one image resource to another? Something like imagecopymerge except with circles or ovals etc? If possible, I want to avoid having to use pre-created image files (any oval shape should be possible), and if there's transparency colours involved they should naturally le...

How to set the SystemColors.HighlightBrushKey in WPF with a Converter...

Hi, I im trying to set the SystemColors.HighlightBrushKey always a bit darker than the Background of the selected Row. Therefore im using this Code: App.xaml: <WPFTests2:SelectionBackgroundConverter x:Key="SelectionBackgroundConverter"/> <SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="{Binding ...

Finding the Nth largest value in a group of numbers as they are generated.

I'm writing a program than needs to find the Nth largest value in a group of numbers. These numbers are generated by the program, but I don't have enough memory to store N numbers. Is there a better upper bound than N that can be acheived for storage? The upper bound for the size of the group of numbers (and for N) is approximately 100,0...

How can I show different content to website visitors from a specific country in PHP?

On my Wordpress blog, I want to show additional content to people from Finland on all pages. Very much like the Feedback button at the left edge of the screen on printfriendly.com. How can I achieve this most reliably using PHP? ...

How to select specific combobox item with multiple keystrokes? First few characters of item

Windows explorer in XP will allow you to make a file selection based on typing a few characters. I would like to know if there is any simplistic .net feature I can use to mimic this behaviour in a combobox? I think I've seen this happen in comboboxes before, and would like to know if there is a property I can use? I know I could develo...

C#/WPF: Get Selected Row from a ListView

Hello, I've following ListView Item (in a WPF Form): <ListView Name="listViewTeam" ItemsSource="{Binding Path=TeamList}"> <ListView.View> <GridView ColumnHeaderTemplate ="{StaticResource BlueHeader}"> <GridView.ColumnHeaderContainerStyle> <Style TargetType="{x:Type GridViewCol...

C# RichTextBox text block selection

Hi, Has anyone extended the .NET RichBextBox control to be able to select text by "block selection"? If so, care to share your code? Thanks. --Lenard ...

Firefox Extension: Get selected text

I am working on a simple Firefox Extension and I want to get the selected text. I tried this: var WordCount = { /* ... */ changeSelected: function() { var selectedText = this.getSelection(); var words = this.countWords(selectedText); this.changeStatus(words, " selected"); //alert(selectedText); ...

jQuery Combo Boxes (User Selection) / Text Validation

Is there a way to have a text validation tool for jQuery such that: Box 1: Hi Box 2: Automatically fills with Hi if Hi is entered in Box 1 In another case if, Box 1: Bye Box 2: If the user enters Bye in Box 2 it says that they entered an invalid response Also is it possible to have it such that if Choice A is selected in a a combo bo...

Multiple Iterations of Tournament Selection in Genetic Algorithm

Hey guys, I'm a bit confused about how multiple iterations of the tournament selection works. I know you start selecting random pairs (or k members) and putting the winner into a mating pool. You continue do this till the mating pool is filled. However, I'm not sure what happens afterwards. Do we just start randomly mating those in t...

How to bind SelectionStart Property of Text Box?

Hello. I use this: <TextBox x:Name="Test"/> <TextBlock Text="{Binding SelectionStart, ElementName=Test}"/> but it always shows 0. How can I treat it? Thank you. ...

Choosing a Subversion Server

Hi, After settling on Subversion as my RCS needs (and AnkhSVN/TortoiseSVN for my primary Subversion clients), I am trying to choose an SVN server. I have looked at a bunch of them: Local (ie file:///) Collabnet VisualSVN Server Tigris SilkSVN SharpSVN Apache module I’ve installed each in a VM to try them out but have not found enoug...

Opengl Selection with Alpha Test

From what I've been seeing around the internet, this problem can't really be solved with my approach. I am currently writing a program that uses a selection buffer pass over all the objects in the scene. However, one of the objects is a texture in which a large part of it has alpha 0. It works fine when rendering, the alpha values are n...

advanced selection problem

Okay... how do I select a element's parent's child with specyfied class name..? ...

Multiple selection Calendar for jsf

Hi, Is there an already implemented Calendar for JSF which allows the user to select multiple dates? I need a calendar in which I can select more than one date. Thanks ...