I'm using a spinbox with a custom font which looks too high in the spinbox. How do I move the text lower? I have already reimplemented Qstyle and made the font lower in another widget but I can't find where to do it with the spinbox, there must be a qrect somewhere where you can just move the top of it but I don't know and can't seem to ...
I've built a UserControl that extends the functionality of the ComboBox in interesting and useful ways. It looks like this when it's dropped down:
I've built a whole bunch of features into the control and they all work smoothly. This leads me to believe that I have something of a clue as to what I'm doing. You'd think it would be a...
Hi,
I'm trying to set the webkitTransform style attribute, but it's not setting for some reason. But there are other attributes that are successfully being set to the div.
This doesn't work:
var cell = document.createElement("div");
var canvas = document.createElement("img");
cell.className = "baz";
cell.appendChild(canvas);
cell.st...
I was working on my button template with this example: http://msdn.microsoft.com/en-us/library/ms753328.aspx
I found the "IsDefaulted" property quite useful, but can't use it.
I have the following trigger setup:
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="true">
<Setter TargetName...
HI guys.
I having a problem, although I dont understand why.
I am trying to add a backgroung image for a "a" element, but it would only show part of the image ( so if I have Home as value, whatever space home takes that is what is shows of the image, if the value is empty it wont show anything of the image).
Despite I have setted up th...
I remember reading a style guide explaining what the proper line-height should be for each element. I can't find it on google.
I would appreciate it if anyone could link me to such a guide, or perhaps explain it in an answer.
Thanks!
Edit: SORRY, please let me clarify. I'm not asking about how to use CSS to set line-heights, but what ...
HI all,
I am having a problem with my web page, because I have a wrapper around all element of the page (header,navigation menu and content) when the content expands due to the amount of data to display it would go over the wrapper without pushing it down, but on IE7 it does expand the wrapper.
It is driving me crazy, and I can not figur...
Hi,
I have a string array and was trying to style certain parts of the text with tags like < b>, < i>, ... but it doesn't work.
The array looks like this:
<resources>
<array name="hour1">
<item>blabla\n<b>blabla</b></item>
</array>
The text is displayed in the textview like this:
tTite...
All throughout the Windows UX Guide it is suggested to use the appropriet SystemColors within an application to ensure that an application's default theme is consistent with teh rest of the system. I totally aggree, the only problem is that there seems to be no guide for how named values within the SystemColors type map to actual common ...
I have created a borderless window style wherein I draw the chrome (Borders, TitleBar, Min, Max, Close, SystemMenu, etc) and I would like to check it against an existing example. Specifically for the SystemMenu but also in case I missed something. Does anyone have or know of similar examples?
...
I want to style a WPF datagrid and it seems to be really easy . As far as I understand I have to have code such as the following:
<Style x:Key="DataGridColumnHeaderStyle" TargetType="{x:Type Custom:DataGridColumnHeader}" >
<Setter Property="Background" Value="#88800080" />
<Setter Property="Foreground" Value="White" />
</Style>
...
I am trying to create a file upload field that has a little bit of style to it, but I seem to be having problems finding examples of this. I know part of the reason is that the field itself varies from browser to browser.
Any ideas how to do this? Or is there a way to do this without using a file element of a form that can be styled?
...
Preferably, I'd like a somewhat fancy bevel . I'd like the picture to have some depth on it..so it doesn't look so plain and old-fashion :)
...
I have styled a window to replace the standard Chrome and I want to handle the Activated and Deactivated events using EventSetters. I get an error "...'Activated' must be a RoutedEvent registered..." with this:
<EventSetter Event="Activated" Handler="Window_Activated"/>
However, this works fine in the same style.
<EventSetter Ev...
Is it considered bad form to give a DTO a reference to the data access layer?
Or should you always pass a DTO between the data access layer and the application layer?
EDIT: For example, imagine the following:
I keep a product types list in my database.
I'd like to render this list in a drop-down box in a partial view.
This partial vi...
<div style="padding:20xp;width:100%;"
<div style="width:?????">
<div>
</div>
I would like the inner div to fill the screen completely, even when the outer div has 20px padding. How can that be done? thanks.
...
How can we show user Warnings in a similar way to Errors. The only difference is that the control e.g. TextBox needs to have a different error template and similar to Validation.HasError there needs to be a Validation.HasWarning.
In other words not all validation issues are "errors" (in our application at least). We want to visually ind...
In java I would create something like this:
private static MyClass instance;
public static MyClass getInstance() {
if(instance != null) {
return instance;
}
instance = new MyClass();
return instance;
}
What is the appropriate way to obtain the same functionality in ruby?
Update: I've read about 'include Singleton' but wh...
I am writing a custom composite WebControl and want to expose styles of child controls it encapsulates to the ASP.NET designer. The code I currently have is similar to the skeleton below (which for simplicity only has one child control).
With the code below, I can see property "ChildPanelStyle" in the designer, but when I try to modify...
Hi,
I have some html files with their own css. I want to use them in a gwt application so i copied the html and the css files in the application.
The problem is when i open the html it uses the gwt theme style. For example in my css the html 'body' background color is black, but it looks white unless i deactivate the theme.
How could ...