 |
|
 |
Hi Chris,
Very nice article, indeed! Well written and practical.
As I was always saying to my students: desktop application could be just as good as its GUI. Actually, it could be much worse, but never better
Best regards,
Alex
|
|
|
|
 |
|
|
 |
|
 |
Hi,
I don't know how to use this class and to declare it in the aim to use it.
I need it for a project.
Please, help me.
|
|
|
|
 |
|
 |
I have a database with a table "Deparment" it have tow fields(ID,NAME). In this table have 7 records.
In this form when design I drop a button in toolbox into the form with Name:bt1, and index=0.
I want,when this programming runtime, it read from database(Table Deparment) with 7 records, at time in the form have 7 buttons with caption is field name "NAME" which it created arrays. I have done it but now I don't remember, Help me?
Thank you very much.
|
|
|
|
 |
|
 |
Hi Chris,
I've came across with your sample about round buttons, and you did great job.
I need an explanation,please, about the function DrawCircle which uses lError to decrement XOffset.
Could you,please, explain the following code in that function:
//Advance the error term and the constant X axis step
lError += lYoffset++;
//Check to see if error term has overflowed
if ((lError += lYoffset) >= 0)
lError -= --lXoffset * 2;
What is the principle to draw circle without using the circle equation x^2+y^2=r^2?
Thanks,
Dudi
|
|
|
|
 |
|
 |
Did you use Bresenham algorithm?
|
|
|
|
 |
|
 |
Dear everyone , I'm studying VC++ MFC , but now i'm on basic level , i'm very interested in customed control . i'd like to know more about this aspect , to understand the code that some experts wrote here , and will be able to write some .
Thanks a lot .
Hoang Bao
|
|
|
|
 |
|
 |
I tried to draw this button in my project directly inserting it in the view but it gives assertion error .
commenting the following line obviously removes this error but the button drawn is not circular one infact it draws only a grey rectangle.
ASSERT(dAngle > -3.1416 && dAngle < 3.1416);
What am i missing ???
|
|
|
|
 |
|
 |
I have this same problem as well. GetClientRect in presubclass window returns a CRect with no dimensions. Have you found a solution since March?
|
|
|
|
 |
|
 |
I have the same question when I want to add the Buttons dynamic,the error occurs when ASSERT(dAngle > -3.1416 && dAngle < 3.1416);
somebody help me!
|
|
|
|
 |
|
|
 |
|
 |
hi experts
i want to generate a command button through code in visual basic 6 please help me
thanks
|
|
|
|
 |
|
 |
How we can create a Round Shape Control ?
which should have only a corcle as its area,may be transparent from inside or not.
|
|
|
|
 |
|
 |
Chris,
The thread on round buttons is alive!
Thanks a lot for your code, it looks neat and tighty.
I have made a small adjustment because I discovered that the drawing routine leaves some (single pixel) "spots". If you zoom in to the screenshot of your article (above) you can see it too.
Not the most important thing in the world, but I just can't stand it when something "shows" in my programs. So I wrote a really simplistic routine and called it "RemoveSpots". The routine scans the DC and compares each pixel to its neighbouring pixels. When a spot is found it is substituted with an "average" color taken from its neighbours.
I think the spots could be fixed more elegantly, e.g. using a routine that applies some sort of anti-aliasing while drawing circles. But I didn't want to get into that code and the spot remover may come in handy somewhere else.
If anyone's interested in the code, just leave me note.
cheers!
Tom
|
|
|
|
 |
|
 |
Send it in and I'll update the article!
cheers,
Chris Maunder
|
|
|
|
 |
|
 |
Where can we declare our button as the new class?
|
|
|
|
 |
|
 |
How do I implement the RoundButton in Java?
|
|
|
|
 |
|
 |
Eric Minor wrote:
How do I implement the RoundButton in Java?
|
|
|
|
 |
|
 |
Could you implement a round button in C#?
|
|
|
|
 |
|
 |
Cool class Chris...
I wouldn't even have thought of using round buttons until now of course.
It's a cool idea.
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
 |
|
 |
how do i use RGN or CRgn with CButton ?
|
|
|
|
 |
|
 |
How can i change the size of the circle for writing a long text?
Thanks
|
|
|
|
 |
|
 |
I like the round button but it lacks some features like a bitmap image on the button and not just plain text.
earl
|
|
|
|
 |
|
 |
How can I additionally place a bitmap into the round button rather than text? Unlike to the CButton class the CRoundButton class seems not to support the way to simply send a BM_SETIMAGE message to the button object. What's wrong? How can it still be managed
|
|
|
|
 |
|
 |
How to make the round button not draw the rectangle part (make it transparent) ... i mean how to use the button on a surface that isn't gray because if you do then you see the round button and the rectangular gray part of it so it REALLY doesnt look round ... mailto:tuvok101@hotmail.com or simply repl
|
|
|
|
 |