Discussion:
Adding common controls to shaped window(OS X bug?)
leo.zhou
2014-06-26 11:52:13 UTC
Permalink
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...>
--
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
leo.zhou
2014-06-27 01:19:35 UTC
Permalink
Post by leo.zhou
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
<https://dl.dropboxusercontent.com/u/22483933/Image%201.png>
<https://dl.dropboxusercontent.com/u/22483933/Image%202.png>
<https://dl.dropboxusercontent.com/u/22483933/Image%203.png>
<https://dl.dropboxusercontent.com/u/22483933/Image%204.png>
圚 2014幎6月26日星期四UTC+8䞋午7时52分14秒leo.zhou写道
Post by leo.zhou
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
<https://dl.dropboxusercontent.com/u/22483933/Image%201.png>
<https://dl.dropboxusercontent.com/u/22483933/Image%202.png>
<https://dl.dropboxusercontent.com/u/22483933/Image%203.png>
<https://dl.dropboxusercontent.com/u/22483933/Image%204.png>
--
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
leo.zhou
2014-06-27 01:22:17 UTC
Permalink
BTW, I'm using wxWidgets 3.0.1 on Mac OS X 10.9.3. Thanks!!

Regards,
Leo
--
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
Vadim Zeitlin
2014-06-27 12:24:49 UTC
Permalink
On Thu, 26 Jun 2014 18:22:17 -0700 (PDT) leo.zhou wrote:

l> BTW, I'm using wxWidgets 3.0.1 on Mac OS X 10.9.3. Thanks!!

I'm sorry that we can't help you with this problem but, really, posting
dozens of messages about it is not going to change this. I don't have time
to look at this problem now and I'm not sure I could fix it even if I had
time and apparently Stefan is in the same position.

Please open a bug with the simplest possible example reproducing the
problem and all the details (e.g. the information above). Hopefully someone
will be able to look at it later. If you absolutely need to fix it right
now, your best choice would be to debug it yourself. If you can't do it,
maybe you can find somebody who can and pay that person to do it. But,
again, just posting here again and again is not going to help at all. I
wish it were enough to fix the bug, but it just isn't.

Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
leo.zhou
2014-06-27 12:44:25 UTC
Permalink
圚 2014幎6月27日星期五UTC+8䞋午8时25分00秒Vadim Zeitlin写道
Post by Vadim Zeitlin
l> BTW, I'm using wxWidgets 3.0.1 on Mac OS X 10.9.3. Thanks!!
I'm sorry that we can't help you with this problem but, really, posting
dozens of messages about it is not going to change this. I don't have time
to look at this problem now and I'm not sure I could fix it even if I had
time and apparently Stefan is in the same position.
Please open a bug with the simplest possible example reproducing the
problem and all the details (e.g. the information above). Hopefully someone
will be able to look at it later. If you absolutely need to fix it right
now, your best choice would be to debug it yourself. If you can't do it,
maybe you can find somebody who can and pay that person to do it. But,
again, just posting here again and again is not going to help at all. I
wish it were enough to fix the bug, but it just isn't.
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
Many thanks! I've tried Trac several times, but it always give 500 Server
Error.

Regards,
Leo
--
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
Vadim Zeitlin
2014-06-27 12:49:33 UTC
Permalink
On Fri, 27 Jun 2014 05:44:25 -0700 (PDT) leo.zhou wrote:

l> Many thanks! I've tried Trac several times, but it always give 500 Server
l> Error.

Apparently this happens sometimes but usually it goes away if you retry...
Unfortunately, once again, I can't really help with this.

Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
Loading...