FAQ Database Discussion Community


Add text to series of labels

jquery,html,html5,label
I have a list of fields where the descriptions are inside label tags. I want to add the Text "Your" before each label. So far I have <div id="field1"> <label> First Label </label> </div> <div id="field2"> <label> Second Label </label> </div> <div id="field3"> <label> Third Label </label> </div> <div id="field4">...

Label outliers using mvOutlier from MVN in R

r,label,outliers
I'm trying to label outliers on a Chi-square Q-Q plot using mvOutlier() function of the MVN package in R. I have managed to identify the outliers by their labels and get their x-coordinates. I tried placing the former on the plot using text(), but the x- and y-coordinates seem to...

Update label's text when pressing a button in Kivy for Python

python,python-2.7,button,label,kivy
Here is my code: I want to make a game where the main_label changes text when you press a button but I've looked everywhere for a week and still don't understand how to do it. I looked on Kivy's website but I don't understand. As you can see I'm new...

How to distinguish between a label and a textfield in cocoa application?

objective-c,cocoa,label,nstextfield
I want to have a collection of all of my textfields in my view: for ( NSView* view in [self.view subviews]) { if ([view isKindOfClass:[NSTextField class]]){ [self.allTxtFields addObject:view]; } } problem is, that Labels are happened to be NSTextField too! how can I differ a textfield from label?...

ggplot's geom_text() labelling of pie chart hides the pie made by geom_bar()

