Color wxStaticLine 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
mxoliveira73
Experienced Solver
Experienced Solver
Posts: 54
Joined: Sun May 05, 2019 7:12 am

Color wxStaticLine

Post by mxoliveira73 » Tue Jun 25, 2019 9:37 pm

How change colors in wxStaticLine?


line1->SetBackgroundColour(wxColor(50,50,50));
line1->SetForegroundColour(wxColor(50,50,50));

((wxWindow*)line1)->SetBackgroundColour(wxColor(200,50,50));
((wxWindow*)line1)->SetForegroundColour(wxColor(200,50,50));

don't work...

User avatar
doublemax
Moderator
Moderator
Posts: 14319
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Color wxStaticLine

Post by doublemax » Wed Jun 26, 2019 4:38 am

Not possible. Try a 1 pixel high wxPanel instead.
Use the source, Luke!

Post Reply