Все вопросы: [label]

127 вопросов

42
голосов
5ответов
44175 просмотров

C struct initialization using labels. It works, but how?

I found some struct initialization code yesterday that threw me for a loop. Here's an example: typedef struct { int first; int second; } TEST_STRUCT; void testFunc() { TEST_STRUCT test = { second: 2, first: 1 }; printf("test.first=%d test.second=%d\n", test.first, t...

0
голосов
2ответов
5346 просмотров

WPF Putting a Button on a Label

I've got a listbox of Labels, each bound to a LabelName and LabelColor. I want to add a small button that resembles an "X" and attach it on the right side of the Label. I want it to look seamless, like the X is very non-intrusive. Any ideas how to do this? The stuff between the <Label.ContentT...

1
голосов
1ответов
758 просмотров

Silverlight: Label does not evaluate Binding of custom DependencyProperty

I have a Silverlight 3 Label which I connect to a ComboBox using the Target Property of the Label. According to MSDN the Label class iterates through the targets bindings and searches the sources for meta data to determine the content of the Label. This actually works as long as the target is a ...

5
голосов
2ответов
9005 просмотров

Reset a flex label width to "auto" after setting an explicit width?

Once I've set either the width or percentWidth property on a flex label, is there a way to reset the width to its default (i.e., the width of the text plus padding)? I'm using the label as a renderer. In some cases, I'd like it to automatically size to the text, and in other cases, I'd like i...

28
голосов
1ответов
10070 просмотров

is there a equivalent of Java's labelled break in C# or a workaround

I am converting some Java code to C# and have found a few labelled "break" statements (e.g.) label1: while (somethingA) { ... while (somethingB) { if (condition) { break label1; } } } Is there an equivalent in C# (current ...

136
голосов
3ответов
186519 просмотров

Using "label for" on radio buttons

When using the "label for" parameter on radio buttons, to be 508 compliant*, is the following correct? <label for="button one"><input type="radio" name="group1" id="r1" value="1" /> button one</label> or is this? <input type="radio" name="group1" id="r1" value="1" /&gt...

8
голосов
6ответов
28220 просмотров

Windows batch file - The system cannot find the batch label specified

The Problem I'm having a problem with a Windows batch file and labels. I keep getting this error: The system cannot find the batch label specified What I've tried Two computers; a WindowsXP and a 2003 Server. Made sure it was encoded as ASCII Editted the hex code for the line continuat...

0
голосов
2ответов
9177 просмотров

C# How to set label text in a listview?

In my codebehind I want the set the text of a label. Here is the aspx code: <asp:ListView ID="lstRegistrations" runat="server"> <LayoutTemplate> <table cellspacing="0" cellpadding="0" border="0"> <tr> <th width="80" align="left"&...

1
голосов
2ответов
7607 просмотров

Rename a label programmatically in vb.net

I am using visual studio 2008, using VB.NET. I have a number of labels that I want to rename programmatically. The current names for the labels take the form of label100, label101,label102 etc. It sounds so simple but its got me beat, is this possible?

12
голосов
5ответов
34094 просмотров

Underline Label in WPF, using styles

I have the following style: <Style x:Key="ActionLabelStyle" TargetType="{x:Type Label}"> <Setter Property="Margin" Value="10,3" /> <Setter Property="Padding" Value="0" /> <Setter Property="TextBlock.TextWrapping" Value="Wrap" /> <Setter Property="FontF...

0
голосов
1ответов
1411 просмотров

How to retrieve all tab names or labels without selecting tab in jQuery?

How to retrieve all tab names or labels without selecting tab in jQuery? I need this to validate tab name/label length.

0
голосов
1ответов
829 просмотров

ASP .NET Label orientation for East Asian Text

Does anyone know how to create an asp .net label control that is orientated in 90 degrees clockwise Right now the way I do it is using tag like this <td style="font-size: 13px; width: 20px; text-align: center; vertical-align: bottom;"> <asp:Label ID="lbl1" runat="serve...

0
голосов
3ответов
184 просмотров

Which is smaller footprint in C#

A lable sized like a rectangle with no text but has a border and is invisible (for a visual rectangle on the form around controls but not to contain the controls) or a panel?

2
голосов
3ответов
1149 просмотров

Is it possible to simulate HTML tag <label></label> in asp:Label ASP.NET Control?

I really like the HTML tag which makes it really easy to see which label stands for which input element by checking its 'for' attribute. You know, something like: &lt;label for="txtInput"&gt; Enter your name&lt;/label&gt; &lt;input type="text" id="txtInput" /&gt; Is it possible to do ...

0
голосов
1ответов
2323 просмотров

flex3:How to override function set label of a button

Flex 3 question: I trying here to avoid having to bind resources to all my components labels ( ie a button) and find a way to have this automated. Problem: It corrupts the layout in design mode to bind directly in the mxml label="{resourceManager.getString('myResources', 'submit')}" and makes ...

4
голосов
4ответов
2218 просмотров

