本文整理汇总了C++中StaticString::SetLowColor方法的典型用法代码示例。如果您正苦于以下问题:C++ StaticString::SetLowColor方法的具体用法?C++ StaticString::SetLowColor怎么用?C++ StaticString::SetLowColor使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类StaticString
的用法示例。
在下文中一共展示了StaticString::SetLowColor方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: BMessage
//.........这里部分代码省略.........
//=================================================================
fNameButton = new SlimButton( BRect( 7, 2, 25, 13 ) , "name", "Name",
new BMessage( Messages::SetTab | 'N' ) ) ;
topView->AddChild( fNameButton ) ;
fNameButton->ResizeToPreferred() ;
r = fNameButton->Frame() ;
r.OffsetTo( r.right + 7 , r.top ) ;
fFileButton = new SlimButton( r , "file", "File",
new BMessage( Messages::SetTab | 'F' ) ) ;
topView->AddChild( fFileButton ) ;
fFileButton->ResizeToPreferred() ;
r = fFileButton->Frame() ;
r.OffsetTo( r.right + 7 , r.top ) ;
fDateButton = new SlimButton( r , "date", "Date",
new BMessage( Messages::SetTab | 'D' ) ) ;
topView->AddChild( fDateButton ) ;
fDateButton->ResizeToPreferred() ;
r = fDateButton->Frame() ;
topView->ResizeTo( r.right + 7, r.bottom + 3 ) ;
float width , top ;
//=================================================================
// Name Main View
//=================================================================
fpFolder = new TraxFolderPopUp( BRect( 5, 7, 15, 10 ), "location", "Find in:" ) ;
fpFolder->InitFolders( ref ) ;
fNameView->AddChild( fpFolder ) ;
fpFolder->ResizeToPreferred() ;
fpFolder->SetViewColor( fNameView->ViewColor() ) ;
fpFolder->SetLowColor( fNameView->ViewColor() ) ;
fpFolder->SetChoice( gSettings.fDefaultFolder ) ;
r = fpFolder->Frame() ;
width = r.right ;
top = r.bottom + 10 ;
fpName = new BTextControl( BRect( 5, top, r.right * 2, top + 10 ) ,
"name", "Named:", "", NULL ) ;
fNameView->AddChild( fpName ) ;
fpName->ResizeToPreferred() ;
fpName->SetDivider( fpName->StringWidth( "Named: " ) ) ;
fpName->MakeFocus( true ) ;
r = fpName->Frame() ;
width = MathUtils::max( width, r.right ) ;
top = r.bottom + 10 ;
fpSubDirs = new BCheckBox( BRect( 5, top, 15, top + 10 ) ,
"subdirs", "Include Sub-Directories", NULL ) ;
fNameView->AddChild( fpSubDirs ) ;
fpSubDirs->ResizeToPreferred() ;
fpSubDirs->SetValue(1) ;
r = fpSubDirs->Frame() ;
width = MathUtils::max( width, r.right ) ;
fNameView->ResizeTo( width + 10, r.bottom + 10 ) ;
r = fNameView->Frame() ;
mainWidth = MathUtils::max( mainWidth, r.right ) ;
mainHeight = MathUtils::max( mainHeight, r.bottom ) ;
//=================================================================
// File Main View
//=================================================================
fpContaining = new BTextControl( BRect( 3, 3, 10, 10 ) ,