highlight

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...

jquery datepicker highlight dates

Hi guys, i'm struggling to highlight the dates[startdate - enddate] which i select.Can anyone help me? ...

How do I highlight Text in a Textbox in a C# Winforms program?

I have a C# Winforms program with multiple textboxes. I used the properties for each box to place text in them, explaining to the user what value goes in them. I want the text to highlight whenever a user selects that box. By either tabbing or mouse click. I won't have to do this if there's a way to display what value goes in the textbox...

PHP: Search-like word highlighting

I'm working on a simple search engine for a newspaper application. When the user types a keyword, a results page is shown, highlighting the term with a color. I'm currently doing this: $title = str_ireplace($term, "<span class='highlight'>$term</span>", $note->Title); Great, str_ireplace() makes the case-insensitive search, but when ...

Android ListView item highlight programmatically

Hi all, I know it's been asked around but I haven't found quite the answer yet (new to Android so sorry about the ignorance) my app's launch Activity has an EditText (called searchbox) , a ListView (designations) and a Spinner (types) I use the EditText as a searchbox, I have to pass the string through a custom editing to make searchi...

Hotkey for double-click highlight?

I'm working in Eclipse and find myself always replacing multiple copies of the same word, but I always have to take my hands off the keyboard and screen to get the mouse, hover over the word, double click to select, and then copy or rewrite the word. Is there any way I can just move the cursor inside the word and hit some hotkey that wou...

how to highlight text on hover

By highlight I mean the thing you do to text when you drag your mouse over it. If you use imgur.com then you know what I want. I can't find anything about this anywhere, it's frustrating. help? Edit: Okay, I thought I made this clear enough but I guess not. I don't mean I want to change the background color on hover. That's trivial. But...

How can I highlight the line of text that is closest to the mouse?

I have a long text and I'd like to offer the user a reading help: The current line should be highlighted. To make it easier, I'll just use the Y coordinate of the mouse (this way, the mouse pointer isn't going to get in the way). I have a big DIV with the id content which fills the whole width and a small DIV with the class content for t...

VIM: created syntax not showing up?

HI people I recently changed to VIM for coding in C. I'd like to hightlight the operators +-<=& ... etc I searched in google how should i do it, and i found the answer in this website: I was suppose to do something like: syntax match Operadores /[][><()&!|+*={}-]/ hi Operadores guifg=#000000 gui=BOLD Those characters were supposed ...

How to highlight a control when selected?

How can I highlight an image when it is clicked and remove the highlight when the mouse is up? ...

C# - How do find a string within a string even if it spans across whitespace?

I want to be able to find and highlight a string within a string BUT I no not want to remove the space. So if my original string is : There are 12 monkeys I want to find '12 mon' and highlight those characters ending up with : There are < font color='red' >12 mon< /font >keys BUT I also want the same result if I search for '12mon' ...

Retrieving data from ListView control in VB.NET

I have a ListView setup in details mode that looks like this: When the user presses the delete button, I need to go ahead and delete their record from the database. This I can do fine, but I'm stuck on how I retrieve the data that is highlighted in the ListView control. I've tried using Google but all the examples I found have failed ...

How would I go about highlighting an item in a JList?

I have a JList and I want to be able to highlight (change colour of text or something similar) the selected item. I know there are methods to set which item is selected but can I change the color of the text of that item etc? ...

Can I Programmatically Select Text in UITextView?

Hello everyone, I want to select Text on UITextView, similar to the default "Select" and "Select All" pop options we see when we tap. I want to the user the ability to do that from my custom menu. I played with selectedRange but that doesnt seem to do the trick. Any ideas? Thanks ...

how to get highlighted item in flex 3 tree component?

hmm... subj! need to get item that is highlighted and add some listeners on it. the problem is that i don't know how 8( ...

WPF TreeViewItem + Change the Highlight Color

Hello, I have got a TreeView with a HierarchicalDataTemplate. <HierarchicalDataTemplate x:Key="treeViewItemTemplate" ItemsSource="{Binding GetChildren}"> <DockPanel Margin="0,8,8,0"> <Image Source="{Binding GetImage}" Width="16" Height="16" /> <local:MonitorTriStateCheckBox Margin="4,0,0,0" I...

Highlighting Text Color using Html.fromHtml() in Android?

Hi, I am developing an application in which there will be a search screen where user can search for specific keywords and that keyword should be highlighted. I have found Html.fromHtml method. But I will like to know whether its the proper way of doing it or not. Please let me know your views on this. Regards Sunil ...

Script or tutorial for auto completing highlights

Im looking for links/tips/tutorials on how to help users highlight an entire word, as opposed to partial words. Heres an example: Someone on my site sees the words President Obama and wants to highlight this. But as they highlight the words, they only highlight "esident Obam" (missing the first two chars and last character of the high...

JavaScript: jQuery Datepicker - simple highlighting of specific days, who can help? (source inside)

Hi guys, i want to use the Datepicker for highlighting specific dates. Here is my latest code: <script type="text/javascript"> var dates = [30/04/2010, 01/05/2010]; $(function(){ $('#datepicker').datepicker({ numberOfMonths: [2,3], dateFormat: 'dd/mm/yy', beforeShowDay: highlightDays }...

How to highlight clicks in app widget?

Hi everyone, I have an app widget which runs neatly. However, I am unable to highlight a click on a linked item. I've seen it in the standard app widgets like 'Music' and 'Power Control', for instance. Moreover, I've also been studying the Music app widget's source at album_appwidget.xml. The only thing I could think of is the LinearLay...