WPCubed Product Support

How to remove "<default>" or "<Edit&

Hi,

i am using a TWPToolsCustomEditContolAction together with a dxBars combobox.

The items of the combo list always contain the entries "default", "Edit style" and "New style".

How can i remove these entries (do not create them at all)?

I Just want to display the styles and non of these control entries (i have tried cbsStyleNames and cbsStylenamesEx and can see no difference)

Ciao,
Ralf

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

Hi,

cbsStyleNames, cbsStyleNamesEx:
begin
TTBXComboBoxItem(FAttachedControl).Strings.Clear;
if (FControl <> nil) then
FControl.Memo.RTFData.RTFProps.ParStyles.GetStringList(TTBXComboBoxItem(FAttachedControl).Strings, true);
end;

the last TRUE adds those elements. Done in WPAction

Julian

#2 ♥ 0

@wpsupport:
Hi,

the last TRUE adds those elements. Done in WPAction

Hi,

you mean i have to change the source in WPAction?

I usually do not alter the source code of 3rd party components because i would have to do this on every update of the component set (and WPTools is updated/enhanced more then other sets)

Would it be possible to add a property to control this in future versions? (or maybe a global variable or whatever)

Ciao,
Ralf

#3 ♥ 0
support

You can also use your own code to use a style combo box. It is really easy and the code in WPAction shows how to do it.

Julian

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