Rich Edit Full Justification
Posted: Tue Jan 03, 2006 7:01 pm
Code updated for 5.20+
Greetings,
I managed to find out how to full justify text in a RichEdit gadget. (Actually, I found it pretty difficult to find the info around). It's a single line:
where #re indicates your EditorGadget and that '1', the parameter, is short for the const #TO_ADVANCEDTYPOGRAPHY (not defined in PB).
I normally insert a rich text formatted string with SetGadgetText(); to justify, the RTF keyword is '\qj '. Without the previous line, that keyword is unrecognised.
Well... I think I started looking for it in 2004
Greetings,
I managed to find out how to full justify text in a RichEdit gadget. (Actually, I found it pretty difficult to find the info around). It's a single line:
Code: Select all
SendMessage_(GadgetID(#re),#EM_SETTYPOGRAPHYOPTIONS,1,1)
I normally insert a rich text formatted string with SetGadgetText(); to justify, the RTF keyword is '\qj '. Without the previous line, that keyword is unrecognised.
Well... I think I started looking for it in 2004
