summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2007-12-19 19:47:59 +0000
committerMatt Turner <mattst88@gmail.com>2007-12-19 19:47:59 +0000
commit81edc564df150e61fab748bb7aa7489184869e09 (patch)
tree8863ee3c3a2ae85606cfa687fb87dccb0d1790d7
parent3cc37b8c54fd467e9004f69c4dc20f8231701a1d (diff)
Window should not be sizeable.HEADmaster
git-svn-id: svn://mattst88.com/svn/calculator/trunk@8 40705d3a-cdd4-446d-8ced-669f9f7342eb
-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();
}