Add "hint" property support to XRC for wxComboBox too
It supports hints, as any/most wxTextEntry-derived classes.
This commit is contained in:
@@ -100,6 +100,7 @@ All (GUI):
|
|||||||
- Make wxRibbonButtonBar buttons more customizable (Max Maisel).
|
- Make wxRibbonButtonBar buttons more customizable (Max Maisel).
|
||||||
- Add wxHtmlEasyPrinting::SetPromptMode() (pavel-t).
|
- Add wxHtmlEasyPrinting::SetPromptMode() (pavel-t).
|
||||||
- Fix possible infinite loop in wxHtmlWindow layout (trivia21).
|
- Fix possible infinite loop in wxHtmlWindow layout (trivia21).
|
||||||
|
- Add "hint" property support to XRC for wxComboBox and wxSearchCtrl.
|
||||||
|
|
||||||
wxGTK:
|
wxGTK:
|
||||||
|
|
||||||
|
@@ -829,6 +829,7 @@ wxComboBox =
|
|||||||
stdWindowProperties &
|
stdWindowProperties &
|
||||||
[xrc:p="o"] element selection {_, t_integer }* &
|
[xrc:p="o"] element selection {_, t_integer }* &
|
||||||
[xrc:p="o"] element value {_, t_string }* &
|
[xrc:p="o"] element value {_, t_string }* &
|
||||||
|
[xrc:p="o"] element hint {_, t_text }* &
|
||||||
element content {
|
element content {
|
||||||
platform,
|
platform,
|
||||||
element item {_, t_text }*
|
element item {_, t_text }*
|
||||||
|
@@ -67,6 +67,10 @@ wxObject *wxComboBoxXmlHandler::DoCreateResource()
|
|||||||
|
|
||||||
SetupWindow(control);
|
SetupWindow(control);
|
||||||
|
|
||||||
|
const wxString hint = GetText(wxS("hint"));
|
||||||
|
if ( !hint.empty() )
|
||||||
|
control->SetHint(hint);
|
||||||
|
|
||||||
strList.Clear(); // dump the strings
|
strList.Clear(); // dump the strings
|
||||||
|
|
||||||
return control;
|
return control;
|
||||||
|
Reference in New Issue
Block a user