Readd support for prelight tree control triangles (visual
effect when mouse is over the triangle/button) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32631 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -186,13 +186,19 @@ wxRendererGTK::DrawTreeItemButton(wxWindow* win,
|
|||||||
{
|
{
|
||||||
GtkWidget *tree = GetTreeWidget();
|
GtkWidget *tree = GetTreeWidget();
|
||||||
|
|
||||||
|
GtkStateType state;
|
||||||
|
if ( flags & wxCONTROL_CURRENT )
|
||||||
|
state = GTK_STATE_PRELIGHT;
|
||||||
|
else
|
||||||
|
state = GTK_STATE_NORMAL;
|
||||||
|
|
||||||
// VZ: I don't know how to get the size of the expander so as to centre it
|
// VZ: I don't know how to get the size of the expander so as to centre it
|
||||||
// in the given rectangle, +2/3 below is just what looks good here...
|
// in the given rectangle, +2/3 below is just what looks good here...
|
||||||
gtk_paint_expander
|
gtk_paint_expander
|
||||||
(
|
(
|
||||||
tree->style,
|
tree->style,
|
||||||
GTK_PIZZA(win->m_wxwindow)->bin_window,
|
GTK_PIZZA(win->m_wxwindow)->bin_window,
|
||||||
GTK_STATE_NORMAL,
|
state,
|
||||||
NULL,
|
NULL,
|
||||||
tree,
|
tree,
|
||||||
"treeview",
|
"treeview",
|
||||||
|
@@ -186,13 +186,19 @@ wxRendererGTK::DrawTreeItemButton(wxWindow* win,
|
|||||||
{
|
{
|
||||||
GtkWidget *tree = GetTreeWidget();
|
GtkWidget *tree = GetTreeWidget();
|
||||||
|
|
||||||
|
GtkStateType state;
|
||||||
|
if ( flags & wxCONTROL_CURRENT )
|
||||||
|
state = GTK_STATE_PRELIGHT;
|
||||||
|
else
|
||||||
|
state = GTK_STATE_NORMAL;
|
||||||
|
|
||||||
// VZ: I don't know how to get the size of the expander so as to centre it
|
// VZ: I don't know how to get the size of the expander so as to centre it
|
||||||
// in the given rectangle, +2/3 below is just what looks good here...
|
// in the given rectangle, +2/3 below is just what looks good here...
|
||||||
gtk_paint_expander
|
gtk_paint_expander
|
||||||
(
|
(
|
||||||
tree->style,
|
tree->style,
|
||||||
GTK_PIZZA(win->m_wxwindow)->bin_window,
|
GTK_PIZZA(win->m_wxwindow)->bin_window,
|
||||||
GTK_STATE_NORMAL,
|
state,
|
||||||
NULL,
|
NULL,
|
||||||
tree,
|
tree,
|
||||||
"treeview",
|
"treeview",
|
||||||
|
Reference in New Issue
Block a user