WPCubed Product Support

InputEditField + style

WPTools 6.13

Assume:

TWPTextStyle* style(Editor->ParStyles()->AddStyle("test"));style->ASet(WPAT_CharFontSize, 48 * 100);style->ASetAddCharStyle(WPSTY_BOLD);TParagraph* p(Editor->FirstPar);p->SetStyle("test");/* code here */

The following works fine (inputfield format = size + bold):

p->Insert(0, "hi", Cardinal(0));Editor->CPPosition += 2;Editor->InputEditField("name", "value");

The following does not work (inputfield format = bold):

Editor->InputEditField("name", "value");

So, is there something I'm missing?

Regards
patrik.nyborg(a)genicore.se[/code]

#1 ♥ 0
2.9k Views 2 users read 1 min
support

Hi,

I can see the attributes of a style also if the field is at the start of the line, if that was the question.

You can mail me or post here the WPT code which produces an error.

Julian

#2 ♥ 0
This category is archived. No new posts are possible.