From 81edc564df150e61fab748bb7aa7489184869e09 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Wed, 19 Dec 2007 19:47:59 +0000 Subject: Window should not be sizeable. git-svn-id: svn://mattst88.com/svn/calculator/trunk@8 40705d3a-cdd4-446d-8ced-669f9f7342eb --- calculator.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/calculator.cpp b/calculator.cpp index f8c48d0..04b2e12 100755 --- a/calculator.cpp +++ b/calculator.cpp @@ -8,13 +8,13 @@ CalculatorWindow::CalculatorWindow( const Rect &rFrame, { Clear(); - pText = new TextView(this, Rect(15, 30, 160, 50), WINDOW_LAYOUT_FOLLOW_RIGHT , TEXTVIEW_FLAG_SINGLE_LINE); + pText = new TextView(this, Rect(15, 30, 160, 50), WINDOW_LAYOUT_FOLLOW_RIGHT, TEXTVIEW_FLAG_SINGLE_LINE); pText->Enable(false); pText->Set("0.0"); Button * pButton; - pButton = new Button(this, Rect(Point(15, 60), Point(40, 82)), "7", 0, new MessageCommand(BUTTON_SEVEN)); + pButton = new Button(this, Rect(Point(15, 60), Point(40, 82)), "7", 0, new MessageCommand(BUTTON_SEVEN)); pButton = new Button(this, Rect(Point(45, 60), Point(70, 82)), "8", 0, new MessageCommand(BUTTON_EIGHT)); pButton = new Button(this, Rect(Point(75, 60), Point(100, 82)), "9", 0, new MessageCommand(BUTTON_NINE)); pButton = new Button(this, Rect(Point(105, 60), Point(160, 82)), "Clear", 0, new MessageCommand(BUTTON_CLEAR)); @@ -135,11 +135,11 @@ Calculator::Calculator(int argc, char* argv[]): CalculatorWindow * pCalculatorWindow = new CalculatorWindow(r, "Calculator", WINDOW_LAYOUT_NOTHING, - APPLICATION_WINDOW_NO_VIEW); + APPLICATION_WINDOW_NO_VIEW | WINDOW_FLAG_NOT_SIZEABLE); pCalculatorWindow->GetTitleWindow()->SetFlags( - (TitleWindowFlags)(pCalculatorWindow->GetTitleWindow()->GetFlags() - )); + (TitleWindowFlags)(pCalculatorWindow->GetTitleWindow()->GetFlags()) + ); pCalculatorWindow->Show(); } -- cgit v1.2.3