if ( !event.AltDown() && !event.MetaDown() && !event.ControlDown() )
{
// insert the key in the control
- long keycode = event.KeyCode();
+ int keycode = (int)event.KeyCode();
if ( isprint(keycode) )
{
// FIXME this is not going to work for non letters...
{
#if defined(__WXMOTIF__) || defined(__WXGTK__)
// wxMotif needs a little extra help...
- int pos = Text()->GetInsertionPoint();
+ long pos = Text()->GetInsertionPoint();
wxString s( Text()->GetValue() );
s = s.Left(pos) + "\n" + s.Mid(pos);
Text()->SetValue(s);
if ( HasRange() )
{
- Spin()->SetValue(m_valueOld);
+ Spin()->SetValue((int)m_valueOld);
}
else
{
{
if ( HasRange() )
{
- Spin()->SetValue(m_valueOld);
+ Spin()->SetValue((int)m_valueOld);
}
else
{
{
if ( !HasRange() )
{
- long keycode = event.KeyCode();
+ int keycode = (int) event.KeyCode();
if ( isdigit(keycode) || keycode == '+' || keycode == '-' )
{
wxGridCellTextEditor::StartingKey(event);
void wxGridCellFloatEditor::StartingKey(wxKeyEvent& event)
{
- long keycode = event.KeyCode();
+ int keycode = (int)event.KeyCode();
if ( isdigit(keycode) ||
keycode == '+' || keycode == '-' || keycode == '.' )
{
if ( !(event.AltDown() ||
event.MetaDown() ||
event.ControlDown()) &&
- ((isalnum(event.KeyCode()) &&
+ ((isalnum((int)event.KeyCode()) &&
(event.KeyCode() < 256 && event.KeyCode() >= 0)) ||
event.KeyCode() == WXK_F2) &&
!IsCellEditControlEnabled() &&
for ( size_t i = 0; i < lines.GetCount(); i++ )
{
- dc.DrawText( lines[i], (long)x, (long)y );
+ dc.DrawText( lines[i], (int)x, (int)y );
y += lineHeight;
}
}