Fixed drawing sample compilo for wxMotif (doesn't have wxRegion::Offset)

Put m_ok earlier in SelectBitmap, else get assert after SelectObject(wxNullBitmap)
'Fixed' longlong to long conversion messages by redefinging GetMillisecondsTime


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15233 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2002-04-22 11:19:11 +00:00
parent 9b66c26ae7
commit 4cae9a20a8
5 changed files with 26 additions and 4 deletions

View File

@@ -393,6 +393,11 @@ void wxWindowX11::SetFocus()
{
m_needsInputFocus = TRUE;
}
#if 0
wxString msg;
msg.Printf("SetFocus: %s\n", GetClassInfo()->GetClassName());
printf(msg.c_str());
#endif
}
// Get the window with the focus
@@ -1232,7 +1237,15 @@ void wxWindowX11::OnInternalIdle()
// Set the input focus if couldn't do it before
if (m_needsInputFocus)
{
#if 0
wxString msg;
msg.Printf("Setting focus for %s from OnInternalIdle\n", GetClassInfo()->GetClassName());
printf(msg.c_str());
#endif
SetFocus();
// If it couldn't set the focus now, there's
// no point in trying again.
m_needsInputFocus = FALSE;
}
}