Ah yeah, another interesting use of BView resizeMask and flags...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23693 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
4a67038e56
commit
edadb083be
@ -81,7 +81,7 @@ TMainWindow::TMainWindow(BRect bound, char* name, window_type type, long flags)
|
||||
float barHeight = menuBar->Bounds().Height();
|
||||
|
||||
fView = new TShowBit(BRect(0, barHeight + 1, 188 - B_V_SCROLL_BAR_WIDTH,
|
||||
188 - B_H_SCROLL_BAR_HEIGHT), B_FOLLOW_ALL | B_WILL_DRAW);
|
||||
188 - B_H_SCROLL_BAR_HEIGHT), B_FOLLOW_ALL, B_WILL_DRAW);
|
||||
BScrollView *scrollView = new BScrollView("scroll view", fView,
|
||||
B_FOLLOW_ALL, B_WILL_DRAW, true, true, B_NO_BORDER);
|
||||
AddChild(scrollView);
|
||||
|
@ -134,8 +134,8 @@ void TShowBit::set_palette(long code)
|
||||
|
||||
/*------------------------------------------------------------*/
|
||||
|
||||
TShowBit::TShowBit(BRect r, long flags) :
|
||||
BView(r, "", flags, B_WILL_DRAW | B_PULSE_NEEDED)
|
||||
TShowBit::TShowBit(BRect r, uint32 resizeMask, uint32 flags) :
|
||||
BView(r, "", resizeMask, flags | B_WILL_DRAW | B_PULSE_NEEDED)
|
||||
{
|
||||
BRect bitmap_r;
|
||||
char *bits;
|
||||
|
@ -33,7 +33,7 @@ public:
|
||||
double scale;
|
||||
long iter;
|
||||
|
||||
TShowBit(BRect r, long flags);
|
||||
TShowBit(BRect r, uint32 resizeMask, uint32 flags);
|
||||
virtual ~TShowBit();
|
||||
virtual void Draw(BRect);
|
||||
virtual void MouseDown(BPoint where);
|
||||
|
Loading…
x
Reference in New Issue
Block a user