WPF ListView Inactive Selection Color

Changing SystemColors.ControlBrushKey did not work for me, I had to change SystemColors.InactiveSelectionHighlightBrushKey So instead of: <SolidColorBrush x:Key=”{x:Static SystemColors.ControlBrushKey}” Color=”Red” /> I had to use: <SolidColorBrush x:Key=”{x:Static SystemColors.InactiveSelectionHighlightBrushKey}” Color=”Red”/>

manual language selection in an iOS-App (iPhone and iPad)

In the meantime I did find a solution for my problem on myself: I created a new class “LocalizeHelper”: Header LocalizeHelper.h //LocalizeHelper.h #import <Foundation/Foundation.h> // some macros (optional, but makes life easy) // Use “LocalizedString(key)” the same way you would use “NSLocalizedString(key,comment)” #define LocalizedString(key) [[LocalizeHelper sharedLocalSystem] localizedStringForKey:(key)] // “language” can be (for american english): “en”, … Read more

JavaScript eyedropper (tell color of pixel under mouse cursor)

It’s not possible with JavaScript as it goes against cross-domain security. It would be very bad if you knew what pixels made up the image, http://some-other-host/yourPassword.png. You can only tell the color of the pixel under the mouse if either the mouse is over a canvas or an image element of the same domain (or … Read more

Custom UITableViewCell selection style?

You can do this as follows. Set your table cell’s selection style to UITableViewCellSelectionStyleNone. This will remove the blue background highlighting. Then, to make the text label highlighting work the way you want, instead of using the default UITableViewCell class, create a subclass of UITableViewCell and override the default implementation of setHighlighted:animated with your own … Read more

Prevent selection in HTML

The proprietary variations of user-select will work in most modern browsers: *.unselectable { -moz-user-select: -moz-none; -khtml-user-select: none; -webkit-user-select: none; /* Introduced in IE 10. See http://ie.microsoft.com/testdrive/HTML5/msUserSelect/ */ -ms-user-select: none; user-select: none; } For IE < 10 and Opera, you will need to use the unselectable attribute of the element you wish to be unselectable. You … Read more