Can anyone help?

PhilC

Member
Joined
Feb 16, 2022
Messages
56
Reaction score
27
Country
llUnited Kingdom
When creating a label in VASL, the text does not wrap. Its the same when I type directly or copy and paste text. Any thoughts on how to fix this please?

I'm using the latest version but it is the same with previous versions too.

Many thanks
 

johnl

Senior Member
Joined
Oct 23, 2010
Messages
712
Reaction score
492
Location
SoCal/Oregon
Country
llUnited States
Labels don't wrap by default. You can use HTML to solve this.

start your label with <html> and put <br> where you want it to wrap.

For example
<html>This is a very long label. <br>This is a very long label. <br>This is a very long label. <br>This is a very long label.

will display as

This is a very long label.
This is a very long label.
This is a very long label.
This is a very long label.
 

PhilC

Member
Joined
Feb 16, 2022
Messages
56
Reaction score
27
Country
llUnited Kingdom
What a perfect and well worded answer!! I just wish I had asked the question 18 months ago.

Many thanks Johnl...very much appreciated.
 

PezBailarin

Recruit
Joined
May 25, 2020
Messages
15
Reaction score
7
Country
llSpain
Another way, try this:

<html><div style="width:300;">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris</div></html>

The <div style="width:300;"> does the trick when you don't need/want to break the text with <br>.
 

PhilC

Member
Joined
Feb 16, 2022
Messages
56
Reaction score
27
Country
llUnited Kingdom
Many thanks Pez. Even simpler.
Thank you both.
 

PhilC

Member
Joined
Feb 16, 2022
Messages
56
Reaction score
27
Country
llUnited Kingdom
as we seem to be on a bit of a roll :) Is there a simple way to insert JPEGs or PDFs? again many thanks
 

Vinnie

See Dummies in the index
Joined
Feb 9, 2005
Messages
17,450
Reaction score
3,398
Location
Aberdeen , Scotland
Country
llUnited Kingdom
Given its html maybe <img src=H/Images/BG/German/GEV015.png height=80> would work. Of course you'd need to use the correct path.
 

PhilC

Member
Joined
Feb 16, 2022
Messages
56
Reaction score
27
Country
llUnited Kingdom
Given its html maybe <img src=H/Images/BG/German/GEV015.png height=80> would work. Of course you'd need to use the correct path.
thank you Vinnie - forgive my ignorance with this stuff but I am assuming that the part I have emboldened is the path to change?... (its an age thing :))
 

zgrose

Elder Member
Joined
Jun 13, 2004
Messages
4,248
Reaction score
962
Location
Kingwood, TX
First name
Zoltan
Country
llUnited States
If you plan to share your setup with anyone, they would also need the image at the same path, no?
 

von Marwitz

Forum Guru
Joined
Nov 25, 2010
Messages
14,392
Reaction score
10,296
Location
Kraut Corner
Country
llUkraine
Here you have some "sample" HTML code that you can use for Labels:

These are intended for the "left margin" i.e. white border next to the boards.

The first one is for inserting pictures. Exchange the internet link for the picture you want.
The second one is for VC, SSR, etc. You can just modify the content as you wish.

Then copy/paste for your labels...

<HTML>
<TABLE WIDTH=400 BORDER=0 CELLPADDING=2 CELLSPACING=0>
<COL WIDTH=400>
<TR VALIGN=TOP>
<TD WIDTH=400>
<P>
<IMG SRC="https://www.armyupress.army.mil/Portals/7/military-review/img/English/ND-19/Jennings-img-1.jpg" ALIGN=BOTTOM WIDTH=400 HEIGHT=300 BORDER=0>
</P>
</TD>
</TR>
</TABLE>
</HTML>


<html> <div style="width:300px;height:40px;overflow:auto;">


Victory Conditions<br/> <hr/>
The Germans win at game end by achieving greater or equal than two of the following objectives:<br />
<br/>
  1. Control more multi-hex buildings than the Americans.<br/>
  2. Amass more CVP than the Americans.<br/>
  3. Exit greater or equal than 10 Exit VP off the north edge.<br />
<br/>
Prisoners do not count double for CVP or Exit VP.<br/>
<br/>
<br/>

Special Scenario Rules<br/> <hr/>
1. EC are Wet, with no wind at start. All Woods are Pine Woods (B13.8). Kindling (B25.11) is NA.<br/>
<br/>
2. One M8 armored car may be secretly recorded as having a functioning Gyrostabilizer (D11.1).<br/>
<br/>
3. AFV crews may not voluntarily Abandon (D5.4) their vehicles.<br/>
<br/>
<br/>

House Rules<br/> <hr/>
1. The IIFT with CTC is in effect. <br/>
<br />
2. An honor system is used instead of temporarily revealing concealed units for verification purposes.<br/>
<br/>

</div> </html>
 

PhilC

Member
Joined
Feb 16, 2022
Messages
56
Reaction score
27
Country
llUnited Kingdom
Many thanks Von Marwitz :) just picking this up now. this is good stuff and much appreciated.
 
Top