More changes from Bill Spitzak.

git-svn-id: file:///fltk/svn/fltk/trunk@20 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Michael R Sweet
1998-10-19 21:00:26 +00:00
parent 1a86a0ede0
commit 90e8eb7a45
20 changed files with 119 additions and 137 deletions
+1
View File
@@ -1143,6 +1143,7 @@ int Board::handle(int e) {
void quit_cb(Fl_Widget*, void*) {exit(0);}
int FLTKmain(int argc, char** argv) {
Fl::visual(FL_DOUBLE|FL_INDEX);
Board b(BOARDSIZE,BOARDSIZE);
b.callback(quit_cb);
b.show(argc,argv);
+8 -10
View File
@@ -2,7 +2,7 @@
#include "style_ui.H"
Fl_Window *style_panel;
Fl_Double_Window *style_panel;
static void cb_OK(Fl_Return_Button* o, void*) {
o->window()->hide();
@@ -46,10 +46,10 @@ static void cb_click(Fl_Button*, void*) {
}
static Fl_Menu_Item* font_menu();
void show_style_panel() {
Fl_Window *w;
Fl_Double_Window* show_style_panel() {
Fl_Double_Window* w;
if (!style_panel) {
{ Fl_Window* o = style_panel = w = new Fl_Double_Window(335, 425, "style");
{ Fl_Double_Window* o = style_panel = w = new Fl_Double_Window(335, 425, "style");
{ Fl_Choice* o = new Fl_Choice(60, 155, 220, 25, "labels:");
o->callback((Fl_Callback*)font_cb, (void*)(0));
o->menu(font_menu());
@@ -147,11 +147,12 @@ void show_style_panel() {
}
}
style_panel->show();
return w;
}
int main(int argc, char **argv) {
Fl_Window *w;
{ Fl_Window* o = w = new Fl_Double_Window(445, 435);
Fl_Double_Window* w;
{ Fl_Double_Window* o = w = new Fl_Double_Window(445, 435);
{ Fl_Group* o = new Fl_Group(270, 35, 140, 75, "Packed buttons:");
o->align(4);
{ Fl_Button* o = new Fl_Button(270, 35, 35, 25, "A");
@@ -196,10 +197,7 @@ int main(int argc, char **argv) {
o->labeltype(FL_ENGRAVED_LABEL);
o->align(4);
}
{ Fl_Counter* o = new Fl_Counter(20, 120, 170, 25, "counter");
o->minimum(-1e+06);
o->maximum(1e+06);
}
new Fl_Counter(20, 120, 170, 25, "counter");
{ Fl_Adjuster* o = new Fl_Adjuster(80, 40, 25, 75, "adjuster:");
o->labeltype(FL_SYMBOL_LABEL);
o->align(4);
+2 -2
View File
@@ -22,6 +22,6 @@ extern void font_cb(Fl_Choice*, long);
extern void font_size_cb(Fl_Value_Input*, long);
extern void scrollbar_thickness_cb(Fl_Value_Slider*, void*);
extern void text_box_thickness_cb(Fl_Value_Slider*, void*);
extern Fl_Window *style_panel;
void show_style_panel();
extern Fl_Double_Window *style_panel;
Fl_Double_Window* show_style_panel();
extern Fl_Menu_Item menu_[];