Adjust animation size to fit the toolbar properly
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68092 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -186,7 +186,7 @@ WebFrame::WebFrame() : wxFrame(NULL, wxID_ANY, "wxWebView Sample")
|
|||||||
m_tools_handle_navigation = m_tools_menu->AppendCheckItem(wxID_ANY, _("Handle Navigation"));
|
m_tools_handle_navigation = m_tools_menu->AppendCheckItem(wxID_ANY, _("Handle Navigation"));
|
||||||
m_tools_handle_new_window = m_tools_menu->AppendCheckItem(wxID_ANY, _("Handle New Windows"));
|
m_tools_handle_new_window = m_tools_menu->AppendCheckItem(wxID_ANY, _("Handle New Windows"));
|
||||||
|
|
||||||
//By default we want to handle naigation and new windows
|
//By default we want to handle navigation and new windows
|
||||||
m_tools_handle_navigation->Check();
|
m_tools_handle_navigation->Check();
|
||||||
m_tools_handle_new_window->Check();
|
m_tools_handle_new_window->Check();
|
||||||
|
|
||||||
@@ -240,7 +240,7 @@ void WebFrame::OnAnimationTimer(wxTimerEvent& evt)
|
|||||||
m_animation_angle += 15;
|
m_animation_angle += 15;
|
||||||
if (m_animation_angle > 360) m_animation_angle -= 360;
|
if (m_animation_angle > 360) m_animation_angle -= 360;
|
||||||
|
|
||||||
wxBitmap image(32, 32);
|
wxBitmap image(24, 24);
|
||||||
{
|
{
|
||||||
wxMemoryDC dc;
|
wxMemoryDC dc;
|
||||||
dc.SelectObject(image);
|
dc.SelectObject(image);
|
||||||
|
Reference in New Issue
Block a user