Align Richeditor with "center", "left" a
Align Richeditor with "center", "left" a
How to align richeditor with "center", "left" and "right"?
- electrochrisso
- Addict
- Posts: 989
- Joined: Mon May 14, 2007 2:13 am
- Location: Darling River
- Fluid Byte
- Addict
- Posts: 2336
- Joined: Fri Jul 21, 2006 4:41 am
- Location: Berlin, Germany
Code: Select all
#EM_PARAFORMAT
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
Forum code:
Props to submitter.
cheers
Props to submitter.
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
- Fluid Byte
- Addict
- Posts: 2336
- Joined: Fri Jul 21, 2006 4:41 am
- Location: Berlin, Germany
RichEdit <> Edit Control = all formatting will be lost
For the raw text you can simply use Get- / SetGadgetText()
For the raw text you can simply use Get- / SetGadgetText()
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
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?
http://purearea.net/pb/CodeArchiv/Gadge ... t_Print.pb
http://purearea.net/pb/CodeArchiv/Gadge ... ocedure.pb
http://purearea.net/pb/CodeArchiv/Gadge ... _Border.pb
- electrochrisso
- Addict
- Posts: 989
- Joined: Mon May 14, 2007 2:13 am
- Location: Darling River