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/ind__progress__bar_8cpp_source.html below:

NCBI C++ ToolKit: src/gui/widgets/wx/ind_progress_bar.cpp Source File

37 #include <wx/dcmemory.h> 38 #include <wx/dcclient.h> 52

: m_Timer(this), m_CurPos(0), m_BmWidth(100)

54

Create(parent,

id

, pos, width);

59  static bool

bitmap_registered =

false

;

60  if

(! bitmap_registered) {

62  wxT

(

"progress_bar::barberpole"

),

63  wxT

(

"barberpole.png"

));

64

bitmap_registered =

true

;

67  m_Bitmap

= wxArtProvider::GetBitmap(

wxT

(

"progress_bar::barberpole"

));

75

wxControl::Create(parent,

id

, pos, wxSize(width, height + 4), wxBORDER_NONE, wxDefaultValidator,

wxT

(

"ind_progress_bar"

));

77

SetBackgroundStyle(wxBG_STYLE_CUSTOM);

87

wxSize

size

= GetClientSize();

88

wxCoord width =

size

.GetWidth(), height =

size

.GetHeight();

90

wxColour bkgColor = GetParent()->GetBackgroundColour();

92

wxBitmap bitmap(width, height);

95

memdc.SelectObject( bitmap );

96

memdc.SetPen(bkgColor);

97

memdc.SetBrush(bkgColor);

98

memdc.DrawRectangle(0, 0, width, height);

102

wxCoord y = (

size

.GetHeight() - height) / 2;

104

memdc.SetPen( *wxBLACK_PEN );

105

memdc.SetBrush( *wxWHITE_BRUSH );

106

memdc.DrawRectangle(0, y, width, height);

109

memdc.SetClippingRegion( 2, y, width - 4, height);

112

memdc.DrawBitmap(

m_Bitmap

, pos, y + 2);

116

memdc.SelectObject( wxNullBitmap );

118

wxPaintDC dc(

this

);

119

dc.DrawBitmap(bitmap, 0, 0);

void OnPaint(wxPaintEvent &event)

void Create(wxWindow *parent, wxWindowID id, const wxPoint &pos, int width)

void OnTimer(wxTimerEvent &event)

virtual void RegisterFileAlias(const wxArtID &anId, const wxArtClient &aClient, const wxSize &aSize, const wxString &aName, long aType=wxBITMAP_TYPE_ANY, int anIndex=-1)

#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

wxFileArtProvider * GetDefaultFileArtProvider()


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