leo.zhou
2014-06-26 11:52:13 UTC
Hi guys,
I've been testing shaped window recently on Mac. When I add wxButton to the
shaped window, it isn't displayed correct. Please see attachments for
source code and screenshots.
Image 1: create wxButton with default styles
m_pBtn = new wxButton(panel, 1001, wxT("Click me!"), wxPoint(100, 160),
wxSize(100, 30));
Image 2: create wxButton with wxBORDER_NONE flag
m_pBtn = new wxButton(panel, 1001, wxT("Click me!"), wxPoint(100, 160),
wxSize(100, 30), wxBORDER_NONE);
Image 3: create wxButton with default styles and set its background color
to white
m_pBtn = new wxButton(panel, 1001, wxT("Click me!"), wxPoint(100, 160),
wxSize(100, 30));
m_pBtn->SetBackgroundColour(*wxWHITE);
Image 4: create wxButton with wxBORDER_NONE flag and set its background
color to white
m_pBtn = new wxButton(panel, 1001, wxT("Click me!"), wxPoint(100, 160),
wxSize(100, 30), wxBORDER_NONE);
m_pBtn->SetBackgroundColour(*wxWHITE);
I'm totally lost. Even if the button has transparent background, it should
be the white color on the wxFrame background. Am I right? I've been
scratching my head for a while. Please help! Thanks a lot!
Regards,
Leo
<Loading Image...>
<Loading Image...>
<Loading Image...>
<Loading Image...>
I've been testing shaped window recently on Mac. When I add wxButton to the
shaped window, it isn't displayed correct. Please see attachments for
source code and screenshots.
Image 1: create wxButton with default styles
m_pBtn = new wxButton(panel, 1001, wxT("Click me!"), wxPoint(100, 160),
wxSize(100, 30));
Image 2: create wxButton with wxBORDER_NONE flag
m_pBtn = new wxButton(panel, 1001, wxT("Click me!"), wxPoint(100, 160),
wxSize(100, 30), wxBORDER_NONE);
Image 3: create wxButton with default styles and set its background color
to white
m_pBtn = new wxButton(panel, 1001, wxT("Click me!"), wxPoint(100, 160),
wxSize(100, 30));
m_pBtn->SetBackgroundColour(*wxWHITE);
Image 4: create wxButton with wxBORDER_NONE flag and set its background
color to white
m_pBtn = new wxButton(panel, 1001, wxT("Click me!"), wxPoint(100, 160),
wxSize(100, 30), wxBORDER_NONE);
m_pBtn->SetBackgroundColour(*wxWHITE);
I'm totally lost. Even if the button has transparent background, it should
be the white color on the wxFrame background. Am I right? I've been
scratching my head for a while. Please help! Thanks a lot!
Regards,
Leo
<Loading Image...>
<Loading Image...>
<Loading Image...>
<Loading Image...>
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users