Use proper namespace for iostream classes
[AXE.git] / demos / testaxe.cpp
index 4c8fc11..b514d2a 100644 (file)
@@ -43,8 +43,8 @@ public:
 
    virtual int EV_Expose(XExposeEvent ev)
    {
-      DrawString(white_gc, 100, 30, "Andromeda X Windows Encapsulation");
-      DrawString(white_gc, 120, 90, "Version 0.2 - July 30, 2001");
+      DrawString(white_gc, 110, 30, "Andromeda X Windows Encapsulation");
+      DrawString(white_gc, 110, 95, "Version 0.3 - November 05, 2002");
       return 1;
    }
 
@@ -113,7 +113,12 @@ void xapp::SetupResources(void)
 
    main_frame = new managed_window;
    main_frame->Command_WhenClosed(CMD_QUIT);
-   main_frame->Background(color(config.find_parameter("colors", "background")));
+
+   String bgcolor = config.find_parameter("colors", "background");
+   if (bgcolor != "")
+   {
+      main_frame->Background(color(bgcolor));
+   }
 
    fr = new button(*main_frame, 20, 30, "Up");
 
@@ -235,7 +240,7 @@ int xapp::DoCommand(int code)
       return 1;
 
    case FILE_OPEN:
-      cout << "Opening " << FileDialog->PathName() << "\n";
+      std::cout << "Opening " << FileDialog->PathName() << "\n";
       save_item->Enable(1);
       return 1;