m_yMargin = 0;
m_toolPacking = 1;
m_toolSeparation = 5;
+ SetCursor(*wxSTANDARD_CURSOR);
return TRUE;
}
{
}
-void wxToolBarSimple::OnPaint (wxPaintEvent& event)
+void wxToolBarSimple::OnPaint (wxPaintEvent& WXUNUSED(event))
{
wxPaintDC dc(this);
PrepareDC(dc);
wxToolBarBase::OnSize(event);
}
-void wxToolBarSimple::OnKillFocus (wxFocusEvent& event)
+void wxToolBarSimple::OnKillFocus (wxFocusEvent& WXUNUSED(event))
{
OnMouseEnter(m_pressedTool = m_currentTool = -1);
}
if (bitmap && bitmap->Ok())
{
+#ifndef __WXGTK__
if (bitmap->GetPalette())
memDC.SetPalette(*bitmap->GetPalette());
+#endif
int ax = (int)tool->m_x,
ay = (int)tool->m_y,
&memDC, 0, 0);
}
memDC.SelectObject(wxNullBitmap);
+#ifndef __WXGTK__
memDC.SetPalette(wxNullPalette);
+#endif
}
// No second bitmap, so draw a thick line around bitmap, or invert if mono
else if (tool->m_toggleState)
{
bool drawBorder = FALSE;
- #ifdef __X__ // X doesn't invert properly on colour
+#ifdef __X__ // X doesn't invert properly on colour
drawBorder = wxColourDisplay();
- #else // Inversion works fine under Windows
+#else // Inversion works fine under Windows
drawBorder = FALSE;
- #endif
+#endif
if (!drawBorder)
{
void wxToolBarSimple::ToggleTool(int index, bool toggle)
{
- wxNode *node = m_tools.Find((long)index);
+ wxNode *node = (wxNode*) NULL;
+ node = m_tools.Find((long)index);
if (node)
{
wxToolBarTool *tool = (wxToolBarTool *)node->Data();
//
void wxToolBarSimple::SpringUpButton(int index)
{
- wxNode *node=m_tools.Find((long)index);
+ wxNode *node = (wxNode*) NULL;
+ node=m_tools.Find((long)index);
if (node) {
wxToolBarTool *tool = (wxToolBarTool *)node->Data();
if (tool && !tool->m_isToggle && tool->m_toggleState){