Normandy Merge ....

git-svn-id: svn://10.0.0.236/trunk@4232 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
spider
1998-06-22 21:21:28 +00:00
parent 957093e8c5
commit f7bedbedd5
146 changed files with 6186 additions and 1609 deletions

View File

@@ -24,6 +24,8 @@
#include "CSharedPatternWorld.h"
#include "CTargetedUpdateMenuRegistry.h"
#include "PascalString.h"
// This class overrides CPatternButtonPopup to provide a popup menu which
// changes the descriptor based on the menu selection
// assumes left-justified text in DrawButtonTitle()
@@ -141,7 +143,11 @@ CPatternButtonPopupText::DrawButtonTitle(void)
if (IsTrackInside())
::RGBForeColor(&UGAColorRamp::GetWhiteColor());
UGraphicGizmos::PlaceStringInRect(mTitle, mCachedTitleFrame, teFlushLeft, teCenter);
CStr255 truncTitle(mTitle);
::TruncString( mFrameSize.width - (gsPopup_ArrowButtonWidth + 5), truncTitle, smTruncEnd);
UGraphicGizmos::PlaceStringInRect(truncTitle, mCachedTitleFrame, teFlushLeft, teCenter);
DrawPopupArrow();
}