Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
I am attempting to create a form using ActiveX controls (MS Word 2000). I
would like a TextBox that has a fixed width but auto-sizes the height to the users text entry. The user will be entering multiple lines with hard line breaks (with possibly some formatting such as bulleted lists) into the text field. I have set the following properties: AutoSize=True, EnterKeyBehavior=True, IntegralHeight=True, MaxLength=0, MultiLine=True, WordWrap=True, Height= 49.95, and Width=436.75. The TextBox starts out fine when I save my form, but when a user begins to enter text, the TextBox re-sizes to about one character width (losing my desired fixed width of 436.7) and then increases the height of the TextBox to accommodate the remaining text entry. The Help on the AutoSize property states For a multiline text box that contains no text, setting AutoSize to True automatically displays the text as a column. The width of the text column is set to accommodate the widest letter of that font size. The height of the text column is set to display the entire text of the TextBox. For a multiline text box that contains text, setting AutoSize to True automatically enlarges the TextBox vertically to display the entire text. The width of the TextBox does not change. I have tried with default text that equals my desired TextBox width, and if the user only adds to the default text, then the width is maintained, but if the user deletes or overwrites the default text, the width of the TextBox is reduced, despite what the Help states. How can I create the TextBox with a fixed width but auto-sized height? Thank You! |
#2
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
You have posted in an end user newsgroup where you are less likely to get a
reply than if you posted in microsoft.public.word.vba.userforms. -- Suzanne S. Barnhill Microsoft MVP (Word) Words into Type Fairhope, Alabama USA "hr38581" wrote in message ... I am attempting to create a form using ActiveX controls (MS Word 2000). I would like a TextBox that has a fixed width but auto-sizes the height to the user's text entry. The user will be entering multiple lines with hard line breaks (with possibly some formatting such as bulleted lists) into the text field. I have set the following properties: AutoSize=True, EnterKeyBehavior=True, IntegralHeight=True, MaxLength=0, MultiLine=True, WordWrap=True, Height= 49.95, and Width=436.75. The TextBox starts out fine when I save my form, but when a user begins to enter text, the TextBox re-sizes to about one character width (losing my desired fixed width of 436.7) and then increases the height of the TextBox to accommodate the remaining text entry. The Help on the AutoSize property states "For a multiline text box that contains no text, setting AutoSize to True automatically displays the text as a column. The width of the text column is set to accommodate the widest letter of that font size. The height of the text column is set to display the entire text of the TextBox. For a multiline text box that contains text, setting AutoSize to True automatically enlarges the TextBox vertically to display the entire text. The width of the TextBox does not change." I have tried with default text that equals my desired TextBox width, and if the user only adds to the default text, then the width is maintained, but if the user deletes or overwrites the default text, the width of the TextBox is reduced, despite what the Help states. How can I create the TextBox with a fixed width but auto-sized height? Thank You! |
#3
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
Thank you. I have re-posted my question under the Office Discussion Group
for Word Programming. (I hope that was what you intended.) -- Thanks "Suzanne S. Barnhill" wrote: You have posted in an end user newsgroup where you are less likely to get a reply than if you posted in microsoft.public.word.vba.userforms. -- Suzanne S. Barnhill Microsoft MVP (Word) Words into Type Fairhope, Alabama USA "hr38581" wrote in message ... I am attempting to create a form using ActiveX controls (MS Word 2000). I would like a TextBox that has a fixed width but auto-sizes the height to the user's text entry. The user will be entering multiple lines with hard line breaks (with possibly some formatting such as bulleted lists) into the text field. I have set the following properties: AutoSize=True, EnterKeyBehavior=True, IntegralHeight=True, MaxLength=0, MultiLine=True, WordWrap=True, Height= 49.95, and Width=436.75. The TextBox starts out fine when I save my form, but when a user begins to enter text, the TextBox re-sizes to about one character width (losing my desired fixed width of 436.7) and then increases the height of the TextBox to accommodate the remaining text entry. The Help on the AutoSize property states "For a multiline text box that contains no text, setting AutoSize to True automatically displays the text as a column. The width of the text column is set to accommodate the widest letter of that font size. The height of the text column is set to display the entire text of the TextBox. For a multiline text box that contains text, setting AutoSize to True automatically enlarges the TextBox vertically to display the entire text. The width of the TextBox does not change." I have tried with default text that equals my desired TextBox width, and if the user only adds to the default text, then the width is maintained, but if the user deletes or overwrites the default text, the width of the TextBox is reduced, despite what the Help states. How can I create the TextBox with a fixed width but auto-sized height? Thank You! |
#4
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
That's the vba.general group. You can access vba.userforms through
http://www.microsoft.com/communities...s/default.aspx -- Suzanne S. Barnhill Microsoft MVP (Word) Words into Type Fairhope, Alabama USA "hr38581" wrote in message ... Thank you. I have re-posted my question under the Office Discussion Group for Word Programming. (I hope that was what you intended.) -- Thanks "Suzanne S. Barnhill" wrote: You have posted in an end user newsgroup where you are less likely to get a reply than if you posted in microsoft.public.word.vba.userforms. -- Suzanne S. Barnhill Microsoft MVP (Word) Words into Type Fairhope, Alabama USA "hr38581" wrote in message ... I am attempting to create a form using ActiveX controls (MS Word 2000). I would like a TextBox that has a fixed width but auto-sizes the height to the user's text entry. The user will be entering multiple lines with hard line breaks (with possibly some formatting such as bulleted lists) into the text field. I have set the following properties: AutoSize=True, EnterKeyBehavior=True, IntegralHeight=True, MaxLength=0, MultiLine=True, WordWrap=True, Height= 49.95, and Width=436.75. The TextBox starts out fine when I save my form, but when a user begins to enter text, the TextBox re-sizes to about one character width (losing my desired fixed width of 436.7) and then increases the height of the TextBox to accommodate the remaining text entry. The Help on the AutoSize property states "For a multiline text box that contains no text, setting AutoSize to True automatically displays the text as a column. The width of the text column is set to accommodate the widest letter of that font size. The height of the text column is set to display the entire text of the TextBox. For a multiline text box that contains text, setting AutoSize to True automatically enlarges the TextBox vertically to display the entire text. The width of the TextBox does not change." I have tried with default text that equals my desired TextBox width, and if the user only adds to the default text, then the width is maintained, but if the user deletes or overwrites the default text, the width of the TextBox is reduced, despite what the Help states. How can I create the TextBox with a fixed width but auto-sized height? Thank You! |
#5
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
Thank you for your clarification and the link! I will post there.
"Suzanne S. Barnhill" wrote: That's the vba.general group. You can access vba.userforms through http://www.microsoft.com/communities...s/default.aspx -- Suzanne S. Barnhill Microsoft MVP (Word) Words into Type Fairhope, Alabama USA "hr38581" wrote in message ... Thank you. I have re-posted my question under the Office Discussion Group for Word Programming. (I hope that was what you intended.) -- Thanks "Suzanne S. Barnhill" wrote: You have posted in an end user newsgroup where you are less likely to get a reply than if you posted in microsoft.public.word.vba.userforms. -- Suzanne S. Barnhill Microsoft MVP (Word) Words into Type Fairhope, Alabama USA "hr38581" wrote in message ... I am attempting to create a form using ActiveX controls (MS Word 2000). I would like a TextBox that has a fixed width but auto-sizes the height to the user's text entry. The user will be entering multiple lines with hard line breaks (with possibly some formatting such as bulleted lists) into the text field. I have set the following properties: AutoSize=True, EnterKeyBehavior=True, IntegralHeight=True, MaxLength=0, MultiLine=True, WordWrap=True, Height= 49.95, and Width=436.75. The TextBox starts out fine when I save my form, but when a user begins to enter text, the TextBox re-sizes to about one character width (losing my desired fixed width of 436.7) and then increases the height of the TextBox to accommodate the remaining text entry. The Help on the AutoSize property states "For a multiline text box that contains no text, setting AutoSize to True automatically displays the text as a column. The width of the text column is set to accommodate the widest letter of that font size. The height of the text column is set to display the entire text of the TextBox. For a multiline text box that contains text, setting AutoSize to True automatically enlarges the TextBox vertically to display the entire text. The width of the TextBox does not change." I have tried with default text that equals my desired TextBox width, and if the user only adds to the default text, then the width is maintained, but if the user deletes or overwrites the default text, the width of the TextBox is reduced, despite what the Help states. How can I create the TextBox with a fixed width but auto-sized height? Thank You! |
Reply |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Fixed Width Font | Microsoft Word Help | |||
table height & width | Tables | |||
Cell height/width button | Tables | |||
Word textbox that allows a fixed number of characters | Microsoft Word Help | |||
How Do I Know The Exact Width and Height of A Table? | Page Layout |