summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcalculator.cpp10
1 files 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();
}