AppearPrefView was mixing up flags and resizing mode. Fixed.
Also set the flag B_PULSE_NEEDED (for the blinking cursor) in TermView. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23911 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -43,20 +43,20 @@ AppearancePrefView::AppearancePrefView(BRect frame, const char *name,
|
|||||||
|
|
||||||
BMenu *menu = _MakeFontMenu(MSG_HALF_FONT_CHANGED,
|
BMenu *menu = _MakeFontMenu(MSG_HALF_FONT_CHANGED,
|
||||||
PrefHandler::Default()->getString(PREF_HALF_FONT_FAMILY));
|
PrefHandler::Default()->getString(PREF_HALF_FONT_FAMILY));
|
||||||
fFont = new BMenuField(r, "font", "Font:", menu, B_WILL_DRAW);
|
fFont = new BMenuField(r, "font", "Font:", menu);
|
||||||
fFont->SetDivider(fontDividerSize);
|
fFont->SetDivider(fontDividerSize);
|
||||||
AddChild(fFont);
|
AddChild(fFont);
|
||||||
|
|
||||||
r.OffsetBy(r.Width() + 10, 0);
|
r.OffsetBy(r.Width() + 10, 0);
|
||||||
menu = _MakeSizeMenu(MSG_HALF_SIZE_CHANGED,
|
menu = _MakeSizeMenu(MSG_HALF_SIZE_CHANGED,
|
||||||
PrefHandler::Default()->getInt32(PREF_HALF_FONT_SIZE));
|
PrefHandler::Default()->getInt32(PREF_HALF_FONT_SIZE));
|
||||||
fFontSize = new BMenuField(r, "size", "Size:", menu, B_WILL_DRAW);
|
fFontSize = new BMenuField(r, "size", "Size:", menu);
|
||||||
fFontSize->SetDivider(sizeDividerSize);
|
fFontSize->SetDivider(sizeDividerSize);
|
||||||
AddChild(fFontSize);
|
AddChild(fFontSize);
|
||||||
|
|
||||||
r.OffsetBy(-r.Width() - 10,r.Height() + 25);
|
r.OffsetBy(-r.Width() - 10,r.Height() + 25);
|
||||||
fColorField = new BMenuField(r, "color", "Change:",
|
fColorField = new BMenuField(r, "color", "Change:",
|
||||||
MakeMenu(MSG_COLOR_FIELD_CHANGED, color_tbl, color_tbl[0]), B_WILL_DRAW);
|
MakeMenu(MSG_COLOR_FIELD_CHANGED, color_tbl, color_tbl[0]));
|
||||||
fColorField->SetDivider(StringWidth(fColorField->Label()) + 8.0);
|
fColorField->SetDivider(StringWidth(fColorField->Label()) + 8.0);
|
||||||
AddChild(fColorField);
|
AddChild(fColorField);
|
||||||
|
|
||||||
|
|||||||
@@ -267,7 +267,7 @@ TermView::_InitObject(int32 argc, const char **argv)
|
|||||||
return status;
|
return status;
|
||||||
|
|
||||||
// We need this
|
// We need this
|
||||||
SetFlags(Flags() | B_WILL_DRAW);
|
SetFlags(Flags() | B_WILL_DRAW | B_PULSE_NEEDED);
|
||||||
|
|
||||||
SetLowColor(fTextBackColor);
|
SetLowColor(fTextBackColor);
|
||||||
SetViewColor(fTextBackColor);
|
SetViewColor(fTextBackColor);
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
#include <Application.h>
|
#include <Application.h>
|
||||||
#include <Archivable.h>
|
#include <Archivable.h>
|
||||||
#include <Box.h>
|
#include <Box.h>
|
||||||
|
#include <Dragger.h>
|
||||||
#include <Message.h>
|
#include <Message.h>
|
||||||
#include <Path.h>
|
#include <Path.h>
|
||||||
#include <Shelf.h>
|
#include <Shelf.h>
|
||||||
@@ -45,8 +46,8 @@ App::App()
|
|||||||
|
|
||||||
// Window
|
// Window
|
||||||
Window::Window()
|
Window::Window()
|
||||||
:BWindow(BRect(20, 20, 300, 300), "RepliTerminal",
|
:BWindow(BRect(100, 100, 400, 360), "RepliTerminal",
|
||||||
B_DOCUMENT_WINDOW, B_ASYNCHRONOUS_CONTROLS|B_QUIT_ON_WINDOW_CLOSE)
|
B_TITLED_WINDOW, B_ASYNCHRONOUS_CONTROLS|B_QUIT_ON_WINDOW_CLOSE)
|
||||||
{
|
{
|
||||||
AttachTermView();
|
AttachTermView();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user