TextCtrl::
enum {
INK_NORMAL,
INK_DISABLED,
INK_SELECTED,
PAPER_NORMAL,
PAPER_READONLY,
PAPER_SELECTED,
COLOR_COUNT,
};
void SetColor(int i, Color c) { color[i] = c; Refresh(); }
All the painting should be generally done in Paint. For specific cases you can use tricks like overlapping the widget with e.g. Picture widget which accepts Drawing. Somethine like:
LineEdit edit;
Picture picture;
....
// show the picture
picture = my_drawing;
edit.Add(picture.SizePos());
....
// back to LineEdit
picture.Remove();