Results 1 to 3 of 3

Thread: Fully justify text in vb 6.0

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2008
    Posts
    13

    Fully justify text in vb 6.0

    I want to fully justify text in rich text box. I have found some code from net but its not working. Code is here

    Public Function SetAlignment(lHwnd As Long, ByVal eAlign As ERECParagraphAlignmentConstants)
    Dim tP2 As PARAFORMAT2
    Dim lR As Long
    tP2.dwMask = PFMALIGNMENT
    tP2.cbSize = Len(tP2)
    tP2.wAlignment = eAlign
    lR = SendMessageLong(lHwnd, EMSETTYPOGRAPHYOPTIONS, _ TOADVANCEDTYPOGRAPHY, TOADVANCEDTYPOGRAPHY)
    lR = SendMessage(lHwnd, EMSETPARAFORMAT, 0, tP2)
    End Function

    The Justified text breaks at different lines.

    Any ideas.
    Regards,
    MA Awan

  2. #2
    PowerPoster isnoend07's Avatar
    Join Date
    Feb 2007
    Posts
    3,237

    Re: Fully justify text in vb 6.0

    I tried a richtextbox that is really advanced I think it has what you need here:
    http://www.planet-source-code.com/vb...20082202387566
    Waiting for a full featured smart phone with out marrying a provider
    Go Android
    Go raiders

  3. #3

    Thread Starter
    New Member
    Join Date
    Nov 2008
    Posts
    13

    Re: Fully justify text in vb 6.0

    thnx i will check that

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