dh_TextEditor:
Same as Lokasenna TextEditor except for:
Changed most of the property names for consistency with other dh_Toolkit classes.
Allows all of the color properties to be overridden, including the scrollbar thumb.
Frame color, by default, uses highlight/lowlight colors that
are automatically calculated from 'col_backdrop' color.
However, the frame can be set to use a single color (specified
by the 'col_frame' property) by setting
'frame_use_outline' property to true. Some themes can call for
single color outlines regardless of the 'frame_use_outline' setting.
Added ability to change the selected text highlight color.
The property 'col_sel_text' specifies the highlight color.
That color is ADDED to the list background color to produce
the highlight.
The GUI color 'sel_txt' is an alpha adjusted color.
If 'sel_txt' color is specified it will use
its alpha and color. Otherwise it will use the
specified color with a default alpha of 0.5.
The scrollbar track color is specified with the 'col_track' color.
Scrollbar thumb and outline are automatically calculated using it.
--------------------------------------------------------
attribute: property_name default value
--------------------------------------------------------
text: * retval {}
undo limit: undo_limit 20
scrollbar width: scrollbar_width 8
caption: caption ""
caption font: font_caption "sans22"
caption position: cap_pos "top"
caption offset x: cap_pad_x 4
caption offset y: cap_pad_y 4
caption centered: cap_centered false
text font: font_text "mono16"
text padding: pad 4
shadow element: shadow false
shadow caption: shadow_caption false
frame outline: frame_use_outline false
frame thickness: frame_thk 2
allow sel.outline: allow_sel_outline false
line height line_height 1.20
override sel alpha: use_sel_alpha false
override value: sel_alpha 0.5
-- colors --
box bg: col_bg "elm_bg"
box frame: col_frame "elm_frame"
box text: col_text "elm_txt"
selected text: col_sel_text "sel_txt"
caption text: col_cap_text "txt
scrollbar track: col_track "btn_face"
-- Following two may now be automated.
scrollbar thumb: col_thumb "btn_txt"
scrollbar outline: col_sb_outline "elm_outline"
elm sel.outline: col_active "elm_active"
backdrop: col_backdrop "wnd_bg"
* Can set text using GUI.Val
----------------------------------------------------------------------------