WPCubed Product Support

How to disable wpToolBar when connected to WPRichText

Using D6, WPTools5.x.

I have a WPRichText which is connected to a WPToolBar.

In design time I can mark the WPToolBar.Enabled as false and I see that the tool bar is disabled. However when I run the program it is not disabled, but instead enabled.

What gives?

It looks like the fact it is connected to a WPRichText that you can't disable it.

Thanks,

Greg

#1 ♥ 0
5.9k Views 3 users read 2 min

@gsaunders:
Using D6, WPTools5.x.

I have a WPRichText which is connected to a WPToolBar.

In design time I can mark the WPToolBar.Enabled as false and I see that the tool bar is disabled. However when I run the program it is not disabled, but instead enabled.

What gives?

It looks like the fact it is connected to a WPRichText that you can't disable it.

Thanks,

Greg

What I had to do was disconnect the WPToolBar from the WPRichText and then change WPToolBar.Enabled to false. Then when needed I reconnect and re-enable.

It just seems to me like simply setting WPToolBar.Enabled to false should be all that is needed. Just my thought.

#2 ♥ 0

One of the properties of the WPRichText is "WPToolbar". I want to change the value of this property.

On my Form, with the WPRichText, there is a WPToolBar that i have named "wptBar", and in the property aim "WPToolbar"of the WPRichText , it is wrote "wptBar".

I want to change in the program the value "wptbar" of the property.
Is it possible ? Is the property a String (Which type)?

I have already search in the HELP Topic of Borland C++, but there is too much Informations, and I don't succed in finding any help.

Would you find an idea ?

#3 ♥ 0
support

Hi,

It is simply the reference to the instance of the toolbar.

You can change it by assigning it. It is not a string.

Please note that is ok when several TWPRichText use the same TWPToolbar.

Julian

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