Draw menu separators in tree with icon, but no text (used to have text that said "<Separator>" and no icon). (rev sdagley, appr sdagley).

This commit is contained in:
pinkerton 1998-04-13 22:55:56 +00:00
Родитель c4248e7af1
Коммит 875fbb2ad4
1 изменённых файлов: 5 добавлений и 17 удалений

Просмотреть файл

@ -322,30 +322,18 @@ void CHyperTreeFlexTable::DrawCellContents( const STableCell& inCell, const Rect
::RGBBackColor(&backColor);
::EraseRect(&backRect);
}
// Get cell data
HT_Resource node = HT_GetNthItem(GetHTView(), URDFUtilities::PPRowToHTRow(inCell.row) );
if (node)
{
if ( HT_IsSeparator(node) ) {
StColorPenState savedPenState;
RGBColor black = { 0, 0, 0 };
const static RGBColor black = { 0, 0, 0 };
Uint16 left = inLocalRect.left;
if ( inCell.col == 1 ) {
StTextState savedTextState;
Rect iconRect, textRect = inLocalRect;
// get level indent for text
GetIconRect ( inCell, inLocalRect, iconRect );
textRect.left = iconRect.left;
left = iconRect.left;
::MoveTo ( left, iconRect.top );
//¥¥¥ REPLACE WITH GetIndString
DrawTextString("<Separator>", &mTextFontInfo, 0, textRect);
left += ::TextWidth("<Separator>", 0, 11) + 5;
if ( inCell.col == FindTitleColumnID() ) {
left = DrawIcons(inCell, inLocalRect);
left += CStandardFlexTable::kDistanceFromIconToText;
}
::RGBForeColor ( &black );