本文整理汇总了C++中Layout::LineSet方法的典型用法代码示例。如果您正苦于以下问题:C++ Layout::LineSet方法的具体用法?C++ Layout::LineSet怎么用?C++ Layout::LineSet使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Layout
的用法示例。
在下文中一共展示了Layout::LineSet方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: NCDialog
DirCalcThreadWin( NCDialogParent* parent, const char* name, OperDirCalcData* pD, const unicode_t* dirName )
: NCDialog( ::createDialogAsChild, 0, parent, utf8_to_unicode( name ).data(), bListOk ),
pData( pD ),
lo( 12, 10 ),
cPathWin( this ),
curFileCount( -1 ),
curFolderCount( -1 ),
curSumSize( -1 ),
curBadDirs( -1 ),
dirString( 0, this, ScanedDirString( dirName ).data() ),
fileCountName( uiVariable, this, utf8_to_unicode( _LT( "Files:" ) ).data() ),
fileCountNum( uiValue, this, utf8_to_unicode( "AAAAAAAAAA" ).data() ),
folderCountName( uiVariable, this, utf8_to_unicode( _LT( "Folders:" ) ).data() ),
folderCountNum( uiValue, this, utf8_to_unicode( "AAAAAAAAAA" ).data() ),
sumSizeName( uiVariable, this, utf8_to_unicode( _LT( "Files size:" ) ).data() ),
sumSizeNum( uiValue, this, utf8_to_unicode( "AAAAAAAAAAAAAAAAAAAA" ).data() ),
badDirsName( uiVariable, this, utf8_to_unicode( _LT( "Not readable folders:" ) ).data() ),
badDirsNum( uiValue, this, utf8_to_unicode( "AAAAAAAAAA" ).data() )
{
lo.AddWin( &dirString, 0, 0, 0, 3 );
lo.AddWin( &cPathWin, 9, 0, 9, 3 );
lo.LineSet( 1, 10 );
lo.AddWin( &fileCountName, 3, 1 );
lo.AddWin( &folderCountName, 4, 1 );
lo.AddWin( &sumSizeName, 5, 1 );
lo.AddWin( &fileCountNum, 3, 2 );
lo.AddWin( &folderCountNum, 4, 2 );
lo.AddWin( &sumSizeNum, 5, 2 );
lo.LineSet( 6, 7 );
lo.AddWin( &badDirsName, 7, 1 );
lo.AddWin( &badDirsNum, 7, 2 );
lo.LineSet( 8, 10 );
dirString.Show();
dirString.Enable();
cPathWin.Show();
cPathWin.Enable();
fileCountName.Show();
fileCountName.Enable();
fileCountNum.Show();
fileCountNum.Enable();
folderCountName.Show();
folderCountName.Enable();
folderCountNum.Show();
folderCountNum.Enable();
sumSizeName.Show();
sumSizeName.Enable();
sumSizeNum.Show();
sumSizeNum.Enable();
badDirsName.Show();
badDirsName.Enable();
badDirsNum.Show();
badDirsNum.Enable();
lo.SetColGrowth( 3 );
lo.SetColGrowth( 0 );
this->AddLayout( &lo );
this->SetEnterCmd( CMD_OK );
SetPosition();
RefreshCounters();
}