From 91dd9f2a0638e40d43d7743e010f6bfb6e2fce4a Mon Sep 17 00:00:00 2001 From: pinkerton Date: Mon, 13 Apr 1998 22:55:56 +0000 Subject: [PATCH] Draw menu separators in tree with icon, but no text (used to have text that said "" and no icon). (rev sdagley, appr sdagley). git-svn-id: svn://10.0.0.236/trunk@202 18797224-902f-48f8-a5cc-f745e15eee43 --- .../cmd/macfe/rdfui/CHyperTreeFlexTable.cp | 22 +++++-------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/mozilla/cmd/macfe/rdfui/CHyperTreeFlexTable.cp b/mozilla/cmd/macfe/rdfui/CHyperTreeFlexTable.cp index 5a14f240275..ce488181bd6 100644 --- a/mozilla/cmd/macfe/rdfui/CHyperTreeFlexTable.cp +++ b/mozilla/cmd/macfe/rdfui/CHyperTreeFlexTable.cp @@ -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("", &mTextFontInfo, 0, textRect); - left += ::TextWidth("", 0, 11) + 5; + if ( inCell.col == FindTitleColumnID() ) { + left = DrawIcons(inCell, inLocalRect); + left += CStandardFlexTable::kDistanceFromIconToText; } ::RGBForeColor ( &black );