|Navigation: Templates > Guide to all Templates > Control Templates >====== RTFToolBar Control Template ======
This control template requires the population of the RTFTextControl Control Template.
The RTFToolBar Control Template populates a group of support controls to use with the RTFTextControl control template.
There are no template prompts for this control. You can disable or hide controls that you do not want to provide to the user. You can also modify the icons and text used on each support control.
Each control is described as follows:
Full justification is currently only supported in Rich Edit versions greater than 3.0. The presence of RichEdxx.DLL is required in the Windows System directory.
Hiding or Removing Controls
If there are controls that you do not need in your application (Example: Save or Print), you can simply delete them. When you are prompted with “Do you want to delete this control template?” Press No, and only the individual control will be removed.
To conditionally hide controls at runtime, you can use the following embedded source in the Window Manager's Init Method (just after the first RTFControl Initialization embed point):
IF NeedToHideSave !locally defined flag
HIDE(?RTFToolSave) !hide Save button
!the AddItem method disables Save button logic
Use this technique for any button that you need to conditionally display.