Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can you draw a horizontal (dividing) line in a Rich Text box?

Status
Not open for further replies.

AndyGroom

Programmer
May 23, 2001
972
GB
Hi,

I doubt that the Rich Text Box supports it, so is there any way I can get it to display a horizontal line (like a dividing line in a webpage) which will stretch across the box?

Please DON'T suggest using dashes or underscores!!! It needs to be resizable.

Thanks,

- Andy
_______________________________
"On a clear disk you can seek forever"
 
well i think u can include certain objects in a rich text box... a search in google ought to be helpfull. i once included an image in an RTF... as usual i forgot the code...

Known is handfull, Unknown is worldfull
 
To understand

Your line should be member of the Rich textbox or you need a line as a object.

peterguhl@yahoo.de
 
Hi Poltergeist,

Well, I'm allowing users to type into the RTF box and then I'm converting it programmatically into HTML, so, I need something in my RTF box that I can convert into the HTML <HR> tag (Horizontal Rule).

The line could be an object, that's fine, provided that if the user resizes the RTF box the line resizes accordingly.

Ta

- Andy
_______________________________
&quot;On a clear disk you can seek forever&quot;
 
Hi,
I'm always not know how to do it but I can paste a line-object in the box copying it from a Word-Document. I think their can be the solution. Anybody know to create this object.

peterguhl@yahoo.de
 
Ok I've tested something, make a bit of text and paste a line into it.
Then make a command to see rtfTextbox1.textrtf and you have the sequenz of a line.

I don't know it will help you


peterguhl@yahoo.de
 
Thanks, I'll give it a go!


- Andy
_______________________________
&quot;On a clear disk you can seek forever&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top