Hi,
I am writing a macro for Microstation and i am trying to have multiple lines in a "textbox" or "text element", i have tried researching on how to go about doing this but i have had no luck finding anything. I have tried "\010" and Chr(13) but neither of them worked. Can some one help me please
Thank You
Kevin D
Unknown said: I am trying to have multiple lines in a "textbox" or "text element"
A textbox is a user interface (UI) device on a VBA UserForm.
A text element is a MicroStation DGN graphic element.
Your question could mean either of the above. Please clarify.
A text element displays a single line of text. It may not include a line-feed character (or, if it does include one, nothing happens). This is a VBA TextElement.
A text node element is termed complex. A text node displays one or more lines of text. Each line of text is a text element. When you edit text, using MicroStation's tools, a line-feed (carriage return) converts a text element to a text node element; the original text content is split at the line-feed, and the two parts are used to create two new text elements in a text node.
A text node is represented in VBA by the TextNodeElement.
Regards, Jon Summers LA Solutions
I currently have a text element i believe, how would i go about adding a text node element then? also, how would i program it in my macro to insert that new paragraph line?
Unknown said:How would I program it in my macro to insert that new paragraph line?
I'd start by searching for text node in VBA help
There's some example code shown for CreateTextNodeElement2.
Answer Verified By: kevindragonduong
Unknown said:I currently have a text element I believe
Use MicroStation's element information tool to see the details of an element. It's the i button, or press control-i.