差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン前のリビジョン | |||
| fltk:widget-basic-groups [2025/06/12 15:39] – [Fl_Groupクラス] Move caption to under the figure freemikan | fltk:widget-basic-groups [2025/06/12 16:23] (現在) – [Fl_Groupクラス] Add sample program image and code freemikan | ||
|---|---|---|---|
| 行 5: | 行 5: | ||
| ===== Fl_Groupクラス ===== | ===== Fl_Groupクラス ===== | ||
| < | < | ||
| - | [[https:// | ||
| < | < | ||
| + | [[https:// | ||
| </ | </ | ||
| + | < | ||
| + | < | ||
| + | {{ : | ||
| + | </ | ||
| + | |||
| + | <code cpp> | ||
| + | #include < | ||
| + | #include < | ||
| + | #include < | ||
| + | #include < | ||
| + | |||
| + | int main(int argc, char **argv) { | ||
| + | auto window = new Fl_Window(600, | ||
| + | |||
| + | auto group1 = new Fl_Group{30, | ||
| + | auto button1 = new Fl_Radio_Round_Button(40, | ||
| + | auto button2 = new Fl_Radio_Round_Button(40, | ||
| + | auto button3 = new Fl_Radio_Round_Button(40, | ||
| + | group1-> | ||
| + | button1-> | ||
| + | group1-> | ||
| + | |||
| + | auto group2 = new Fl_Group{330, | ||
| + | auto button4 = new Fl_Radio_Round_Button(340, | ||
| + | auto button5 = new Fl_Radio_Round_Button(340, | ||
| + | auto button6 = new Fl_Radio_Round_Button(340, | ||
| + | group2-> | ||
| + | button4-> | ||
| + | group2-> | ||
| + | |||
| + | window-> | ||
| + | window-> | ||
| + | return Fl::run(); | ||
| + | } | ||
| + | </ | ||
