|
-
Oct 13th, 2000, 05:10 PM
#1
Thread Starter
New Member
is it possible to have my progrom resize a text box relitive to the size of it's font/font size?
-
Oct 13th, 2000, 05:17 PM
#2
Fanatic Member
How about:
Code:
Text1.Width = Text1.Font.Size * 100 'just use all kinds
'of math operations. Same with Height
Text1.Height = TExt1.Font.Size * 50 - 2
Gl,
D!m
-
Oct 13th, 2000, 05:59 PM
#3
transcendental analytic
If you want something like autoresize you could place this in text1_change event
Code:
Text1.Font.Size = 20
temp=Font.Size
font.size=text1.font.size
Text1.Height = TextHeight(Text1.text)
Text1.Width = TextWidth(Text1.text)
font.size=temp
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Oct 14th, 2000, 03:24 PM
#4
Lively Member
Set the autosize property to true.
Code:
txtField.Autosize = True
Flint
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
|