How to make wxTextCtrl transparent Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
mo_mo_ry
Knows some wx things
Knows some wx things
Posts: 25
Joined: Thu Nov 27, 2014 7:10 am

How to make wxTextCtrl transparent

Post by mo_mo_ry »

Hi,I want to make the wxTextCtrl transparent with the string visual.And the wxTextCtrl can receive the event.
Is any way to realize it,thanks :D
DenDev
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 231
Joined: Mon Jan 19, 2015 1:45 pm

Re: How to make wxTextCtrl transparent

Post by DenDev »

What about using the style wxNO_BORDER and set the background color of the control to the same color as the parent window?
I have a bad habbit of not testing the code I post :D
mo_mo_ry
Knows some wx things
Knows some wx things
Posts: 25
Joined: Thu Nov 27, 2014 7:10 am

Re: How to make wxTextCtrl transparent

Post by mo_mo_ry »

DenDev wrote:What about using the style wxNO_BORDER and set the background color of the control to the same color as the parent window?
Thanks,it works.
Before I write this thread,the wxTextCtrl is just with border,wxNO_BORDER helps me. =D> =D> =D>
Thanks agian =D>
Post Reply