Author Topic: Left *and* right aligned tabs in RTF on a single row.  (Read 3055 times)

0 Members and 1 Guest are viewing this topic.

Offline Edwin Knoppert

  • Sr. Member
  • ****
  • Posts: 254
  • User-Rate: +11/-4
    • Hellobasic.com
Left *and* right aligned tabs in RTF on a single row.
« on: January 17, 2011, 10:52:55 AM »
I am trying to enable right aligned tabs for the RICHEDIT50W window class, in fact any rich edit class which may handle this.
I am the dll via: LoadLibrary( "MSFTEDIT.DLL" )

I have verified that my home-brewed app is using the correct class but shows the text left aligned.
This is under XP.

The same app shows the same result under windows 7 however, windows 7's wordpad does support the right aligned parts.

In the following zip i have the test rtf text and two images to show XP and Windows 7.
Wordpad under XP also doesn't support right aligned.

Any idea for an instruction or so?

See:

www.hellobasic.com/trials/rtf-right.zip

Offline Edwin Knoppert

  • Sr. Member
  • ****
  • Posts: 254
  • User-Rate: +11/-4
    • Hellobasic.com
Re: Left *and* right aligned tabs in RTF on a single row.
« Reply #1 on: January 17, 2011, 10:57:55 AM »
Duh!

SendDlgItemMessage( hWnd, %ID_FORM1_RICHEDIT1, %EM_SETTYPOGRAPHYOPTIONS, %TO_ADVANCEDTYPOGRAPHY, %TO_ADVANCEDTYPOGRAPHY )