Page 1 of 1

Align Richeditor with "center", "left" a

Posted: Mon Nov 05, 2007 6:07 am
by ankachen
How to align richeditor with "center", "left" and "right"?

Posted: Mon Nov 05, 2007 7:56 am
by electrochrisso
Have a look at LibEditorPlus from Progi1984, I think it has those things you are looking for plus a lot more to handle richeditor functions.

Posted: Mon Nov 05, 2007 12:50 pm
by Fluid Byte

Posted: Mon Nov 05, 2007 12:59 pm
by rsts
Forum code:
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 
cheers

Posted: Thu Nov 08, 2007 4:58 am
by ankachen
Thanks for providing solutions.

In addition, how to print the content of RTF format in EditGadget?

appreciated

Posted: Thu Nov 08, 2007 9:56 am
by Fluid Byte
RichEdit <> Edit Control = all formatting will be lost

For the raw text you can simply use Get- / SetGadgetText()

Posted: Fri Nov 09, 2007 12:10 pm
by Shardik
ankachen wrote: In addition, how to print the content of RTF format in EditGadget?
Have you already taken a look into the example codes on purearea.net?
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

Posted: Sat Nov 10, 2007 12:25 pm
by electrochrisso
LibEditorPlus prints exactly what you see on the screen down to the sizing and colors (what you see is what it prints).
A fantastic rich editor library in my opinion. :D