U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Widgets - General questions or Mixed problems » How to modify Page setup (left margin) in RichText Control
How to modify Page setup (left margin) in RichText Control [message #14675] Fri, 07 March 2008 00:38 Go to next message
alex100 is currently offline  alex100
Messages: 118
Registered: November 2007
Experienced Member
Hi,
How do I programatically reach the ruller of the richtext control and change the left margin?
I am using the RichEditWithToolBar version in a form.

Thank you

Alex
Re: How to modify Page setup (left margin) in RichText Control [message #14678 is a reply to message #14675] Fri, 07 March 2008 10:47 Go to previous message
alex100 is currently offline  alex100
Messages: 118
Registered: November 2007
Experienced Member
Ok, after a night of source code investigation i reach one solution:

RichText::FormatInfo f = txText.GetFormatInfo();

f.lm=1000;
f.rm=1000;

txText.ApplyFormatInfo(f);

Alex
Previous Topic: Can't set value in switch with EnableValue
Next Topic: Multithreading ans updating widgets
Goto Forum:
  


Current Time: Tue Apr 28 12:51:23 GMT+2 2026

Total time taken to generate the page: 0.00453 seconds