style

How to ignore parent css style

I'm wondering how to ignore a parent style and use the default style (none). I'll show my specific case as an example but I'm pretty sure this is a general question. <style> #elementId select { height:1em; } </style> <div id="elementId"> <select name="funTimes" style="" size="5"> <option value="test1">fish</option> ...

Change font size of a GridView's ColumnHeader

Is there an easy way to change header font size without overwriting completely duplicating ColumnHeaderTemplate? Note: Not sure if it is relevant, but I use an application theme (PresentationFramework.Royale) which provides the ColumnHeaderTemplate. ...

In wx.Python, how would I get the window handle (hwnd) to my frame and set its style?

How can I get a handle to my current window in wx.Python (hWnd) and set it's style to WS_EX_NOPARENTNOTIFY, or can I set this when I initialize the frame? This question is a result from an answer here ...

WPF ControlTemplate Style GradientStop in Trigger

Here is my XAML for a TabItem. I want to be able to set the Color of a single gradient stop in a trigger. I know that I can re-define the gradient completely in the trigger's setter, but I want to access a specific property on the background so I can animate it in the future. I have tried every variation of everything in the trigger's s...

A button with BS_ICON style does not have Windows Theme applied to it under WinXP.

When making a button with the BS_ICON (or BS_BITMAP) style under Windows XP, the button does not have the current Windows theme applied to it. It just looks square like with the "Classic" theme. Why is this? I'm using Visual C++ 2008, and the application is not using MFC. ...

break in a case with return.. and for default

My OCD makes me add "break" when writing case statements, even if they will not be executed. Consider the following code example: switch(option) { case 1: a = 1; b = 7; break; case 2: a = 2; b = 4; return (-1); break; default: a = -1; break; } My two ...

How to make Flex validation message to appear above the field?

Usually validation message appears right to input field: http://aralbalkan.com/wp-content/uploads/2008/01/better-flex-validation-errors.gif But if there is not enough space to right, the message appears above. How to make it always appear above? (regardless of free space etc.) UPDATE It would be great if I could leverage Flex built-i...

WPF - No IsEnabled=true behavior using style with animations

I have asked a question here but then I realized my problem was not the code but the style I am using for a button. Since the problem is completely different than the one initially asked, I thought it would be more beneficial for other users if I just asked the "right" question again. Here I go: I am using the template below in my butto...

Visual Studio 2003 Removing Width & Height Attributes

Hi, I have a really anoying thing with Visual Studio 2003. If i create an textbox server control on my page and manually set the width & height attributes via the style tag (not the width & height attributes), when i flick to designer mode and then back to HTML mode those attributes from the STYLE tag have dissapeared! If there were any...

How can I make a Windows Explorer file preview screen in WPF?

I'm working on an application that will have attachments, and I would like to create a type of display like in windows Explorer, where you choose a "Details" view, and also show the preview pane. I would like to be able to show a thumbnail view of the attached file currently selected, based on the file extension. Does anyone know where...

Problem with HTML DIV style-padding

<asp:UpdatePanel runat="server"> <ContentTemplate> <div style="padding: 0px 45px 0px 45px"> <asp:FormView ID="fvAccounts" runat="server" DataKeyNames="AccountId" DataSourceID="edsAccounts" EnableModelValidation="True" Width="100%"> <EditItemTemplate> <%-- continuing --%> I want the FormView to be 45px (hippos :P) away from th...

How can I "Click Through" a control in WPF?

I have an order entry form that has a listbox with a list of line items. I have my items template, and one of the values is a ComboBox in each of my Items. Now, my form can also create Credit memo's in addition to purchase orders, but when I am creating a credit memo, I want to put the words "Credit Memo" over the list box, however, th...

Styling pagination Cakephp

How do you style the paginator with CSS used in CakePHP? I can't find a way to attach a CSS class / ID to each of the "span" generated by the default pagination helper in CakePHP. ...

Basic Html style font-family question

<span style="font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif;"> content </span> Does this mean that there is going to be a priority list for the specified font families on the client, i.e. if no 'Segoe UI' will check for Tahoma, no Tahoma will go for Arial and so on? Answer with YES or NO will be good enough! ...

GUI Style Examples

Are there any site that show good examples of web application styles? Form designs and layout styles? "Coding is easy, getting it to look good thats hard" -Thanks ...

Is it good style to explicitly return in Ruby?

Coming from a Python background, where there is always a "right way to do it" (a "Pythonic" way, if you will) when it comes to style, I'm wondering if the same exists for Ruby. I've kind of been using my own style guidelines but I'm thinking about releasing my source code, and I'd like it to adhere to any unwritten rules that might exist...

Autoload in Python

In the past I've used perl's AUTOLOAD facility for implementing lazy loading of symbols into a namespace, and wanted the same functionality in python. Traditionally the closest you appear to be able to get is to use a class and a __getattr__ class to achieve this sort of thing. However I've also tried rummaging around in sys.modules, a...

Setting a style's TargetType property to a base class

Hi, I was just poking around a bit in WPF and wanted all elements on my Window to share the same margin. I found that all Controls that are capable of having a margin derive from FrameworkElement so I tried the following: <Window.Resources> <Style TargetType="{x:Type FrameworkElement}"> <Setter Property="Margin" Value="10" /> </Sty...

How can I change Item and Content Templates based on the object type?

I have a WPF TabControl that I have set the ItemTemplate as well as the ContentTemplate. This tab control displays Call Log information based on customer tech support information. Inside of this same control, I would also like to be able to show a ReturnAuthorization template. I would like to swap these out based on the object type add...

How do I remove the border theme colors from safari text inputs in CSS?

Check out http://www.tonyamoyal.com/rounded_corners2.html with firefox and safari. I am trying to hack a rounded corner text input solution but safari displays a "theme color" when you click on the text input. Any thoughts on how to remove this in CSS? Maybe I don't know the name of this attribute because I cannot find anything search...