style

When should I use do-while instead of while loops?

Possible Duplicates: Is there ever a need for a do {} while ( ) loop? Do your loops test at the top or bottom? While vs. Do While When is a do-while appropriate? I've been having a philosophical debate with a colleague as to whether as a general rule, in C/C++ we should should use while loops rather than do-wile loops. ...

Style EditText content 'on the fly'?

I'm working on a rich text editor in Android. Basically it has bold, italics and link buttons that are tied to an EditText to change the style of the content. I have it working great if you select the text you want to style first, and then select the button using this method: http://developer.android.com/guide/appendix/faq/commontasks....

How do you use the GridView.GridViewStyleKey property to style a ListView?

The documention for the GridView.GridViewStyleKey says (emphasis by me): You can use this read-only static property in Extensible Application Markup Language (XAML) by assigning its static value to another property value. Specifically, this property's static value defines the resource key that is used to look up the default ListView ...

How to style a disabled radio button?

I have a set of radio buttons within a table cell. The table cell's background color differs from the page background. Based on another input, I sometimes disable one or more radio buttons. When disabled, the interior of the radio button assumes the table cell's background. The circle coloring grays out a bit. This combines to make ...

Html/css button

.classname { background-image:url(../../images/classname.png); background-color:transparent; background-repeat:no-repeat; text-align:center; border:none; height:50px; width:160px; font-size:12px; font-family:Tahoma, Geneva, sans-serif; color:#CCC; } <div class="classname">Text</div> Why the Text is above of image? What should I ad...

round corners for text input in flash

hi, i im using the text input component in flash as2,but i need text input with round corners, is there a script that can do it? or somthing? thanks ...

Toggling css style change with Jquery

I am creating am able to change the color of a link once it has been clicked. I would like to take it one step further and toggle it back to the previous color once another link in the set is clicked. How address the link with 'this' to do the initial change how do I address it when switching it back? This is what I am doing currently. ...

returning params from a method

Hi, I was wondering which is better style to return a parameter from a method: 1. if (someBooleanIsTrue) { someTypeList = getTypeInstance(param1, param2); } else if (anotherBooleanIsTrue) { someTypeList = getTypeInstanceSecondMethod(param1, param2); } return someTypeList; 2. List<SomeTy...

Graphviz: how to assign the same style to a group of edges?

I've got a graph that I want graphviz to layout and visualize for me. The graph has 122 edges and 123 nodes. The edges are of 4 different kinds and I want them to be visually distinguishable. However I've not yet decided what would be the best way of doing that, I'd like to play around with the dials a bit. Unfortunately I do not see any...

NavigateUrl is not working with SelectedNodeStyle

I'm trying to get SelectedNodeStyle to work with NavigateUrl without success. The style is not applied when clicking on nodes. <asp:TreeView ID="treeviewSIP" runat="server" ExpandDepth="0"> <SelectedNodeStyle BackColor="Red" ForeColor="WhiteSmoke" BorderStyle="Solid" BorderWidth="1px" Bor...

ajax control toolkit popup style asp.net

hi all, I am converting across an old popup system from an older app into a newer one and want to take advantage of the ajax control toolkit to do all of the popups. Unfortunately the business will require me to make the popups look like the old version (essentially just another page opened in a smaller window and showing the title ba...

'Setter' object cannot be added to 'EventTrigger' ?

Hi, I get the following error on the WPF code bellow: 'Setter' object cannot be added to 'EventTrigger'. The given object must be an instance of TriggerAction or a derived type. <Style x:Key="LinkLabel" TargetType="{x:Type Label}"> <Setter Property="FontFamily" Value="Tahoma"/> <Setter Property="FontSize" Value="12"/> <Se...

android set style in code

I'm trying to use the TextView constructor with style like this: TextView myText = new TextView(MyActivity.this, null, R.style.my_style ); however, when i do this, the text view does not appear to take the style (I verified the style by setting it on a static object). I've also tried using myText.setTextAppearance(MyActivity.this, R....

Is it possible to style military bases only with the new Google Maps v3 styled map?

Already asked on Google groups, not getting any responses... I was playing with the Google Maps v3 style wizard and noticed that if you set a style for poi only, it will set the style for military bases. Unfortunately, it also sets styles for all other points of interest. Anyone know if there is a way to style military bases only? poi....

What tool can analyze my site and report on unused / unneeded CSS?

how can i find in a early way that this css class is being used or not in website ? like- style property that i write in my css is being used or not? and class or id is being used in webpage? exe: .textstyle4{ font:normal 12px Arial, Helvetica, sans-serif ; color:#777; } i want to know in my whole website where this css s...

CSS Height Set Dynamically

So I'm inspecting this site: http://www.grittirollo.it/ and it appears that the content that slides out has a fixed height. Is there no way to set this dynamically? ...

List of all style parameters used in the wx.Frame style bitmask

Getting a listing of all wxPython events is possible using: import wx for x in dir(wx): if x.startswith('EVT_'): print x How do I get the list of all style parameters used in defining the wx.Frame style bitmask? ...

WPF - Any ideas why datatrigger not firing?

My listbox is defined below. "Properties" is a BindingList which I am changing one of the items but the Image style is not being updated. Any ideas what I might be missing? <ListBox x:Name="lstProperties" Margin="0,0,5,0" ItemsSource="{Binding Properties}" Sel...

ASP.NET DataGrid and styling with CSS

I have never had an issue with putting th { background: #900; } as a style in a css file and have that apply to the header row of an ASP datagrid. But for some reason today, I have a grid that is getting output with everything in TBODY and even the headers are in TD tags. Any ideas? One thing that is a little different for me is ...

Can not change own property in style

I'm creating dependency property in my custom controll class DataPoint: public abstract class DataPoint : Control { public Color BaseColor { get { return (Color)GetValue(BaseColorProperty); } set { SetValue(BaseColorProperty, value); } } public static readonly DependencyProperty B...