the border corlor of wxPanel 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
Earned a small fee
Earned a small fee
Posts: 11
Joined: Fri Mar 12, 2010 2:54 am

the border corlor of wxPanel

Post by yangweiwei » Thu Jul 22, 2010 2:55 am

i want to set color of wxPanel's is,when the mouse over my panel,then the border color changed.
someone point any ways.thank you very much..

Site Admin
Site Admin
Posts: 6695
Joined: Thu Sep 28, 2006 12:23 am

Post by Auria » Thu Jul 22, 2010 1:22 pm

There are a couple stock borders that can be set with styles : ... l#wxwindow
wxBORDER_SIMPLE Displays a thin border around the window. wxSIMPLE_BORDER is the old name for this style.
wxBORDER_DOUBLE Displays a double border. wxDOUBLE_BORDER is the old name for this style. Windows and Mac only.
wxBORDER_SUNKEN Displays a sunken border. wxSUNKEN_BORDER is the old name for this style.
wxBORDER_RAISED Displays a raised border. wxRAISED_BORDER is the old name for this style.
wxBORDER_STATIC Displays a border suitable for a static control. wxSTATIC_BORDER is the old name for this style. Windows only.
wxBORDER_THEME Displays a themed border where possible. Currently this has an effect on Windows XP and above only. For more information on themed borders, please see Themed borders on Windows.
If they don't fit the look you want, you will need to draw on the panel (see wiki for examples)
"Keyboard not detected. Press F1 to continue"
-- Windows

Post Reply