Пример #1
0
void
BSlider::DrawSlider()
{
	if (LockLooper()) {
#if USE_OFF_SCREEN_VIEW
		if (!fOffScreenBits)
			return;
		if (fOffScreenBits->Lock()) {
#endif
			DrawBar();
			DrawHashMarks();
			DrawThumb();
			DrawFocusMark();
			DrawText();

#if USE_OFF_SCREEN_VIEW
			fOffScreenView->Sync();
			fOffScreenBits->Unlock();

			DrawBitmap(fOffScreenBits, B_ORIGIN);
		}
#endif
		UnlockLooper();
	}
}
Пример #2
0
void YabTabView::Draw(BRect updateRect)
{
        // DrawBox(DrawTabs());
//			SetHighColor(223,223,223);
//			StrokeLine(BPoint(Bounds().left, Bounds().bottom-TabHeight()-2), BPoint(Bounds().right, Bounds().bottom-TabHeight()-2));
	DrawBox(TabFrame(fSelection));
	DrawTabs();

        if (IsFocus() && fFocus != -1)
	{
		DrawFocusMark(TabFrame(fFocus), fFocus);
		// Invalidate(TabFrame(fFocus));
	}
}