a1200   NEWS   APPS   DOCS   ABOUT
a1200
----
a1200
----
Autodocs
 Other:
 texteditor.gadget
  GA_TEXTEDITOR_AreaMarked
  GA_TEXTEDITOR_ColorMap
  GA_TEXTEDITOR_Contents
  GA_TEXTEDITOR_CursorX
  GA_TEXTEDITOR_CursorY
  GA_TEXTEDITOR_DoubleClickHook
  GA_TEXTEDITOR_ExportHook
  GA_TEXTEDITOR_ExportWrap
  GA_TEXTEDITOR_FixedFont
  GA_TEXTEDITOR_Flow
  GA_TEXTEDITOR_HasChanged
  GA_TEXTEDITOR_ImportHook
  GA_TEXTEDITOR_ImportWrap
  GA_TEXTEDITOR_InVirtualGroup
  GA_TEXTEDITOR_InsertMode
  GA_TEXTEDITOR_Pen
  GA_TEXTEDITOR_Prop_DeltaFactor
  GA_TEXTEDITOR_Prop_Entries
  GA_TEXTEDITOR_Prop_First
  GA_TEXTEDITOR_Prop_Visible
  GA_TEXTEDITOR_Quiet
  GA_TEXTEDITOR_ReadOnly
  GA_TEXTEDITOR_RedoAvailable
  GA_TEXTEDITOR_Separator
  GA_TEXTEDITOR_Slider
  GA_TEXTEDITOR_StyleBold
  GA_TEXTEDITOR_StyleItalic
  GA_TEXTEDITOR_StyleUnderline
  GA_TEXTEDITOR_TypeAndSpell
  GA_TEXTEDITOR_UndoAvailable
  GA_TEXTEDITOR_WrapBorder
  GM_TEXTEDITOR_ARexxCmd
  GM_TEXTEDITOR_ClearText
  GM_TEXTEDITOR_ExportBlock
  GM_TEXTEDITOR_ExportText
  GM_TEXTEDITOR_HandleError
  GM_TEXTEDITOR_InsertText
  GM_TEXTEDITOR_MacroBegin
  GM_TEXTEDITOR_MacroEnd
  GM_TEXTEDITOR_MacroExecute
  GM_TEXTEDITOR_MarkText
  GM_TEXTEDITOR_Search
  OM_TEXTEDITOR_Replace
  texteditor.gadget
Include
GuruMeditation
Docs » Autodocs » texteditor.gadget » GA_TEXTEDITOR_ColorMap

NAME

        GA_TEXTEDITOR_ColorMap -- [IS.], LONG *

FUNCTION

        This is a map of allocated colors, which corresponds to the pen number
you set with GA_TEXTEDITOR_Pen.
By default the map looks like this:
0 = Normal (user configured text/highlight color)
1 = Shine
2 = Halfshine
3 = Background
4 = Halfshadow
5 = Shadow
6 = Text
7 = Fill
8 = Mark
9 = Screen pen 0
10 = Screen pen 1
11 = Screen pen 3
.. = ...
255 = Screen pen 246
If you supply your own colormap, then pen value 0 will still be
"Normal", i.e. the first entry in your colormap has pen value 1.
This may seem a bit illogical, suggest an alternative if you want!
You are allowed to dynamically change the colormap. However if you
change an entry which is on-screen, then it won't have any immediate
effect. The idea is that you should e.g. supply a colormap with 16
unused LONGs, allow the user to select a custom color, allocate that
color and store the screen pen value into the colormap. Now you can
use that entry as argument to GA_TEXTEDITOR_Pen.
Have in mind that your application may change screen, so the best
place to allocate/free colors are in the MUIM_Show and MUIM_Hide
methods of the editorgadget. An example of this can be found in
TextEditor-Demo.c

SEE ALSO

GA_TEXTEDITOR_Pen()

Comments

Name:
E-mail: Use this if you want a message if you get a response, will not be shown.
Comment:
Select correct short for:

Tristar & Red Sector Inc.

TRSI
TBL
RZR
PDX

Comments:

$VER: d0.se 1.14 Copyright © 2011-2024 Tobias Geijersson support at d0 dot se