Align Richeditor with "center", "left" a

Everything else that doesn't fall into one of the other PB categories.
ankachen
User
User
Posts: 12
Joined: Tue Mar 27, 2007 2:52 am

Align Richeditor with "center", "left" a

Post by ankachen »

How to align richeditor with "center", "left" and "right"?
User avatar
electrochrisso
Addict
Addict
Posts: 989
Joined: Mon May 14, 2007 2:13 am
Location: Darling River

Post 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.
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Post by Fluid Byte »

Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Post 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
ankachen
User
User
Posts: 12
Joined: Tue Mar 27, 2007 2:52 am

Post by ankachen »

Thanks for providing solutions.

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

appreciated
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Post by Fluid Byte »

RichEdit <> Edit Control = all formatting will be lost

For the raw text you can simply use Get- / SetGadgetText()
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
User avatar
Shardik
Addict
Addict
Posts: 2058
Joined: Thu Apr 21, 2005 2:38 pm
Location: Germany

Post 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
User avatar
electrochrisso
Addict
Addict
Posts: 989
Joined: Mon May 14, 2007 2:13 am
Location: Darling River

Post 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
Post Reply