From 7005ee67fdc011c7de469be4bc4feccb3421b63a Mon Sep 17 00:00:00 2001 From: "pinkerton%netscape.com" Date: Fri, 28 Aug 1998 20:33:42 +0000 Subject: [PATCH] Use new CNavCenterScroller and tell it to adjust the scroll bar when the column headers appear or disappear. --- cmd/macfe/rdfui/CRDFCoordinator.cp | 9 +++++++++ cmd/macfe/rdfui/CRDFCoordinator.h | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/cmd/macfe/rdfui/CRDFCoordinator.cp b/cmd/macfe/rdfui/CRDFCoordinator.cp index 28652f57cfa..ebd0f36e287 100644 --- a/cmd/macfe/rdfui/CRDFCoordinator.cp +++ b/cmd/macfe/rdfui/CRDFCoordinator.cp @@ -39,6 +39,7 @@ #include "CRDFCoordinator.h" #include "CHyperTreeFlexTable.h" +#include "CNavCenterScroller.h" #include "CNavCenterTitle.h" #include "UGraphicGizmos.h" @@ -182,6 +183,10 @@ CRDFCoordinator :: ShowColumnHeaders ( ) mTreePane->MoveBy ( 0, columnHeaderFrame.height, false ); mTreePane->ResizeFrameBy ( 0, -columnHeaderFrame.height, false ); + CNavCenterScroller* scroller = dynamic_cast(FindPaneByID(kScrollerPaneID)); + if ( scroller ) + scroller->ColumnHeadersChangedVisibility ( true, columnHeaderFrame.height ); + } // ShowColumnHeaders @@ -200,6 +205,10 @@ CRDFCoordinator :: HideColumnHeaders ( ) mTreePane->MoveBy ( 0, -columnHeaderFrame.height, false ); mTreePane->ResizeFrameBy ( 0, columnHeaderFrame.height, false ); + CNavCenterScroller* scroller = dynamic_cast(FindPaneByID(kScrollerPaneID)); + if ( scroller ) + scroller->ColumnHeadersChangedVisibility ( false, columnHeaderFrame.height ); + } // HideColumnHeaders diff --git a/cmd/macfe/rdfui/CRDFCoordinator.h b/cmd/macfe/rdfui/CRDFCoordinator.h index 27f6b41666e..8e80a4484c4 100644 --- a/cmd/macfe/rdfui/CRDFCoordinator.h +++ b/cmd/macfe/rdfui/CRDFCoordinator.h @@ -87,7 +87,8 @@ protected: public: enum { class_ID = 'RCoo', pane_ID = 'RCoo' }; enum { - msg_ActiveSelectorChanged = 'selc' // broadcast when selector changes + msg_ActiveSelectorChanged = 'selc', // broadcast when selector changes + kScrollerPaneID = 'HyTC' // pane id of the scroller containing tree/headers/etc }; // Set the current workspace to a particular kind of workspace