| 5 | | int main() |
|---|
| 6 | | { |
|---|
| 7 | | Window w = new Window(300, 100, null); |
|---|
| 8 | | w.begin(); |
|---|
| 9 | | |
|---|
| 10 | | ProgressBar p = new ProgressBar(0, 0, 300, 100, null); |
|---|
| 11 | | p.minimum(0); |
|---|
| 12 | | p.maximum(100); |
|---|
| 13 | | p.position(25); |
|---|
| 14 | | |
|---|
| 15 | | w.end(); |
|---|
| 16 | | |
|---|
| 17 | | w.resizable(p); |
|---|
| 18 | | |
|---|
| 19 | | w.show(); |
|---|
| 20 | | |
|---|
| 21 | | bcd.fltk2.run.run(); |
|---|
| 22 | | return 0; |
|---|
| | 8 | int main () { |
|---|
| | 9 | Window w; |
|---|
| | 10 | {Window o = new Window(440, 105, null); |
|---|
| | 11 | w = o; |
|---|
| | 12 | o.begin(); |
|---|
| | 13 | new Button(0, 0, 440, 36, "FLTK2 in D?!"); |
|---|
| | 14 | {Slider o2 = new Slider(0, 36, 440, 50, "You'd better believe it!"); |
|---|
| | 15 | o2.labelcolor(cast(Color)0xff000000); |
|---|
| | 16 | } |
|---|
| | 17 | o.end(); |
|---|
| | 18 | o.resizable(o); |
|---|
| | 19 | } |
|---|
| | 20 | w.show(); |
|---|
| | 21 | return run(); |
|---|