Ejemplo n.º 1
0
void CApplicationMessenger::SendGUIMessage(const CGUIMessage &message, int windowID, bool waitResult)
{
  ThreadMessage tMsg(TMSG_GUI_MESSAGE);
  tMsg.param1 = windowID == WINDOW_INVALID ? 0 : windowID;
  tMsg.lpVoid = new CGUIMessage(message);
  SendMsg(std::move(tMsg), waitResult);
}
Ejemplo n.º 2
0
void cUISelectButton::Select() {
	bool wasSelected = Selected();

	SetSkinState( cUISkinState::StateSelected );

	mControlFlags |= UI_CTRL_FLAG_SELECTED;

	if ( !wasSelected ) {
		cUIMessage tMsg( this, cUIMessage::MsgSelected, 0 );
		MessagePost( &tMsg );
	}
}
Ejemplo n.º 3
0
void cUIManager::SendMsg( cUIControl * Ctrl, const Uint32& Msg, const Uint32& Flags ) {
	cUIMessage tMsg( Ctrl, Msg, Flags );

	Ctrl->MessagePost( &tMsg );
}