void ScrollBar::Create( char *name, int x, int y, int w, int h, int numRows, int winSize, int stepSize ) { strcpy( m_name, name ); m_x = x; m_y = y; m_w = w; m_h = h; m_numRows = numRows; m_winSize = winSize; EclWindow *parent = EclGetWindow( m_parentWindow ); AppDebugAssert( parent ); char barName[256]; char upName[256]; char downName[256]; sprintf( barName, "%s bar", name ); sprintf( upName, "%s up", name ); sprintf( downName, "%s down", name ); ScrollChangeButton *up = new ScrollChangeButton(this, stepSize*-1); up->SetProperties( upName, x, y, w, 18, UnicodeString(), UnicodeString(" ") ); parent->RegisterButton( up ); ScrollBarButton *bar = new ScrollBarButton(this); bar->SetProperties( barName, x, y+18, w, h-36, UnicodeString(" "), UnicodeString(" ") ); parent->RegisterButton( bar ); ScrollChangeButton *down = new ScrollChangeButton(this, stepSize); down->SetProperties( downName, x, y+h-18, w, 18, UnicodeString(), UnicodeString(" ") ); parent->RegisterButton( down ); }