CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2001
    Posts
    11

    Superscript / Subscript

    I am using a RichText Box in a form. I wan't the user to have an option or menu from where he can select some portion of the text in the RichText Box and set it style to SuperScript and some portion to the SubScript Style.

    Is there any way to do this
    Thanks in advance.



  2. #2
    Join Date
    Sep 2001
    Location
    Alabama, USA
    Posts
    2

    Re: Superscript / Subscript

    Have you tried the RichText Box property 'SelCharOffset' property?


  3. #3
    Join Date
    Aug 2000
    Location
    india
    Posts
    191

    Re: Superscript / Subscript

    Hi,
    SelCharOffset property shifts the text above or below the baseline. But how to make only a few words in the richtextbox as sub /superscript with different (smaller) fontsize compared to the other text?


  4. #4
    Join Date
    Sep 2001
    Location
    Alabama, USA
    Posts
    2

    Re: Superscript / Subscript

    Try using the 'SelFontSize' property to make selected text smaller.


  5. #5
    Join Date
    Apr 2000
    Location
    South Carolina,USA
    Posts
    2,210

    Re: Superscript / Subscript

    You might want to look at this
    http://216.5.163.42/xq/ASP/txtCodeId...s/ShowCode.htm


    John G

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured