Hi,
Here a example to show different variable in one label and each on a
new line.
Step 1: Paste the following code into main.xml within the <view>
element.
<view height="150" width="250" onopen="view_onOpen()">
  <img src="stock_images\background.png"/>
  <label height="87" name="label1" width="150" x="23" y="22"
wordwrap="true"
   >label1
  </label>
  <img name="img1" x="197" y="101" src="stock_images\image.png"/>
  <script src="main.js" />
</view>
Step 2: Now paste the following code in main.js to add the ability to
browse for and open different media files.
function view_onOpen() {
var value = "variable value"
label1.innertext= "Stefan vd say" + "\n" + "this is a new line" +
"\n"
+ value + "\n" + "and here a other line..."
}

"\n" this mean to start on a new line.
Kind Regards,
Stefan Van Damme (aka Stefan vd)
Gadget Developer

On 6 mei, 15:23, themaddhatter <[email protected]> wrote:
> hey,
>
> Probably a fairly nooby question but is there a way to add a new line
> into a label?For instance, i have a name and address which i want to
> put in a label in the format of
>
> "name"<namedata>
> "address"<addressdata>
>
> rather than having to display in more than one label. Can't seem to
> find anything about this so any help would be appreciated
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Desktop Developer Group" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Desktop-Developer?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to