WPCubed Product Support

Errors in WPDefEditor.dfm (release 19.1) [ItemIndex]

The property editor for editing the text (TWPRichText component) does not work with the WPDefEditor.dfm that is shipped with release 19.1.

The reason is that this dfm file has a property for the TWPComboBox that does not exist. The property here is ItemIndex.

All occurences of this property need to be removed from the file to fix the property editor.

#1 ♥ 0
4.6k Views 3 users read 2 min
support

Thanks - this only affects Delphi 5 and 6 - not Delphi 7 which always inserts this property

#2 ♥ 0

I am using Delphi 5 and WPTools 5.19.1
As reported by "Leander", I am unable to open: WPRichText.RTFText property, it generates error: "WPCombobox3.ItemIndex property does not exist". Needless to say, it won't let me go any further.

Any fix or work-around for this ?

I am still learning WPT 5. I need to add a line to footer in code. How do I do that?

Thanks

Jay

@Leander:
The property editor for editing the text (TWPRichText component) does not work with the WPDefEditor.dfm that is shipped with release 19.1.

The reason is that this dfm file has a property for the TWPComboBox that does not exist. The property here is ItemIndex.

All occurences of this property need to be removed from the file to fix the property editor.

#3 ♥ 0

Open the WPDefEditor.dfm file and remove all the references to the ItemIndex property (i think it was 3 total) then rebuild the WPTools package (dpk). The RTFText property should work fine now.

As for inserting a line in the footer, i know one way to do it. It's probably not the best way and Julian will probably give you some better advice, but anyway:

WPRichText1.HeaderFooter.Get(wpIsFooter, wpraOnAllPages).InsertText(0, 'FOOTER TEXT');

Good luck,

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