wxPanel::Create(parent,
id, wxDefaultPosition, wxSize(0,0), 0);
70wxBoxSizer *topSizer =
newwxBoxSizer(wxVERTICAL);
71wxBoxSizer *barSizer =
newwxBoxSizer(wxHORIZONTAL);
72barSizer->Add(
newwxStaticText(
this,
wxID_ANY,
wxT(
"Font")), 0, wxALL|wxALIGN_CENTER_VERTICAL, 5);
73topSizer->Add(barSizer, 0, wxALIGN_RIGHT);
75wxArrayString fontChoiceStrings;
76fontChoiceStrings.Add(
wxT(
"Courier"));
77fontChoiceStrings.Add(
wxT(
"Fixed"));
78fontChoiceStrings.Add(
wxT(
"Helvetica"));
79fontChoiceStrings.Add(
wxT(
"Lucida"));
80fontChoiceStrings.Add(
wxT(
"Times"));
83wxDefaultPosition, wxDefaultSize,
84fontChoiceStrings, 0);
85fontChoice->SetStringSelection(
wxT(
"Helvetica"));
86barSizer->Add(fontChoice, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5);
88wxArrayString sizeChoiceStrings;
89sizeChoiceStrings.Add(
wxT(
"8"));
90sizeChoiceStrings.Add(
wxT(
"10"));
91sizeChoiceStrings.Add(
wxT(
"12"));
92sizeChoiceStrings.Add(
wxT(
"14"));
93sizeChoiceStrings.Add(
wxT(
"18"));
94sizeChoiceStrings.Add(
wxT(
"24"));
97wxDefaultPosition, wxDefaultSize,
98sizeChoiceStrings, 0);
99sizeChoice->SetStringSelection(
wxT(
"10"));
100barSizer->Add(sizeChoice, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5);
102barSizer->Add(
newwxStaticText(
this,
wxID_ANY,
wxT(
"Size")), 0, wxALL|wxALIGN_CENTER_VERTICAL, 5);
105topSizer->Add(fontWindow, 1, wxEXPAND);
116wxString name = fontChoice->GetStringSelection();
117wxString
size= sizeChoice->GetStringSelection();
120 if(
wxT(
"Courier") == name)
122 else if(
wxT(
"Fixed") == name)
124 else if(
wxT(
"Lucida") == name)
126 else if(
wxT(
"Times") == name)
132 else if(
wxT(
"12") ==
size)
134 else if(
wxT(
"14") ==
size)
136 else if(
wxT(
"18") ==
size)
138 else if(
wxT(
"24") ==
size)
void CreateControls()
Creates the controls and sizers.
void OnFontSelected(wxCommandEvent &event)
CFontDemoPanel()
Constructors.
bool Create(wxWindow *parent, wxWindowID id)
Creation.
void SetGlFont(CGlBitmapFont::EFont font)
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
const struct ncbi::grid::netcache::search::fields::SIZE size
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4