: m_Timer(this), m_CurPos(0), m_BmWidth(100)
54Create(parent,
id, pos, width);
59 static boolbitmap_registered =
false;
60 if(! bitmap_registered) {
62 wxT(
"progress_bar::barberpole"),
63 wxT(
"barberpole.png"));
64bitmap_registered =
true;
67 m_Bitmap= wxArtProvider::GetBitmap(
wxT(
"progress_bar::barberpole"));
75wxControl::Create(parent,
id, pos, wxSize(width, height + 4), wxBORDER_NONE, wxDefaultValidator,
wxT(
"ind_progress_bar"));
77SetBackgroundStyle(wxBG_STYLE_CUSTOM);
87wxSize
size= GetClientSize();
88wxCoord width =
size.GetWidth(), height =
size.GetHeight();
90wxColour bkgColor = GetParent()->GetBackgroundColour();
92wxBitmap bitmap(width, height);
95memdc.SelectObject( bitmap );
96memdc.SetPen(bkgColor);
97memdc.SetBrush(bkgColor);
98memdc.DrawRectangle(0, 0, width, height);
102wxCoord y = (
size.GetHeight() - height) / 2;
104memdc.SetPen( *wxBLACK_PEN );
105memdc.SetBrush( *wxWHITE_BRUSH );
106memdc.DrawRectangle(0, y, width, height);
109memdc.SetClippingRegion( 2, y, width - 4, height);
112memdc.DrawBitmap(
m_Bitmap, pos, y + 2);
116memdc.SelectObject( wxNullBitmap );
118wxPaintDC dc(
this);
119dc.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