Search found 10 matches

by blsstdok
Tue Nov 29, 2011 3:04 pm
Forum: Support
Topic: height of paragraph at position
Replies: 3
Views: 13372

It's complicated, but basically I want to make subtle adjustments to the indentation, reformat, and test to be sure I haven't changed the vertical size of the paragraph due to wrapping. I also need to know the horizontal size of each line in the paragraph.
by blsstdok
Mon Nov 28, 2011 11:04 pm
Forum: Support
Topic: height of paragraph at position
Replies: 3
Views: 13372

height of paragraph at position

What is the best way to get the pixel height of a paragraph at any given point in the document? I assume this would be two steps -- 1. Get the paragraph and 2. find it's height.

Thanks.
by blsstdok
Wed Nov 16, 2011 4:07 pm
Forum: Support
Topic: Customizing word wrap
Replies: 1
Views: 10049

Customizing word wrap

We have need to override how wordwrapping is calculated in the document. One option might be to implement a "minimum raggedness" wrapping algorithm, like described here: http://en.wikipedia.org/wiki/Word_wrap#Minimum_raggedness -- this could solve our needs. However, ideally, I would like to be able ...
by blsstdok
Mon Nov 07, 2011 8:12 pm
Forum: Support
Topic: Prevent wordwrap from breaking long words
Replies: 1
Views: 10005

Prevent wordwrap from breaking long words

Default behavior of RichView is to break words if they are wider than the control for wordwrapping. Is there a way to prevent this? I need an option to keep long words together even if they are too wide for the width of the control. In other words, I don't want wordwrap to break inside of words.
by blsstdok
Wed Oct 12, 2011 3:47 pm
Forum: Support
Topic: Fastest way to clone data of one RVE to another?
Replies: 2
Views: 11845

Re: Fastest way to clone data of one RVE to another?

blsstdok wrote:What is the fastest way to do this, ideally avoiding any formatting?
I should add that the two controls will have the same sizes, so formatting shouldn't be necessary when the data is cloned.
by blsstdok
Tue Oct 11, 2011 8:28 pm
Forum: Support
Topic: Fastest way to clone data of one RVE to another?
Replies: 2
Views: 11845

Fastest way to clone data of one RVE to another?

I have two richviewedits. I want to clone the content of one to the other, including styles, etc, but do not want them to *share* anything (no common pointers/classes/etc).

What is the fastest way to do this, ideally avoiding any formatting?
by blsstdok
Tue Sep 06, 2011 6:05 pm
Forum: Support
Topic: Delphi XE2
Replies: 17
Views: 73412

I just discovered: Mida – now in beta - to convert a Delphi VCL application to FireMonkey: http://midafiremonkey.wordpress.com/ Keep in mind that there is no way to use this tool to "convert" a third party VCL control to FireMonkey. Its usefulness in anything beyond the most trivial of UIs is q ...
by blsstdok
Tue Sep 06, 2011 2:03 pm
Forum: Support
Topic: Delphi XE2
Replies: 17
Views: 73412

lkessler wrote: Out of curiousity, what VCL objects does TRichView use that you'll have to change?
RV uses GDI for, well, almost everything. GDI is Windows. The cool thing is that they already have an abstraction layer (a graphic interface), so something else could be used without writing too much.
by blsstdok
Mon Jul 18, 2011 6:29 pm
Forum: Support
Topic: Force paint message from every item
Replies: 1
Views: 9507

Force paint message from every item

I need every item in the document to receive a paint message, not just the items in an invalidation rect. This is because I am rendering special effects like shadows, which can paint outside of their TextExtent. I am handling the painting myself and can deal with checing the clipping rect on my own ...
by blsstdok
Wed Jul 06, 2011 7:25 pm
Forum: Support
Topic: invalidation on edit
Replies: 1
Views: 9051

invalidation on edit

When text is typed into the editor, it seems that the entire paragraph is invalidated with each keypress. I am doing a lot of CPU-expensive custom drawing and things get real slow when a paragraph becomes more than a few words; especially when it is more than two or three lines. So, two questions: 1 ...