ScrollView for roomlist, NO_BORDER for user scroll
This commit is contained in:
parent
42c52b324d
commit
2645a58955
|
@ -331,7 +331,7 @@ ConversationView::_InitInterface()
|
||||||
{
|
{
|
||||||
fReceiveView = new RenderView("receiveView");
|
fReceiveView = new RenderView("receiveView");
|
||||||
BScrollView* scrollViewReceive = new BScrollView("receiveScrollView",
|
BScrollView* scrollViewReceive = new BScrollView("receiveScrollView",
|
||||||
fReceiveView, B_WILL_DRAW, false, true);
|
fReceiveView, B_WILL_DRAW, false, true, B_NO_BORDER);
|
||||||
|
|
||||||
fSendView = new SendTextView("sendView", this);
|
fSendView = new SendTextView("sendView", this);
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
#include <Catalog.h>
|
#include <Catalog.h>
|
||||||
#include <LayoutBuilder.h>
|
#include <LayoutBuilder.h>
|
||||||
#include <MenuBar.h>
|
#include <MenuBar.h>
|
||||||
|
#include <ScrollView.h>
|
||||||
#include <TranslationUtils.h>
|
#include <TranslationUtils.h>
|
||||||
|
|
||||||
#include "AccountDialog.h"
|
#include "AccountDialog.h"
|
||||||
|
@ -446,6 +447,9 @@ MainWindow::_InitInterface()
|
||||||
fStatusView = new StatusView("statusView", fServer);
|
fStatusView = new StatusView("statusView", fServer);
|
||||||
fSplitView = new BSplitView(B_HORIZONTAL, 0);
|
fSplitView = new BSplitView(B_HORIZONTAL, 0);
|
||||||
|
|
||||||
|
BScrollView* listScroll = new BScrollView("roomListScroll", fListView,
|
||||||
|
true, false, B_NO_BORDER);
|
||||||
|
|
||||||
// Right-side of window, Chat + Textbox
|
// Right-side of window, Chat + Textbox
|
||||||
fRightView = new BSplitView(B_VERTICAL, 0);
|
fRightView = new BSplitView(B_VERTICAL, 0);
|
||||||
fBackupChatView = new ConversationView();
|
fBackupChatView = new ConversationView();
|
||||||
|
@ -465,7 +469,7 @@ MainWindow::_InitInterface()
|
||||||
.SetInsets(5, 5, 0, 10)
|
.SetInsets(5, 5, 0, 10)
|
||||||
.AddSplit(fSplitView)
|
.AddSplit(fSplitView)
|
||||||
.AddGroup(B_VERTICAL)
|
.AddGroup(B_VERTICAL)
|
||||||
.Add(fListView, 1)
|
.Add(listScroll, 1)
|
||||||
.Add(fStatusView)
|
.Add(fStatusView)
|
||||||
.End()
|
.End()
|
||||||
.Add(fRightView, 5)
|
.Add(fRightView, 5)
|
||||||
|
|
Ŝarĝante…
Reference in New Issue