# data file for the Fltk User Interface Designer (fluid) version 1.0105 header_name {.h} code_name {.cpp} decl {\#include} {} decl {\#include} {} decl {\#include} {} decl {using namespace std;} {} decl {const double pi = 3.1416;} {} decl {double radius;} {} decl {double umfang;} {} decl {double flaeche;} {} Function {MakeString(double wert)} {open return_type {const char*} } { code {string outstring; stringstream outstream; outstream<value()); sRadius>>radius; umfang = 2*pi*radius; flaeche = pi*radius*radius;} {} code {Radius_output->value(MakeString(radius)); Umfang_output->value(MakeString(umfang)); Flaeche_output->value(MakeString(flaeche));} {} code {Radius_Window->hide(); delete Radius_Window;} {} } Function {} {open } { code {radius = umfang = flaeche = 0;} {} Fl_Window {} { label Hauptfenster open xywh {203 456 315 130} type Single visible } { Fl_Output Radius_output { label {Radius:} xywh {60 30 75 25} } Fl_Output Umfang_output { label {Umfang:} xywh {60 60 75 25} } Fl_Output Flaeche_output { label {Fläche:} xywh {60 90 75 25} } Fl_Button {} { label {Radius eingeben} callback {RadiusInput()->show();} xywh {175 30 115 25} } } }