• Welcome to Powerbasic Museum 2020-B.
 

News:

Forum in repository mode. No new members allowed.

Main Menu

Left *and* right aligned tabs in RTF on a single row.

Started by Edwin Knoppert, January 17, 2011, 10:52:55 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Edwin Knoppert

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

Edwin Knoppert

Duh!

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