Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add GUI_MSG_SET_TEXT and support it in CGUIEditControl and CGUIDialog…

…Keyboard
  • Loading branch information...
commit 99e0bcfd41b7098b319e94b12f01bc841a6bd829 1 parent f128546
@Montellese authored
View
8 xbmc/dialogs/GUIDialogKeyboard.cpp
@@ -255,6 +255,14 @@ bool CGUIDialogKeyboard::OnMessage(CGUIMessage& message)
}
}
break;
+
+ case GUI_MSG_SET_TEXT:
+ SetText(message.GetLabel());
+
+ // close the dialog if requested
+ if (message.GetParam1() > 0)
+ OnOK();
+ break;
}
return true;
View
5 xbmc/guilib/GUIEditControl.cpp
@@ -94,6 +94,11 @@ bool CGUIEditControl::OnMessage(CGUIMessage &message)
{
m_smsTimer.Stop();
}
+ else if (message.GetMessage() == GUI_MSG_SET_TEXT)
+ {
+ SetLabel2(message.GetLabel());
+ UpdateText();
+ }
return CGUIButtonControl::OnMessage(message);
}
View
2  xbmc/guilib/GUIMessage.h
@@ -130,6 +130,8 @@
*/
#define GUI_MSG_UNFOCUS_ALL 41
+#define GUI_MSG_SET_TEXT 42
+
#define GUI_MSG_USER 1000
/*!
Please sign in to comment.
Something went wrong with that request. Please try again.