Insert Radiobutton on line with text

General TRichView support forum. Please post your questions here
Post Reply
jwkerns
Posts: 15
Joined: Sun Mar 05, 2006 11:17 pm

Insert Radiobutton on line with text

Post by jwkerns »

I'm trying to insert radiobuttons on the same line as a question. Can this be done? What is the code to insert a radio button the text "Question 1 "
on the same line? I tried AddControl. This puts it on a different line. Insert control doesn't always puts the control on the first line of the richview.

Note. I can't use the caption property of the radio button for my question. The question has unicode and characters that must be displayed in the richview.
Sergey Tkachenko
Site Admin
Posts: 17310
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

InsertControl inserts item in the position of caret. It must not be used for document generation, only for editing operations.
AddControl method is deprecated. Use AddControlEx. In any method having ParaNo parameter, you can pass -1 to add item to the same paragraph as the previously added item.
Post Reply