|
-
May 12th, 2001, 04:09 PM
#1
Thread Starter
Hyperactive Member
Text alignment & wrapping
The first question is quite simple... is there any way how to make the text (in standard VB5 label) "justified"?
OK, I have just solved the second one (but If you still wants to know it... how to put the prepositions on the beginnig of the line -> use some cool ASCII chars, like 255, instead of spaces.)
-
May 13th, 2001, 06:41 AM
#2
Lively Member
Use the 'alignment' property of the label, you can set it to left, right or centre justified.
I hope this is what you mean and I haven't got the worng end of the stick !
cheers
john
-
May 13th, 2001, 04:23 PM
#3
Thread Starter
Hyperactive Member
Thank you, but I was thinking about justifing both to left and right together...
-
May 13th, 2001, 04:44 PM
#4
_______
<?>
Code:
'try something like this
'the autosize makes the print fit the label
'and then I just position the lable in the center of the form
'you can put it where you like with a few calculations
Private Sub Form_Load()
Label1.Caption = "Help me out please"
Label1.AutoSize = True
Label1.Left = (Form1.Width / 2) - (Label1.Width / 2)
End Sub
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
May 13th, 2001, 04:50 PM
#5
Frenzied Member
Code:
Justifying on Labels is
Impossible, but it's
possible to use a
custom control.
Or, try to set the
number of spaces
along with the
GetPixel command.
Very complicated.
MicroBasic
Dragon Shadow Trainer
There is no good or evil in the world...only programmers and fools .
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|