A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/font__demo__panel_8cpp_source.html below:

NCBI C++ ToolKit: src/gui/widgets/gl/demo_wx/font_demo_panel.cpp Source File

34 #include <wx/stattext.h> 35 #include <wx/choice.h> 42 #define ID_CHOICE_FONT wxID_HIGHEST + 1 43 #define ID_CHOICE_SIZE wxID_HIGHEST + 2 44 #define ID_FONT_WINDOW wxID_HIGHEST + 3 63

wxPanel::Create(parent,

id

, wxDefaultPosition, wxSize(0,0), 0);

70

wxBoxSizer *topSizer =

new

wxBoxSizer(wxVERTICAL);

71

wxBoxSizer *barSizer =

new

wxBoxSizer(wxHORIZONTAL);

72

barSizer->Add(

new

wxStaticText(

this

,

wxID_ANY

,

wxT

(

"Font"

)), 0, wxALL|wxALIGN_CENTER_VERTICAL, 5);

73

topSizer->Add(barSizer, 0, wxALIGN_RIGHT);

75

wxArrayString fontChoiceStrings;

76

fontChoiceStrings.Add(

wxT

(

"Courier"

));

77

fontChoiceStrings.Add(

wxT

(

"Fixed"

));

78

fontChoiceStrings.Add(

wxT

(

"Helvetica"

));

79

fontChoiceStrings.Add(

wxT

(

"Lucida"

));

80

fontChoiceStrings.Add(

wxT

(

"Times"

));

83

wxDefaultPosition, wxDefaultSize,

84

fontChoiceStrings, 0);

85

fontChoice->SetStringSelection(

wxT

(

"Helvetica"

));

86

barSizer->Add(fontChoice, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5);

88

wxArrayString sizeChoiceStrings;

89

sizeChoiceStrings.Add(

wxT

(

"8"

));

90

sizeChoiceStrings.Add(

wxT

(

"10"

));

91

sizeChoiceStrings.Add(

wxT

(

"12"

));

92

sizeChoiceStrings.Add(

wxT

(

"14"

));

93

sizeChoiceStrings.Add(

wxT

(

"18"

));

94

sizeChoiceStrings.Add(

wxT

(

"24"

));

97

wxDefaultPosition, wxDefaultSize,

98

sizeChoiceStrings, 0);

99

sizeChoice->SetStringSelection(

wxT

(

"10"

));

100

barSizer->Add(sizeChoice, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5);

102

barSizer->Add(

new

wxStaticText(

this

,

wxID_ANY

,

wxT

(

"Size"

)), 0, wxALL|wxALIGN_CENTER_VERTICAL, 5);

105

topSizer->Add(fontWindow, 1, wxEXPAND);

116

wxString name = fontChoice->GetStringSelection();

117

wxString

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