|
-
Nov 26th, 2008, 02:12 AM
#1
Thread Starter
New Member
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
-
Nov 26th, 2008, 02:25 AM
#2
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 
-
Nov 27th, 2008, 05:11 AM
#3
Thread Starter
New Member
Re: Fully justify text in vb 6.0
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|