parent
6e4de18e15
commit
5d93487607
|
@ -111,6 +111,7 @@ EDA_DRAW_PANEL_GAL::EDA_DRAW_PANEL_GAL( wxWindow* aParentWindow, wxWindowID aWin
|
||||||
|
|
||||||
EnableScrolling( false, false ); // otherwise Zoom Auto disables GAL canvas
|
EnableScrolling( false, false ); // otherwise Zoom Auto disables GAL canvas
|
||||||
KIPLATFORM::UI::SetOverlayScrolling( this, false ); // Prevent excessive repaint on GTK
|
KIPLATFORM::UI::SetOverlayScrolling( this, false ); // Prevent excessive repaint on GTK
|
||||||
|
KIPLATFORM::UI::ImmControl( this, false ); // Ensure our panel can't suck in IME events
|
||||||
|
|
||||||
Connect( wxEVT_SIZE, wxSizeEventHandler( EDA_DRAW_PANEL_GAL::onSize ), nullptr, this );
|
Connect( wxEVT_SIZE, wxSizeEventHandler( EDA_DRAW_PANEL_GAL::onSize ), nullptr, this );
|
||||||
Connect( wxEVT_ENTER_WINDOW, wxMouseEventHandler( EDA_DRAW_PANEL_GAL::onEnter ), nullptr,
|
Connect( wxEVT_ENTER_WINDOW, wxMouseEventHandler( EDA_DRAW_PANEL_GAL::onEnter ), nullptr,
|
||||||
|
|
|
@ -33,6 +33,7 @@ elseif( WIN32 )
|
||||||
"Shlwapi"
|
"Shlwapi"
|
||||||
"winhttp"
|
"winhttp"
|
||||||
"wintrust"
|
"wintrust"
|
||||||
|
"Imm32"
|
||||||
)
|
)
|
||||||
elseif( UNIX )
|
elseif( UNIX )
|
||||||
set( PLATFORM_SRCS
|
set( PLATFORM_SRCS
|
||||||
|
|
|
@ -216,3 +216,8 @@ void KIPLATFORM::UI::WarpPointer( wxWindow* aWindow, int aX, int aY )
|
||||||
gdk_window_set_cursor( win, cur_cursor );
|
gdk_window_set_cursor( win, cur_cursor );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void KIPLATFORM::UI::ImmControl( wxWindow* aWindow, bool aEnable )
|
||||||
|
{
|
||||||
|
}
|
|
@ -143,6 +143,11 @@ namespace KIPLATFORM
|
||||||
* @param aY destination y position
|
* @param aY destination y position
|
||||||
*/
|
*/
|
||||||
void WarpPointer( wxWindow* aWindow, int aX, int aY );
|
void WarpPointer( wxWindow* aWindow, int aX, int aY );
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Configures the IME mode of a given control handle
|
||||||
|
*/
|
||||||
|
void ImmControl( wxWindow* aWindow, bool aEnable );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -156,3 +156,24 @@ void KIPLATFORM::UI::WarpPointer( wxWindow* aWindow, int aX, int aY )
|
||||||
{
|
{
|
||||||
aWindow->WarpPointer( aX, aY );
|
aWindow->WarpPointer( aX, aY );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void KIPLATFORM::UI::ImmControl( wxWindow* aWindow, bool aEnable )
|
||||||
|
{
|
||||||
|
static HIMC origHIMC = (HIMC) 0;
|
||||||
|
|
||||||
|
if ( !aEnable )
|
||||||
|
{
|
||||||
|
if( origHIMC == (HIMC) 0 )
|
||||||
|
{
|
||||||
|
origHIMC = ImmGetContext( aWindow->GetHWND() );
|
||||||
|
if( origHIMC )
|
||||||
|
ImmAssociateContext( aWindow->GetHWND(), NULL );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if( origHIMC != (HIMC) 0 )
|
||||||
|
{
|
||||||
|
ImmAssociateContext( aWindow->GetHWND(), origHIMC );
|
||||||
|
origHIMC = (HIMC) 0;
|
||||||
|
}
|
||||||
|
}
|
|
@ -157,3 +157,8 @@ void KIPLATFORM::UI::WarpPointer( wxWindow* aWindow, int aX, int aY )
|
||||||
{
|
{
|
||||||
aWindow->WarpPointer( aX, aY );
|
aWindow->WarpPointer( aX, aY );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void KIPLATFORM::UI::ImmControl( wxWindow* aWindow, bool aEnable )
|
||||||
|
{
|
||||||
|
}
|
Loading…
Reference in New Issue