Originally posted by: Young Tae Park
your code in the "http://codeguru.earthweb.com/staticctrl/label_static.shtml"; is
but i have unperturbed problem...
CLabel in this code was limited!. i don't know how to solve it.
sample code here.
CLabel m_table[10000];
Here. this code show me the resource error...
i wish i will make table class(CTable) add your CLabel. But i have prbm.
please superior! help me.
thank you.
Good Morning~. <from korea>
perpect , simple and excellent!
for(int i =0;i<10000;i++)
{
CString str;
str.Format("%d",i);
m_table[i].Create();
}
i don't know why did it.
Originally posted by: song
Thanks for the excellent job!!!
the only thing I found is in your sample porject in which you create a hand cursor and call AfxGetApp()->LoadCursor(IDC_HAND). the nice way to use these kind of standard cursor is to call AfxGetApp()->LoadStandardCursor(IDC_HAND) without creating it in your own application.
other than that, everything is great.
song
ReplyOriginally posted by: Alex Yershov
Thanks, Norm! This is how CStatic should have been done in the first place...
ReplyOriginally posted by: Alex Huang
The class is very nice and useful to me. But there is still
one little problem.
If we set CLabel::EnableFlash(TRUE), and then set text by using CLabel::SetText(const CString& strText), we will find that the Flashing Text still show the original one.
I think the code
CLabel& CLabel::SetText(const CString& strText)
{
SetWindowText(strText);
return *this;
}
should be modified to
CLabel& CLabel::SetText(const CString& strText)
{
m_strText = strText;
SetWindowText(strText);
return *this;
}
-Alex
Reply
Originally posted by: Jurij
It is cool!
How can we use this class with matrix(f.ex. 5 x 30 )of
same labels, without "Assign a member control (CLabel) to each ID using the class wizard".
Thanks for some help.
ReplyOriginally posted by: Mike Lucas
After I added GetText() (so I could do concatenation) I found it would not work. Examining the source of SetText()
I found that the member variable m_strText was not set. So I guess that the following line has gone missing:
m_strText=strText;
Regards and Thanks Mike
Originally posted by: Anders Sandberg
Does anyone know how to combine this styles?
eg to use SS_CENTERIMAGE and still get the word wrap ability.
/Anders
ReplyOriginally posted by: Jenski
Hi Code-Guru's!
I want to generate a dialog and in this dialog a Comment by using the �Static Text' Control.
In which way is it possible to place special signs like greek letters or to display Textparts high- or low-ranked?
Thanks for some help, greetings to everybody.
Jenski...
Originally posted by: Rick Shide
A nice enhancement would be attribute settings in the control's window text. For example, use a tilde as an introducer, followed by comma separated parameters. One that I've used has the format:
Text String Here~font-name,font-size,font-attributes,r,g,b
where font-attributes = [b,u,i] for bold,underline,italic
r,g,b = RGB values 0-255
Example:
Test~Arial,14,bu,255,0,0
will display "Test" as red, bold, underline in Arial
Parse the windows text string in the Create() override and set the attributes there.
It's a time saver having a way to set attributes without having to program the calls to do so.
ReplyOriginally posted by: Nutella
I knew nothing about how to get URLs in my
about box, and within 5 minutes I had it with this!
Thanx
Larry
Reply