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
yangweiwei
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 »

hi,everyone
i want to set color of wxPanel's border.it is,when the mouse over my panel,then the border color changed.
someone point any ways.thank you very much..
Auria
Site Admin
Site Admin
Posts: 6695
Joined: Thu Sep 28, 2006 12:23 am
Contact:

Post by Auria »

There are a couple stock borders that can be set with styles :

http://docs.wxwidgets.org/stable/wx_wxw ... 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