Originally posted by: C++ Lover
It's Fantabulous!!!
Originally posted by: JokerHata
I think it so long~!
you show me a great code and method to resolve it
Thank you very much~!
Originally posted by: Petras
Thank you, you saved me some time too :)
Originally posted by: Shin Hyun Sup
Thanks!
ReplyOriginally posted by: Xeon
Now, the screen shot of this article shows the pop-up color palette below the button neatly. But in my program, this pop-up actually show up at some other position instead!
The thing I wanna know is : is there anyway we can change the position that this pop-up color palette show up?
Please and thanks a lot!! :--)
Xeon.
Originally posted by: Xeon
Now, the screen shot of this article shows the pop-up color palette below the button neatly. But in my program, this pop-up actually show up at some other position instead!
The thing I wanna know is : is there anyway we can change the position that this pop-up color palette show up?
Please and thanks a lot!! :--)
Xeon.
Originally posted by: rakka rage
when i use this control on my second monitor the popup appears at the edge of my first monitor. i was wondering if anyone has resolved this problem?
thanks.
ReplyOriginally posted by: Rick yu
I believe that the virtual function virtual "void PreSubclassWindow()" of CDialog is the right place to call colorbtn.SubclassDlgItem(IDC_BUTTON1,this).
Enjoy!
By the way, the colorpick class is great! Thank you, Luis Ortega. You are really someone!
ReplyOriginally posted by: marcela
Any help would be really appreciated!
Thanks!
Has anybody used this control in a CDialogBar? I can't make it work; buttons just don't appear in the dialog.
Originally posted by: Enrico S. Penetti
Very nice ColorButton.
I have a suggestion for your Button, to handle the color outside button not with the member from the button.
Make the variable COLORREF currentcolor protected and overload the operator = and COLORREF like
operator=(const COLORREF &color)
{
currentcolor = color;
}
operator COLORREF()
{
return currentcolor;
}
Then you can use the Button as follows:
COLORREF color = DEFAULT_COLOR;
CColorBtn m_btnColor = color;
...
color = m_btnColor;
sincerely
Enrico