void TTextControl::AttachedToWindow(void) { const char *string; BTextView *text; SetHighColor(0, 0, 0); BTextControl::AttachedToWindow(); SetFontName("Erich"); SetDivider(StringWidth(fLabel) + 6); text = (BTextView *)ChildAt(0); text->SetFontName("Erich"); if (fRecord) { if (fIncoming) SetEnabled(FALSE); switch (fCommand) { case SUBJECT_FIELD: string = fRecord->FindString("Subject"); if (fRecord->Error() == B_NO_ERROR) SetText(string); break; case TO_FIELD: string = fRecord->FindString("Name"); if (fRecord->Error() == B_NO_ERROR) SetText(string); break; } } }