Page 1 of 1

Insert Radiobutton on line with text

Posted: Mon Feb 18, 2008 8:49 pm
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.

Posted: Tue Feb 19, 2008 9:02 am
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.