Contents Up Previous Next 原文へのリンク

wxActivateEvent

活性化イベントは、ウインドウやアプリケーションがアクティブになるときや、アクティブでなくなるときに送出される。
An activate event is sent when a window or application is being activated or deactivated.

Derived from

wxEvent
wxObject

Include files

<wx/event.h>

Event table macros

活性化イベントを処理するには、wxActivateEventを引数とするメンバー関数に直接入力が渡されるようにするための下記マクロを使用すること。
To process an activate event, use these event handler macros to direct input to a member function that takes a wxActivateEvent argument.

EVT_ACTIVATE(func)
wxEVT_ACTIVATEイベントを処理する。
Process a wxEVT_ACTIVATE event.
EVT_ACTIVATE_APP(func)
wxEVT_ACTIVATE_APPイベントを処理する。
Process a wxEVT_ACTIVATE_APP event.
Remarks

最上位のウインドウ(ダイアログかフレーム)は、アクティブになるときかアクティブでなくなるときに活性化イベントを返す。これは小さなバーの色が変化するとともにサブウインドウがキーボード入力を受け付けるようになることで視覚的に示される。
A top-level window (a dialog or frame) receives an activate event when is being activated or deactivated. This is indicated visually by the title bar changing colour, and a subwindow gaining the keyboard focus.

そのフレームのいずれかがアクティブになることによりアプリケーションはアクティブになり、またアプリケーションのフレーム全てがアクティブでなくなることによりアプリケーションはアクティブでなくなる。(Windowsのみ)
An application is activated or deactivated when one of its frames becomes activated, or a frame becomes inactivate resulting in all application frames being inactive. (Windows only)

See also

Event handling overview

Members

wxActivateEvent::wxActivateEvent
wxActivateEvent::m_active
wxActivateEvent::GetActive


wxActivateEvent::wxActivateEvent

wxActivateEvent(WXTYPE eventType = 0, bool active = TRUE, int id = 0)

コンストラクタ
Constructor.


wxActivateEvent::m_active

bool m_active

ウインドウまたはアプリケーションがアクティブであればTRUE。
TRUE if the window or application was activated.


wxActivateEvent::GetActive

bool GetActive() const

アプリケーションまたはウインドウがアクティブなときにTRUEを返す。さもなければFALSEを返す。
Returns TRUE if the application or window is being activated, FALSE otherwise.