style

How to reduce space between tr?

Hi all, I am trying to replicate a page I have been given, and I have nearly finish, but I have a small problem with it. The space between tr are too big. I have done it reducing the margin top and bottom but there is a point where rows overlap. Does anybody have any suggestions? Thanks. e.g. <style type="text/css"> .divContainer {...

JavaScript & copy style

I am copying a table cell with javascript. It works fine, just that it doesn't copy the style. I wanted to copy like below, but that didn't work. newCell.style=oldCell.style; So I figured that for my text-align, I have to copy it like this: newCell.style.textAlign=oldCell.style.textAlign; That worked, but whenever I add a new style it...

How to fix height of TR?

Is it possible to fix the height of a row (tr) on a table? The problem appears when I shrink the window of the browser, some rows start playing arround, and I can not fix the height of the row. I tried several ways: tr width="20" / tr style="height:20px" / td height="20" / td style="height:20px" I am using IE7 Thanks in advance. S...

How to get min-width or similar to work on whole page? IE7 and 8

Hi, I am creating a Web page, the problem is that when I shrink the window of the browser, the tables and the div will shrink at the size they need to fit the content, and it makes the page look terrible. I have to declare a width of 90% for all elements, but when I declare min-with:700px; to all elements (div and tables) do not obey an...

Using Microsoft Windows Standard Style in WPF-Window?

Is it posible to use the Microsoft Windows Standard Style in a WPF-window? If I create a normal WPF-Window with a textblock or something like that, the font is very small and not the same like in Microsoft Windows. The background of the window is white. Maybe you can tell me how to use the Style or an information source or things like th...

Databinding in style to property on parent window

Hi, Is it possible to declare a style that sets the fontsize of tooltips to the same size as the parent form? I have tried this... <Style TargetType="{x:Type ToolTip}"> <Setter Property="FontSize" Value="{Binding ElementName=MainWindow, Path=FontSize}"/> </Style> ...but that doesnt work. Any suggestions? ...

WPF GroupBox with no header space

Hi, Easy one, I would like to have a GroupBox with no header space The closest thing is a border, but the border "by default" does not have the same Style as the group box. What's the easiest way (least xaml / code) to get the desired GroupBox ? Thanks ...

Is there a reason why I shouldn't just define #define NSFM [NSFileManager defaultManager] instead of writing it out each time?

There is a built-in shortcut NSApp, is there any reason that I shouldn't add one for NSFileManager? #define NSFM [NSFileManager defaultManager] I think omitted this will make my code cleaner and I can't see any benefit to keeping it in. (I plan on doing this in all my projects from now on, so it won't be obscure.) NSFileManager *fm =...

CSS Style Visibility not behaving as expected

I have a html page with a basic tab control. I use javascript to show and hide tabs and tab content divs. My problem is that if I change the visibility of an element inside one of the tab content divs to 'hidden', then back to 'visible', the element seems to forget or lose its parent div container and remains visible, regardless of its o...

Theme/Style is not applied when inflater used with ApplicationContext.

I have theme that specifies textColor for TextView as red. I am using LayoutInflater to instantiate TextView. The problem is that styles are not applied to TextView when inflater created using ApplicationContext - the color is not red. All works fine when LayoutInflater created using activity. Why this happens, and how can be fixed? /...

Retemplating a Button control with custom properties possible?

I made myself a TransparentButton style that makes the Button portion behave the way I want it to (mouseover, enabled, etc), but what I haven't been able to do is set the content correctly in the style. Currently, I manually set everything in for every button, and clearly that stuff needs to go into the style. I have set the ContentTe...

Custom ListView binding it to a object list [winforms]

EDIT: Question Reworded I have a listbox that should display data that contains 2 fields: time and a message. Instead of displaying 1 line of text, I want each item to be displayed as 2 lines - 1st line is the time and the 2nd line is the message, where each line has a different style. How can I do this? I can bind the object array to ...

Winform customize listbox item

Possible Duplicate: Custom ListView binding it to a object list I have a listbox that should display data that contains 2 fields: time and a message. Instead of displaying 1 line of text, I want each item to be displayed as 2 lines - 1st line is the time and the 2nd line is the message, where each line has a different style. Ho...

[WPF/XAML] - Change DatePicker style based on SelectedDate

Hi all, First question here. Anyway, here it goes: I have a XAML Windows with a lot of DatePicker controls (DatePicker from the WPFToolkit on CodePlex). Every DatePicker has a default Value of 1/1/1990 and if no other date is selected, I want (or rather my boss :-) ) to display the Text in gray italic and not in Black. Thus, it makes it...

Removing arrows from scrollbar in Qt

I'm using a small black and white screen and need the scrollbar to just be a black slider in a black outer frame. I got what I wanted using style sheets but including them in the configuration when installing takes up too much space so I can't use them. Is it possible to remove the arrows by inheriting from QStyle or something? thanks ...

Formatting sentences in a string using C#

Hi All, I have a string with multiple sentences. How do I Capitalize the first letter of first word in every sentence. Something like paragraph formatting in word. eg ."this is some code. the code is in C#. " The ouput must be "This is some code. The code is in C#". one way would be to split the string based on '.' and then capital...

Simulating rowspan with css and divs?

Hi I am trying to simulate the rowspan property on css using divs and tags, so it can be changed on a:active = double height, but at the moment it grows from two rows to three rows. It only works when the first column its expanded, if I expand the second, third, etc then it would grow to three rows. Here its the sample code that works...

What's the reasoning behind putting constants in if statements first?

I was looking at some example C++ code for a hardware interface I'm working with and noticed a lot of statements along the following lines: if ( NULL == pMsg ) return rv; I'm sure I've heard people say that putting the constant first is a good idea, but why is that? Is it just so that if you have a large statement you can quickly see ...

Wpf Tool Window Style Application not visible in alt+tab

I have a WPF application with Main Window which is not a tool window Launch a child window which has WindowStyle="ToolWindow" ShowInTaskbar="False" from main window Now BOTH Main Window and Child Window are not visible in Alt+Tab. [Child window not appearing in alt+tab is expected behavior,but Main window should be visible] Any help...

How to set a active link as default when page first time load.

Hi all, I need some help to set a link as active as default when the page load the first time. <style type="text/css"> a{ color:black; } a:hover{ color:white; } a:active{ color:blue; } </style> <div> <!--I want this fisrt link to be set as active by default--> <a href="#"/> <!--I want this one as normal--> <a href="#"/> </div> I d...