Originally posted by: Xavier Ricco
First of all, nice work !!!
I want the banner to move only when the
size of the text is >>> client area ...
I have slightly modified the code in order
to make this "automove" thing and it works ...
Now, i have the following problem :
When i change the text to another one,
it is staying to its position ...
Is there a way to reset the text
to its initial position ?
Thx in advance,
Xavier
Originally posted by: Arun Kumar
Hai,
I would like to post a problem, which i faced , when the Bannerstatic is used in multiple dialog application,
I am using banner in each of the dialog and i see that , after some dialog , the banner is stopped scrolling and i need to restart my application to again make it scroll.
What could be wrong ?
Why when the dialogs are switched fastly, the scroll is stopped?
Please help me.
Arun
ReplyOriginally posted by: Arati
It works really well!
What should i do if i want to have large number of strings in my banner? can u suggest a workaround which would not bog the CPU down?
I am waiting for your reply.
Thanks in advance,
Arati.
Originally posted by: Jai Ganesh.M.G.
By all the way, This is a wonderful work.
Keep it up, Paul.
Keep smiling,
Jai.
Originally posted by: Alex
There are countless gif gernerator apps that do the scrolling banner job for you.
You need only a Static Gif Control in your dialog app.
This is realized in VC7 .net.
Alex
ReplyOriginally posted by: Per Franck
It's still 'choppy'.
Shouldn't there be a way to produce perfectly smooth scrolling text in today's machines?
ReplyOriginally posted by: Chris Hambleton
I found a fix for the divide by zero bug in the release build and the issue with Create() failing.
Add the following check at the beginning of CBannerStatic::CalculateScrollParameters():
if(m_nBannerSpeed == 0)
return;
It looks like what's happening is that the Calc function is being called by OnSize() when m_nBannerSpeed is still 0...
Originally posted by: Uellinton Mendes
How change BannerStatic's font
ReplyOriginally posted by: Uellinton Mendes
I use:
CBannerStati m_wndBanner;
if (!m_wndBanner.Create(NULL, WS_CHILD | WS_VISIBLE, rcBanner, this, IDC_BANNERNEWS))
return false;
int m_nRedValue = 0;
int m_nGreenValue = 0;
int m_nBlueValue = 0;
BOOL m_fBold = true;
BOOL m_fItalic = false;
BOOL m_fUnderlined = false;
BOOL m_fHaveHandCursor = true;
DWORD dwAddStyle = RGB(m_nRedValue, m_nGreenValue, m_nBlueValue);
dwAddStyle |= (m_fItalic ? COLORSTRING_ITALIC : 0);
dwAddStyle |= (m_fBold ? COLORSTRING_BOLD : 0);
dwAddStyle |= (m_fUnderlined ? COLORSTRING_UNDERLINE : 0);
CColorString strAddAppearance("Teste", dwAddStyle);
m_wndBanner.AddString(strAddAppearance);
But.. Generate a error. why?
ReplyOriginally posted by: Vasudevan
I tried to create A CBannerstatic control dynamically using the Create window funtcion.The program worked fine in the debu
Reply