Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: Mon Apr 29 09:36:39 CEST 2024

Total time taken to generate the page: 0.01861 seconds