help in richtextbox.

  • Thread starter Thread starter Smith
  • Start date Start date
S

Smith

I'm using RichTextBoxt control as text editor. In that we are in need of
following things:

(1) Left Margin with light gray color.

(2) If mouse left button clicked at any line, then in it's margin area
display one triangular bitmap.

(3) If another time mouse left button clicked at different line, then
triangular mark has to display at new location in margin not at old
location.

Please suggest.

Thanks!
 
Smith,

I would recommend creating a composite control. You would have your
rich text box on the right, and then have grey space on the left. At that
point, you would handle the click event in your control's code, and paint
the left hand side of the control appropriately (painting the triangle).

Hope this helps.
 
Back
Top