Multiline text input/output module with
dynamically adjustable background and text colors and selection of fonts.
Panel Text Input/Output Display:
The text area where text is entered and
displayed provides a minimal set of editing functions. The Backspace key,
and keyboard shortcuts Ctrl-C (Copy), Ctrl-X (Cut), and Ctrl-V (Paste) are
supported. The right-click menu options of Undo, Cut, Copy, Paste, Delete,
and Select All are also available.
Loads or reloads the input from the Text In pin
to the display. Bool pin activates on change from
TRUE to FALSE (mouse up).
Clears the display. Boolean pin activates on change
from TRUE to FALSE (mouse up).
RGB value of background color.
RGB value of text color.
Font List of 11 widely distributed
Font Size List of selected font sizes.
Deferred Input When TRUE, text input on the Text In
pin is not displayed until the Load
input is activated.
Read Only When TRUE, prevents typing in the text area
Text I/O (Right or left side)
Text to be displayed.
Text I/O (Right
or left side) Outputs any text loaded or entered.
The number of characters currently
All of the pins are
the newer "blue background" types, so that the module can easily be integrated with
other sub-controls. The file DH_Controls_demo.se1 shows an example of this
module being used in conjunction with other SynthEdit and DH sub-controls.
DH_TextIO supports 2-way flow,
i.e., it will propagate changes either left to right or right to left.
An example of a
momentary contact button that outputs a Boolean value suitable for use
with the Load and Clear pins is included in the distribution .zip file as
The RGB values for background and text colors are easily obtained from
DH_ColorPicker, or TextToRGB modules.
The listed fonts were selected because they are fairly standard for
Windows systems. I chose a fixed list, rather than using a standard font
chooser dialog that lists all of the fonts on the system, in order to give
you, the designer, more control over the appearance of your VST/VSTi. If a
selected font is not found on the user's machine, another font in
the same family is substituted.