Text style which does not define (e.g.) font size

General TRichView support forum. Please post your questions here
Post Reply
martindholmes
Posts: 131
Joined: Mon Aug 29, 2005 12:03 pm

Text style which does not define (e.g.) font size

Post by martindholmes »

Hi there,

[I previously posted this in the private support forum by mistake; I intended it to be in the public forum.]

I'd like to be able to define a TextStyle in the TRVStyle's list of Text Styles without specifying one or more of its properties (for instance, font size). The idea of this is that the style would be applied to selected text, but the font size of the target text would not be changed; it would be left as it is.

Is this possible, or would I have to create a new style based on the properties of the TFontInfo, but with the font size of the target text?

Cheers,
Martin
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

This feature is not supported yet.
You can use ModifiedProperties property of text style to implement a command like this (this property is not used in the current version).
But each text is formatted with the specific text style. It must have all properties defined, otherwise how can it be displayed?
martindholmes
Posts: 131
Joined: Mon Aug 29, 2005 12:03 pm

Post by martindholmes »

Hi Sergey,

I take your point. I guess what I'm looking for is some kind of cascading styles system, but that's a bit ambitious!

I haven't heard of ModifiedProperties -- is there documentation anywhere for that?

Cheers,
Martin
Post Reply