Align Richeditor with "center", "left" a
Posted: Mon Nov 05, 2007 6:07 am
How to align richeditor with "center", "left" and "right"?
http://www.purebasic.com
https://www.purebasic.fr/english/
Code: Select all
#EM_PARAFORMAT
Code: Select all
;Set paragraph justification.
;Can be one of the following values:
; #PFA_LEFT
; #PFA_RIGHT
; #PFA_CENTER
Procedure Editor_JustifyParagraph(Gadget, justify)
format.PARAFORMAT
format\cbSize = SizeOf(PARAFORMAT)
format\dwMask = #PFM_ALIGNMENT
format\wAlignment = justify
SendMessage_(GadgetID(Gadget), #EM_SETPARAFORMAT, 0, @format)
EndProcedure
Have you already taken a look into the example codes on purearea.net?ankachen wrote: In addition, how to print the content of RTF format in EditGadget?