|
|
|
|
Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Konstantin Litowskij
|
Feb 18, 2013 - 6:52 AM
|
Hello, I have in my program a grid page with a progress bar. This progress bar should display % of a running process. The code I’m using is: for( nRowNo = 0L; nRowNo < nRowCount; nRowNo++ )
{ CExtGridCellProgress * pCellProgress =
STATIC_DOWNCAST(
CExtGridCellProgress,
m_wndGrid.GridCellGet( nColNo, nRowNo )
); pCellProgress->SetRange( 0, 100 );
pCellProgress->TextModeSet( CExtGridCellProgress::ePercent ); -------------------- pCellProgress->BarColorsSet(RGB(233,233,233), RGB(40,40,40));
pCellProgress->TextColorsSet(COLORREF( -1L ), RGB(255,255,0));
pCellProgress->InvertBarGradientSet( true ); --------------------- } Firstly, this program was used with Windows XP (32). All was OK. Now this program has a problem while it is being used with Windows 7 (64). The text (%-information) isn’t being displayed at all. How can I fix this problem? Please help me.
|
|
Konstantin Litowskij
|
Feb 18, 2013 - 7:41 AM
|
I’ve just seen the example "Prof-UIS Controls". The percentage isn’t displayed, although that must be done according to the code of this example. That must be a bug in Prof-UIS code.
|
|
Piotr Tracz
|
Feb 20, 2013 - 7:19 AM
|
I dont have such a problem myself (VS2005, W7 64, ProfUIS 2.93). Init code: CExtGridCellProgress* pCellProgress = STATIC_DOWNCAST(CExtGridCellProgress,m_GridFilesToConvert.GridCellGet(c,row,0,0,RUNTIME_CLASS(CExtGridCellProgress)));
ASSERT_VALID( pCellProgress );
pCellProgress->SetRange( 0, 100 );
pCellProgress->SetStep( 1 );
pCellProgress->BarColorsSet(
::GetSysColor( COLOR_HIGHLIGHT ),
::GetSysColor( COLOR_HIGHLIGHT )
);
pCellProgress->TextModeSet( CExtGridCellProgress::ePercent ); Set value: CExtGridCellProgress* pCellProgress = STATIC_DOWNCAST(CExtGridCellProgress,m_GridFilesToConvert.GridCellGet(3,currentProcessedRow,0,0,RUNTIME_CLASS(CExtGridCellProgress)));
ASSERT_VALID( pCellProgress );
if (pCellProgress != NULL)
{
pCellProgress->SetPos (wParam);
}
|
|