How to see what label color is on a file/folder from within Termnal (Mac OS X)

I want to include in a script a check for a file input to see if the file/folder has a color set and if it does, which one... (I don't need help with the creation of this script, just need the command to check what color the label is). eg, like these colors (grey): http://img.skitch.com/20090923...

4
голосов
2ответов
5385 просмотров

How to set textblock or label with resizable font size in WPF?

In WPF, if i put any controls in grid, if i resize the grid, it automatically resizes all the controls in it.But in label or textblock or any other text elements, all the control sizes will change but font size remains same, it will not change. If font has to change as per grid size, What should...

9
голосов
3ответов
3522 просмотров

Is Interface as labels a bad practice in java OO?

During the parsing of certain xml files, I come across a situation that I have to use interface as labels to identify that certain tags belong to certain category, for example, I created a Tag interface to identify that these classes are used to represent xml tags, and ContainableTag to point out...

1
голосов
1ответов
2027 просмотров

devexpress aspxgridview - setting label with page number

I am using devexpress aspxgridview in asp.net 3.5 web application. on pageload, I have a label control on top of the page whose text for example is "abc". I am trying to set the value of the label with the page number selected by the user from the grid using onpageindexchanged event. But the l...

6
голосов
5ответов
8343 просмотров

JUNG (Java Graph): How to prevent Vertex- and Edge-Labels from overlapping?

I'm currently using Jung to draw graphs (I really mean graphs not charts!). The problem is that Vertex and Edge Labels are overlapping with the Vertexes and the Edges. This leads into strange looking graphs. The Problem is not bound to a specific Layout-Algorithm (though I've been using FRLayout...

21
голосов
6ответов
4807 просмотров

Algorithm for nice graph labels for time/date axis?

I'm looking for a "nice numbers" algorithm for determining the labels on a date/time value axis. I'm familiar with Paul Heckbert's Nice Numbers algorithm. I have a plot that displays time/date on the X axis and the user can zoom in and look at a smaller time frame. I'm looking for an algorithm t...

1
голосов
1ответов
1057 просмотров

Does the ASP .NET Label Add to the Weight of the ViewState Being Passed on Localization?

I am currently working on a localization project for an ASP .NET application. I currently have a massive page with a multi view with about 9 tabs with each tab containing lots of data. I was just wondering, I put a lot of tag on my ASPX page so that I could localize my text easily. I was wonderi...

2
голосов
1ответов
2445 просмотров

Zend Form - Method to extract Label value from Form Class to show in View Script?

I'm in the process of switching my forms to use a View Script as their decorators. The examples I've seen so far do the following in the View Script: &lt;td&gt;&lt;label for='textEmail'&gt;Email:&lt;/label&gt;&lt;/td&gt; &lt;td&gt;&lt;?php echo $this-&gt;element-&gt;textEmail; ?&gt;&lt;/td&gt; ...

0
голосов
2ответов
1804 просмотров

AutoEllipsis in StatusStrip Label?

I'm coding a Windows Forms App that has a StatusStrip that displays status informations to the user, and hints when the mouse is over relevant things. However, when the program is on it's minimal window size, the text sometimes is bigger than the whole StatusStrip, and the label simply dissapears...

28
голосов
9ответов
70933 просмотров

C# vertical label in a Windows Forms

Is it possible to display a label vertically in a Windows Forms?

1
голосов
1ответов
1415 просмотров

Problem with Checkbox label added by JQuery Clone Method

How do I specify label to Checkbox that is added thru the JQuery Clone(false) method and does not have a Unique id ?

7
голосов
1ответов
54287 просмотров

VB.NET: How to compose and apply a font to a label in runtime?

I'm developing a Windows Forms Application in Visual Basic .NET with Visual Studio 2008. I'm trying to compose fonts (Family name, font size, and the styles) at runtime, based on user preferences, and apply them to labels. For the sake of both a simplier user interface, and compatibility betwee...

0
голосов
1ответов
1351 просмотров

How to label by date of file in Visual SourceSafe?

I would like to label a project and its files in VSS according to a certain previous date. In other words, I would like to be able to select versions of each file in a project as they existed on a particular date and then apply the label to those versions of the files. I have tried pinning files ...

1
голосов
1ответов
251 просмотров

All the UILabels in my UITableViewCell sometimes have a black background color

This happens like once every 100 times I open my app. Normally all the UILabel work fine and have a white background. But every once in a while, the app opens and they all have a black background. Then it's black on black text and you can't read anything. I've tried setting the backgroundColo...

0
голосов
1ответов
2572 просмотров

"Input string was not in a correct format" when using SqlDataReader and Label

I'm joining two tables - Contact and RetailTrainingUserLevelMap in a Select statement. (The common column in both is the RetailTrainingUserLevelID int) SELECT Contact.IntranetUserName, Contact.CompanyName, RetailTrainingUserLevelMap.RetailTrainingUserLevel FROM Contact INNER JOIN RetailTrain...