r,ggplot2,label
I constructed the following data using the aggregate(,,FUN =sum) function: structure(list(Group.1 = structure(c(1L, 2L, 3L, 1L, 2L, 3L, 1L, 2L, 3L), .Label = c("Black or African American", "White Alone", "White Alone LR"), class = "factor"), Group.2 = structure(c(1L, 1L, 1L, 2L, 2L, 2L, 3L, 3L, 3L), .Label = c("bus", "mixed",...

Change axis displayed value in D3

d3.js,label,axis
I would like to change the value of the y-axis in my graph, such as, instead of displaying [0,18], it displays [-18,0]. My initial code for the axis is: var y = d3.scale.linear().range([height, 0]); var yAxis = d3.svg.axis() .scale(y) .orient("left"); and I tried to modify it like this: var yAxisInv...

stop d3 circle pack labels from overlapping

javascript,d3.js,label,zoom,circle-pack
Stuck on overlapping labels. To illustrate: JSFIDDLE Click on the text label "Group A". After the zoom transition, the Group A label remains causing overlap with the small circle's label. Click elsewhere to zoom out. Click on "Group A" again. This time the label does not remain, so there is...

Swift autolayout multiple views/labels

ios,swift,autolayout,label
I want to programmatically divide my screen into three parts. Each part shall be a label with a backgroundColor and the width is set to be: // Get the device width self.view.bounds.width The height must be dynamically. An example is in the image below. Each color is one part. The...

Why radio button is not getting checked by clicking corresponding text is not working in HTML?

html,label,internet-explorer-10
When user click NO then corresponding radio button should get checked along with direct click on button. Following is snippet from one of my code: <span style="display: inline-block;"> <label for="kug.bla0"> <p> <input id="kug.bla0" type="radio" value="No" name="kug.bla[0]"> No </p> </label> </span> Is there any way to do it without modifying HTML...

Tkinter label go at the bottom of the frame

python,tkinter,label,tk,pack
I have kind of a problem with my little Python application using Tkinter and the pack layout management. I don't understand why the labels go at the bottom of the frame. Here is the code: class App: def __init__(self, master): frame = Frame(master) frame.pack() photo = PhotoImage(file="icone.gif") self.label = Label(image=photo)...

How can I use python to display nested lists in separate lines in kv label?

python,list,nested,label,kivy
I have a list of lists, where there are 3 items per inner list (as in the example below). data = [ ["abe","abo","aba"], ["ade","acd","acr"], ["adr","adw","adz"], ["akw","aky","akz"], ["bad","bbf","btr"], ["bst","bsv","bus"] ] In the kv file, I have set a Label (inside a ScrollView) to display information from the list when the user...

Need to add spaces between labels in javascript

javascript,label,spaces
i want to make some spaces between those labels: "<label>" + currentItem.get_item('Monday') + "</label> " + "<label>" + currentItem.get_item('Tusday') + "</label> " + "<label>" + currentItem.get_item('Wensday') + "</label> " + "<label>" + currentItem.get_item('Thirsday') + "</label> " + "<label>" + currentItem.get_item('Friday') + "</label> " + "<label>" + currentItem.get_item('Saturday') + "</label> "...

R barplot with very long names

r,ggplot2,label,bar-chart
I want to produce a barplot of 10 items stored in a data frame: df <- structure(list(v = structure(c(0.133177575198731, 0.048416489312887, 0.0323328322269662, 0.0257842168974815, 0.0207946396185765, 0.0157952295839215, 0.015414483430714, 0.0138292246981344, 0.0136598827935515, 0.0132108536143025 ), .Dim = 10L, .Dimnames = structure(list(c("HIPERTENSION ESENCIAL (PRIMARIA)", "RINOFARINGITIS AGUDA", "DIARREA Y GASTROENTERITIS DE PRESUNTO ORIGEN INFECCIOSO", "LUMBAGO NO ESPECIFICADO", "INFECCION...

CheckBox disabled - disable only check box, not label

windows,checkbox,label,disabled-control,isenabled
I am using CheckBox in my Winforms application and it is showing to a user if some functionality is set or is not set. If the functionality is curretly running the CheckBox is flashing (label is changing color from black to grey in 1 second interval). But in some case...

C# label should do diffrent things when clicked

c#,label,eventhandler
I need a label which does something different with every click. private void open_Click(object sender, EventArgs e) { for (int i = 0; i < 5; i++) { builder = new StringBuilder(4); builder.Append(zahl1.Text); builder.Append(zahl2.Text); builder.Append(zahl3.Text); builder.Append(zahl4.Text); code = builder.ToString(); } if( code== setCode) { openAndClose.BackColor = Color.DarkGreen; setNewCode.Visible = true;...

Trigger the file input prompt with a hidden label element - Safari

html,css,label
I have the code: <label name="xs" id="xs" for="fileselect"> <p class="add_atach">Test</p> </label> <input type="file" id="fileselect" name="fileselect[]" multiple="multiple" style="display:none;" /> If I leave display:none; on-click nothing happens. If I change it to visibility:hidden;, the code works but the space occupied by the element remains. What to should I do ?...

Plotting data labels within lines in Matlab

matlab,label,contour
My question is similar to the post: matlab curve with label I have some data (acquired using a function too long to show here), which gives me 2 arrays: Nv4 (337x1) and t (337x1) and I want to plot 'a=40' on the plot line. I should be able to use...

Keeping score in XCode using swift

ios,xcode,swift,label
So I want to keep a Score in an XCode project. But I want it to be like 0.01, 0.02... until it gets to 1.00 and from 1 to continue like 1, 2, 3... My current code looks like this: var Highscore = 0 var Score = 0 ... @IBAction...

How to add axis labels to a simple.scatterplot (UsingR)

r,graph,label
The package UsingR has some great out of the box plotting tools. However, using the simple.scatterplot function I can't figure out how to add axis labels. library(UsingR) simple.scatterplot(iris$Sepal.Length, iris$Sepal.Width, xlab='hello axis') Error in plot.default(x, y, xlim = xrange, ylim = yrange, xlab = "x", : formal argument "xlab" matched by...

Chartjs display label & units when mouse is hover stats

javascript,jquery,label,chartjs
Is it possible to have the label & units when my mouse pointer is hover the chart ? For now there is only the number. For the example bellow I would like to show : 58% Label1 0% Label2 0% Label3 0% Label4 0% Label5 My options looks like this...

Tkinter. StringVar(). How I can update the Label in my code.

python,tkinter,label
I have a problem with updating the Label widget (lab1_datum_in). I would like to change the Label text every time I change radiobuttons. Really do not know what is wrong. Could anyone help? My interpreter is Python 3.4 Thanks in advance! import tkinter root = tkinter.Tk() # Creating radiobuttons v...

How do you make a label clickable and call a c# method

c#,asp.net,label
Is it possible to add an onClick event to an asp:label and let it call a c# method rather than js? Something like: <asp:Label ID="lblTest" runat="server" Text="" ToolTip="Amount of errors this person is processing" Style="cursor: help;" OnClick="lbl_Click" /> And on the server side: protected void lbl_Click(object sender, EventArgs e) {...

Creating a statusfield for users

c#,foreach,label
I need some guidance here on why this isn't working: So here's the issue, I want to give my users a little status field so they can check how long it will take and get a coffee or two for them. My Problem is that the statusfield (2 Labels), are...

Label of donut chart is too long

d3.js,label,donut-chart
My problem is labels of donut chart too long. It'll be cut lost when it get over width or height of svg. i don't know how i must cut it to 2 or more line. I try to add tag div outside tag text but it's wrong. Who can give...

WPF: 2 different label sizes in particular order alignment

wpf,alignment,label
Please take a look at this picture: I try to create same label with 2 sizes: <Grid> <Label Content="11" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="50" /> <Label Content="%" HorizontalAlignment="Right" FontSize="20" VerticalAlignment="Top"/> </Grid> But currently this is not like the picture: ...

ClearCase Config Spec: load only files with specific label from certain directory

label,clearcase,config-spec
Suppose I have a VOB foo/. In this VOB lies a directory bar/ which contains labeled and non-labeled files. But bar/ is not the only directory in foo/, but all others don't have labeled files. Is there a way to write a config spec with the following behaviour: load all...

SAS proc sql - how to read in log of variable but retain the variable's label

sql,sas,label
I am reading in variables from a few different datasets using proc sql, which I am trying to improve on. What I'd like to do is read in a variable from a dataset using proc sql, but take the log of the variable as it's read in, but keep the...

Changing the text of a C++ CLI label

c++,c++-cli,label
I am trying to change the text of a label in a C++ CLI program. I need to take a value the the user entered in a textbox, insert that into a short string, then change a label to that string. I have no problem constructing the string, but I...

is there a way to use the ggplot aes callout without inputing the column name but by just inputting the column #?

r,ggplot2,label
EXAMPLE DATASET: mtcars mpg cyl disp hp drat wt ... Mazda RX4 21.0 6 160 110 3.90 2.62 ... Mazda RX4 Wag 21.0 6 160 110 3.90 2.88 ... Datsun 710 22.8 4 108 93 3.85 2.32 ... ............ Recommended ggplot way: ggplot(mtcars,aes(x=mpg)) + geom_histogram They way I want to...

Double-clicks when label of radio button is clickable

javascript,radio-button,label
I am writing a JavaScript to run a questionnaire. I iterate through a list of questions, displaying the question and a set of radio buttons (for Yes/No answers). For each new question, I display the radio button set, collect the answer when they are clicked, hide them, uncheck them and...

Sync Blinking Labels in C#

c#,timer,label,custom-controls
I created a BlinkingLabelclass, derives from Forms.Label, which has a Forms.Timer which allows me to enable and disable the blinking effect. I have created 4 labels of BlinkingLabel type, my problem is that if all 4 labels where to blink in different times, the blinking effect is not synced. How...

Bootstrap Buttons Radio Button Showing Inside Columns

jquery,css,twitter-bootstrap,label,radio
Implementing Bootstrap Buttons. When you place each label inside a div, the radio button appears. Remove the div and the radio buttons do not appear. How to implement inside div and hide the radio button? We want inside a div only so we can use cols. <div class="btn-group" data-toggle="buttons"> <!--Shows...

How to load a image into a label without saving to hard drive python Tkinter

python,image,tkinter,label,stringio
I am working on a project where I have a list with a couple of StringIO in it. I want to load those into a Tkinter label but I get this error: IOError: cannot identify image file. I understand that it means it can not find the image file. But...

r igraph - how to add labels to vertices based on vertex id

r,label,igraph
I have an igraph where each vertex has both a vertex ID and a name. I want the vertices to still be identified by their vertex ID's, but to be labeled by their names. It seems like when adding labels to vertices through V(g)$label <- names, the names have to...

Label linked to a text box value

excel,vba,textbox,label
Good morning, I am editing an User Form on VBA Excel and I would like to show an alert if the user insert a certain value in a text box. I wrote this code: If txtbox.Value < 0 Then lbl_Alert.Visible= True Else lbl_alert.Visible=False End IF The code works properly but...

Is it possible to access element from inside DataList

c#,label
I am working on a car adverts website. Currently I am trying to do a simple wish list feature allowing the user to store certain cars to his wish list on button click. My cars are presented to the user via DataList. As there is only one button which is...

Trouble dynamically changing state of checkbox with AJAX

ajax,checkbox,label
I am trying to have to check boxes through ajax, but it is not working properly. I am not able to change state of the first checkbox, only the second one is working fine. Could anyone spot the error here? $.ajax({ type:"POST", url:"../scripts/domainlist.php?dept="+deptid+"&pro="+proid, contentType:"application/json; charset:utf-8", dataType:"json", success: function(data){ $('#domainlist').empty(); $('#domainlist')...

add label to a checkbox cakephp

php,cakephp,label
I am a bit new to CakePhp. I have an input that is a checkbox with a label and i would like to assign a class to the label. Here is what I have so far: echo $this->Form->input('', array( 'type' => 'checkbox', 'label' => 'I agree to the conditions', 'separator'...

Labels on Nodes and Relationships from a CSV file

csv,neo4j,load,label,cypher
I have problem when i want to add a label on a Node or to a Relatioship. I do this in Neo4j with Cypher: LOAD CSV WITH HEADERS FROM "file:c:/Users/Test/test.csv" AS line CREATE (n:line.FROM) and i get this error: Invalid input '.': expected an identifier character, whitespace, NodeLabel, a property...

JavaFX PiChart, my hover values blink

javafx,popup,label
Context : Hi ! I'm trying to create a little popup which display the value of slice when mouse hover, on my PieChart (with JavaFX). I successed on my LineChart, AreaChart etc.. Thanks this post : JavaFX LineChart Hover Values (thank you so much Jewelsea for your help). Problem (1/2)...

set row/column span programatically

c#,winforms,label,tablelayout
I'm trying to make a dynamic layout to display data from a database, for that i'm using a tablelayoutpanel and I got it to where it puts the data in the fields I want it go to but I can't figure out how I would go about giving some of...

In JQGrid, How can I dynamically get the column header label when validating a filtertoolbar field?

javascript,jqgrid,header,label
I have a jqGrid with the filtertoolbar option enabled. For a column or columns in the grid, I want to validate the column in some fashion, e.g., if an input field exceeds a certain length, display an alert. When I display an alert, I want to display the column header...

How to extract label text at button click

c#,button,label,commandargument
So what I want to do is to extract the text from a label when a button is clicked. What I've got so far is the following: <asp:Label ID="lbl_carID" runat="server" Text="Label"></asp:Label> <asp:Label ID="lbl_ownerID" runat="server" Text="Label"></asp:Label> <asp:Button ID="btn_wishList" runat="server" Text="Add to wish list" CssClass="btn" CommandArgument='<%= lbl_carID.Text.ToString() %>' OnCommand="btn_wishList_Command" /> <asp:Button ID="btn_offer"...

Changing a label during ActionEvent

java,jframe,label,jlabel
I am trying to enable/disable a label when a button is pressed and i want to do this during the event and not after it. As you can see below, i try to enable/disable the two labels: lblKeyboard and lblGamepad. They end up running after the "RemoteControl.run();" is executed but...

Call out of an Array, objectAtIndex

ios,objective-c,arrays,label
I have an Array with 10 Objects. I take the first Object and put it into my Label with a String. Then I want to have a Method that increases the objectAtIndex by 1. This is my Code : //.m @interface GameViewController () { NSInteger _labelIndex; } @property (nonatomic) NSArray...

gnuplot rowstacked histogram: how to put sum above bars

label,gnuplot,histogram
This question is related to gnuplot histogram: How to put values on top of bars. I have a datafile file.dat: x y1 y2 1 2 3 2 3 4 3 4 5 and the gnuplot: set style data histogram; set style histogram rowstacked; plot newhistogram 'foo', 'file.dat' u 2:xtic(1) t...

How to label plot having peaks in matlab

matlab,label
I'm trying to label my XRD data which have peaks, and I want to label it from my array of data: peak label ab ac ad cb bb ba See picture below I also want those labels to be vertically aligned on the top of the peaks. I tried the...

How to get input from Entry and set it as the text in a Label

python,tkinter,label,entry
how do I get the Input from an Entry widget and set it as the text in a label widget. I have tried the following: l_one = Label(window, text= lambda: self.entry_1.get()) l_one.grid(column = 0, row = 0) To be honest, I didn't think it would work but it was all...

Setting Text of Label To Data Retrieved From SQL Database

asp.net,sql-server,webforms,label
I am building a website in ASP.NET Web Forms with a SQL Database. The database contains a table with 571 entry's of data. My problem occurs when outputting the data to the labels. Screenshots below. Database Example Source Code using (SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString)) { using (SqlCommand command =...

Put a Label in another function generated window

python,tkinter,label
I solved the problem I asked for in Put a Label in a function-generated window from another function Now, I have another problem on the same script. def window1(): windowone=Tk() button1=button(windowone, command=window2) def put(): labeltoput=label(windowtwo, text"text to put") def window2(): windowtwo=Tk() putlabel=button(windowtwo, text="put label on windowone", command=put) Now, when I...

How to get label of selected item in managed bean [duplicate]

jsf,label,selectmanycheckbox
This question already has an answer here: How to get both label and value from f:selectItems 4 answers I need your help in getting the values of a list into two variables. My list is having descriptions and codes. However, I need to place the descriptions in a variable...

kivy: press button -> change color of a label

python,canvas,colors,label,kivy
in the kv File I added a Label and changed its color: Label: id: ampel_rot canvas.before: Color: rgba: 1, 0, 0, 0.3 Ellipse: size: self.size My aim is to create some kind of a traffic light, so that the user of the GUI has some kind of visual feedback over...

how to make self updating clock label in kivy?

python,label,kivy,clock
I want to make a Label which acts as a clock and gets updated every second just as in making-a-clock-in-kivy link but in the status bar. I want the label in status.kv file with id: _tnd to act as a clock. The print statement in the update function (test_gui.py) does...

JavaFX - Concurrency and updating label

java,concurrency,javafx,label,togglebutton
I've got problem with these piece of code. I want to make an application, which constatnly displays randomized values in labels as long as the Toggle Button is pressed. That's what I created, it works but window after a few seconds is lagging horrible. What am I doing wrong? Here...

SqlDataReader help for displaying the data that is read into the text of different labels C#

c#,sql,sql-server,select,label
I am not very confident with the capabilities of SqlDataReader and how it works, would it be possible for me to create something that for each StudentID found corresponding to the SQL query, it displays every ID in a different label? And if so could you please help me out...

Overplotting of labels, data points and more (w geom_dl & direct label)

r,ggplot2,label
I can not find a solution for my overplotting problem. If somebody could help me find a solution I would appreciate that a lot. My data look like this (csv format): http://pastebin.com/embed_js.php?i=Cnfpkjsz This is the code I am running: library(dplyr) library(gdata) library(ggplot2) library(directlabels) all<-read.xls('all_auto_bio_adjusted.xls') all$station<-as.factor(all$station) all$automatic<-log(all$automatic) all$averagebiol<-log(all$averagebiol) all$stdevbiol<-log(all$stdevbiol) pd <-...

Can you play sound in windows while doing another task simultaneously?

python-2.7,tkinter,label
Is there a way to while playing winsound.PlaySound("some sound", FLAGS) also change a photolabel? I've been trying and no matter where I put the play sound it always play the sound before changing my photo label. My code: def thriller(self): winsound.PlaySound("thriller.wav", winsound.SND_NODEFAULT) img5 = ImageTk.PhotoImage(Image.open('thriller.jpg')) self.photoLabel.configure(image = img5) self.photoLabel.image =...

Make any word in label text as button programmatically iOS

ios,button,label
I have been searching for ways to do the following Label: "Your favorite color [Blue] / [Red]" where Blue and Red are buttons app has 2 type of fields picked from database as random question a) text b) buttons on text So, I get "Your favorite color Blue / Red"...

add class to html label at runtime asp net

css,asp.net,label
I work on asp.NET, coding on server side with C#. In the "view" part, I only have a label in my body, which is server side : HTML <label runat="server" id="html_label_1"></label> I would like to change its class at runtime. Here is my 2 CSS classes : CSS .label_error {...

Kivy Python very basic Binding of Label Text

python,binding,label,kivy
I know this might be a very basic question, but after spending hours wrapping my head around it I still can't figure it out. I basically just want to bind the text of a label to a variable in the python code. lets call it value. however it should get...

Vaadin layout break line without panel

layout,label,line,vaadin,break
I know it is possible for labels to automatically break lines when in a panel. Is there a way to have labels break lines when the text would be over a layouts width? UPDATE OK i tried it with "800px" width now instead of "100%" and now the labels are...

How to randomize the text in a label

c#,random,label,text-files
How to read a random line from a text file and change the text in the label to be that random line, then after a drag and drop which i have coded(below) the label will change the text. The language is c#. I am a beginner so i apologize if...

Changing the label for the module when registering on Django admin

python,django,model,label,admin
I have a package (Django app) named book_author_publisher_category. This name is just to clarify, because I have these four models inside this app for they have some constraints. Is there a way of changing the label of the section containing these models that I registered on my admin? My book_author_publisher_category/admin.py...

dynamic labels (character vetor) for plot in R

r,plot,label
I feel pretty dumb for this question, but can't get my head around it: I craete a boxplot in R. Sometimes I have 5 underlying dataframes, sometimes more or less. Each dataframe results in a boxplot. So each boxplot should have a label in the form of Label 1, Label...

Facing difficulty to pass label value into listview

c#,asp.net,listview,label,formview
What i am looking for is to get the value of " Label10 " which is into viewmsgView and then bind the FormView1 depending on the label value, Note: viewmsgView & FormView1 are located into same view and in same page. But i am getting an error message as below...

Label Image mode to stretch

c#,image,winforms,label
I wrote this code to add my Labels: JArray a = JArray.Parse(temp); Label[] labels = new Label[100]; foreach (JObject o in a.Children<JObject>()) { foreach (JProperty p in o.Properties()) { string name = p.Name; string value = p.Value.ToString(); if (name == "name") { labels[counter] = new Label(); //Image i = Image.FromFile("item.jpg");...

graphviz cluster's label multiple lines

python,label,graphviz,multiline
I'm using python+graphviz in order to create networking topologies out of the information contained in Racktables. I've succeded pretty well so far but I'm willing now to add multiple lines labels to a cluster (not a node). For example, I have the following code with python: for router in routers:...

android application does not show in the recent application tab

android,label,android-recents
When i use the Label attribute in the manifest for an activity, it does not show in the recent application list. Code for activity in manifest file is: <activity android:name=".MainActivity" android:screenOrientation="portrait" android:theme="@style/MyTheme" android:icon="@drawable/ic_launcher" android:label="" > <intent-filter android:label="@string/app_name"> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity>...

Can I have multiple colors in a gnuplot label?

label,gnuplot
I have this graph in gnuplot: I want to include totals for each of the three colored line graphs. One possibility is to replace the key with this: Can I plot this with a single label that switches colors? If not then I'd have to use six labels. In that...

Using labels like arrays

c#,asp.net,label
I am working on winform application in asp.net using c#. I have 10 labels on my winform created in the designer mode, called Label0 to Label9. Now I want to change the Text property of all the labels at once as per the data I acquire in the middle of...

How to export raw strings for text in ticks to svg from matplotlib?

svg,matplotlib,label,tex,formatter
I use matplotlib to generate plots. In most cases it works as it is supposed to. But if I use TeX like text in ticks it behaves different from the text in other labels or annotations. I set rc.text.usetex=False and the labels are exported as raw text but the text...

PlasticSCM - why do I have to apply Label after creating it

label,plasticscm
In PlasticSCM, when I want to label a changeset, I have to create a label then apply it. What does applying the label do? what happens if I do not apply the label?

Labelling nodes in networkx

python,graph,beautifulsoup,label,networkx
I'm trying to extract one set of values from a URL. This set has a unique list of numbers. The number of elements in this list should be equal to the number of nodes. So the label that these nodes get should come from the list extracted. How can this...

C# Blink Label Class [closed]

c#,label,blink
I am trying to create a class that makes a particular textbox blink. My code is below: class Blink { int BlinkCount = 0; public void Text(Label Info, string Message) { Timer tmrBlink = new Timer(); tmrBlink.Interval = 250; tmrBlink.Tick += new System.EventHandler(tmrBlink_Tick); tmrBlink.Start(); Info.Text = Message; } private void...

Trouble setting label text property with Eval

asp.net,label
Does any of you know why this is not possible? <asp:Label ID="lblWordSes" Font-Bold="True" EnableViewState="True" ViewStateMode="Enabled" runat="server" Text="<%# string.Format(Eval("Word1").ToString()) %>"></asp:Label> i am trying to set the text value with data from the database but i can get this to work....

Checking if a label I click, is a part of a pattern of labels

c#,list,design-patterns,click,label
I am making a game about remembering a pattern of labels, that show up by them changing colors. The user then has to click the labels showed, in the correct order. After the pattern has been randomly chosen, it goes into a list called the 'pattern'. My problem here is;...

Cannot get Text from label jQuery, possible ID error?

javascript,jquery,html,label
If i use another ID to get some data, it's no problem, but when i use "lbl_BlendCalc_1.1_I" as an ID i cannot get the text. (Changed this ID is not possible). <input id="yes1" type="checkbox"> <label style="width: 100px;" id="lbl_BlendCalc_1.1_I">test</label> $('input').change(function() { if (this.checked) { alert($("#lbl_BlendCalc_1.1_I").text()) ; } }); http://jsfiddle.net/wycvy/338/ I believe...

Java Label with multiple lines [duplicate]

java,swing,label
This question already has an answer here: Multiline text in JLabel 7 answers I made a jLabel with a Text that is to big to fit in one line, so I wanted to extend the string in the Label to multiple Lines using \n, but it did not work:...

Yii2 - How to add custom error messages on input fields

validation,label,message,yii2,rules
In my database I named 'password' as 'password_hash' so automatically I'd get 'password_hash' in my error message, even tho I changed the label to 'Current password'. Example: What I want is: ...

directlabels: avoid clipping (like xpd=TRUE)

r,ggplot2,label,direct-labels
In the plot below, direct label positions were tweaked a bit vertically, but they get clipped at the left/right edges. Is there any way to avoid clipping (similar to xpd=TRUE) or adjust the clipped labels inwards in the plot frames? Here's the code for this example: library(car) library(reshape2) library(ggplot2) library(directlabels)...

Misplaced year label on mschart axis

c#,charts,label,mschart
I have a chart where the x-axis is composed of dates, with yearly intervals. The problem is, depending on the minimum date, the minimum label is or is not shown. Check below: var s = new Series(); s.ChartType = SeriesChartType.Line; var d = new DateTime(2013, 04, 01); s.Points.AddXY(d.AddYears(-1), 3); s.Points.AddXY(d,...

Add number / text inside d3 path [duplicate]

javascript,d3.js,path,label,line
This question already has an answer here: draw text in d3 arc javascript 1 answer How would I add a text or numeric label inside an arc, using d3? I have the paths drawn the way I want but am struggling to get the text inside it? I would...

Why isn't this program repainting a certain part of an applet even when repaint() is called

java,swing,applet,label,repaint
This is a simple rock, paper, scissors appelet. there are 3 variables keeping track of wins, losses, and ties. Then there is a label that is meant to display them. When I used the debugger the repaint method is being called so I don't understand why this portion of the...

Can't append text to d3.js force layout nodes

javascript,svg,d3.js,label,force-layout
OBJECTIVE: append text to each node in a d3 force layout BUG: text is appended to the object (I think, see console) but not displayed on screen Here's the jsfiddle. node.append("svg:text") .text(function (d) { return d.name; }) // note that this works for // storing the name as the id,...

How to add text over an image in a JFrame?

java,image,swing,text,label
Hello I want to create a program that takes information and displays it over an image in a custom location or points that I set for it. I've tried different things but they do not work or display a frame. Basically, I am wondering how to add text over the...

Different scatterplot markers with the same label

matplotlib,label,legend,scatter-plot,markers
I am having 'similar' issues to Matplotlib, legend with multiple different markers with one label. I was able to achieve the following thanks to this question Combine two Pyplot patches for legend. fig = pylab.figure() figlegend = pylab.figure(figsize=(3,2)) ax = fig.add_subplot(111) point1 = ax.scatter(range(3), range(1,4), 250, marker=ur'$\u2640$', label = 'S',...

How to deal with Auto Width property for labels in Reports Devexpress?

devexpress,label,xtrareport
Am designing simple report in Devexpress. I add three labels continuously in xtrareport. 1st label & last label are set in designer screen but middle label data comes from database it may be (big or small) word or sentence. If data comes from database big means 3rd label get overlap...

tkinter - mistake in the layout

python,canvas,layout,tkinter,label
In the code below, I want the label on line 34 to go to the top of my canvas, as the label on line 59 does. But it goes to the bottom of my canvas instead, even though I'm using the same code in both places. Here is my code...

Add label field after input radio button through jquery

jquery,radio-button,label
My CMS generates the next code: <table class="variations" cellspacing="0"> <tbody> <tr> <td class="label"> <label for="pa_period">period</label> </td> <td class="value"> <fieldset> <strong>Choose An Option...</strong><br /> <input type="radio" value="today" id="pa_period" name="attribute_pa_period">today<br /> <input type="radio" value="tomorrow" id="pa_period" name="attribute_pa_period">tomorrow<br /> </fieldset> </td>...

C# in Async Task change Label Text

c#,user-interface,asynchronous,label,task
The following Code does not change the Text and stops executing the Task private void button1_Click(object sender, EventArgs e) { label1.Text = "Test"; Task.Run(() => MyAsyncMethod()); } public async Task MyAsyncMethod() { label1.Text = ""; //everything from here on will not be executed } would be really handy if you...

Java label irregularity (possible bug?)

java,label,java-8,standards
If we look at the Java standard §14.7, we see that statements may have label prefixes, e.g.: LabeledStatement:      Identifier : Statement In theory, a label should be able to label any succeeding statement. So, for example, the following compiles accordingly: public class Test { public static void main(String[] args) {...

Vertical label alignment in SAPUI5 (Label too high)

css,label,sapui5
I am currently working on my first SAPUI5 mobile application. I found the options for horizontal layout positioning, but my labels are shown "too high". For display I am using Google Chrome. My page theme is sap_bluecrystal and the content structure is as follows: sap.ui.layout.form.SimpleForm (Max Container Cols: 2) -->...

How to label plot with external variables

r,plot,ggplot2,label
Say I have the following data: require(reshape2) require(ggplot2) data <- data.frame(id=seq(1,5,1), var1=c(10,3,5,7,8), label1=c(2,2,2,3,2), var2=c(12, 6, 6, 8, 6), label2=c(7,7,6,7,5)) I use melt to reshape the data to prepare it for ggplot. data_graph <- melt(data[,c(1,2,4)], id="id") I then plot it, with the values labeling each point: ggplot(data=data_graph, aes(y=value, x=id, group=variable, col=variable))...

Label convert findcontrol

c#,gridview,casting,label
I am not very experienced and perhaps I am asking a stupid question. I'm trying to delete a row inside this gridview. To do this, I call a method deleteDettagliDocument(id_row) to perform a DELETE from my DB. This method takes an integer as parameter but the control is a Label...

Getting the value of the bg property of a Label in Tkinter

python,tkinter,label
I have been learning ui programming with Tkinter and I have gotten pretty far. I can configure/change text, fg, and bg properties of a Label, but I don't know how to obtain the bg property of the Label. Is there some way I could save the bg value of a...

add label overlay Google Maps

google-maps,google-maps-api-3,label
I'm success add infowindow <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Google Map Lazy Load</title> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script type="text/javascript" src="http://localhost/label/label.js"></script> <style> #map-canvas{ width:100%; height:500px; position: "absolute"; top: 0px; left: 0px; overflow: "hidden"; } </style> </head> <body> <div...

How do I change the text size in a label widget, python tkinter [duplicate]

python,tkinter,label
This question already has an answer here: How to change a widget's font style without knowing the widget's font family/size? 5 answers In python 3.4 using Tkinter, how do I change the text size in a label widget? So far I have tried label_one = Label(root, text = 'Hello',...

a web application having three textbox under one Label “Full Name”.

sql,label,textfield
textbox "First Name","Middle Name","Last Name" under Label "Full Name" i want to specify Label and textbox......how to query? I am using SQL Server Management Studio. if I do this: create table FullName(FName,MName,LName) values (' ',' ',' ') is this right?...

Why does the content of my label not change with this jQuery?

jquery,html,label
I want to change the content of a label via jQuery. I've got this code: HTML <input type="checkbox" id="ckbxEmp" >Employee? <label id="lblSSNOrITIN">Bla</label> jQuery $(document).on("change", '[id$=ckbxEmp]', function () { var ckd = this.checked; var $lbl = $('[id$=lblSSNOrITIN]'); $lbl.prop("content", ckd ? "SSN" : "ITIN"); }); ...which can be fiddled with here Label...

Is it possible to position a text label in a layer?

ios,swift,position,label,layer
I add a sublayer to create pie charts in my swift code. To optimize the view for different devices, I would like to position the text labels which I put on the view in the storyboard in relation to this layer ("build a group"). Is it possible to position labels...