Mercurial > dwindows
comparison dwtest.c @ 1667:9dbd2984c1e5
Initial implementation of dw_box_remove() and dw_box_remove_at_index()
for OS/2, Windows and template. Mac and GTK2/3 versions coming soon.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 26 Apr 2012 20:33:39 +0000 |
parents | 38da4aa23b7c |
children | 31dd366acfc8 |
comparison
equal
deleted
inserted
replaced
1666:df25fee81502 | 1667:9dbd2984c1e5 |
---|---|
880 /* Buttons */ | 880 /* Buttons */ |
881 buttonbox = dw_box_new(BOXHORZ, 10); | 881 buttonbox = dw_box_new(BOXHORZ, 10); |
882 | 882 |
883 dw_box_pack_start(lbbox, buttonbox, 0, 0, TRUE, TRUE, 0); | 883 dw_box_pack_start(lbbox, buttonbox, 0, 0, TRUE, TRUE, 0); |
884 | 884 |
885 cancelbutton = dw_button_new("Exit", 1002L); | |
886 dw_box_pack_start(buttonbox, cancelbutton, 130, 30, TRUE, TRUE, 2); | |
887 | |
885 cursortogglebutton = dw_button_new("Set Cursor pointer - CLOCK", 1003L); | 888 cursortogglebutton = dw_button_new("Set Cursor pointer - CLOCK", 1003L); |
886 dw_box_pack_start(buttonbox, cursortogglebutton, 130, 30, TRUE, TRUE, 2); | 889 dw_box_pack_start(buttonbox, cursortogglebutton, 130, 30, TRUE, TRUE, 2); |
887 | 890 |
888 okbutton = dw_button_new("Turn Off Annoying Beep!", 1001L); | 891 okbutton = dw_button_new("Turn Off Annoying Beep!", 1001L); |
889 dw_box_pack_start(buttonbox, okbutton, 130, 30, TRUE, TRUE, 2); | 892 dw_box_pack_start(buttonbox, okbutton, 130, 30, TRUE, TRUE, 2); |
890 | 893 |
891 cancelbutton = dw_button_new("Exit", 1002L); | 894 dw_box_remove(cancelbutton); |
892 dw_box_pack_start(buttonbox, cancelbutton, 130, 30, TRUE, TRUE, 2); | 895 dw_box_pack_start(buttonbox, cancelbutton, 130, 30, TRUE, TRUE, 2); |
893 dw_window_click_default( mainwindow, cancelbutton ); | 896 dw_window_click_default( mainwindow, cancelbutton ); |
894 | 897 |
895 colorchoosebutton = dw_button_new("Color Chooser Dialog", 1004L); | 898 colorchoosebutton = dw_button_new("Color Chooser Dialog", 1004L); |
896 dw_box_pack_at_index(buttonbox, colorchoosebutton, 1, 130, 30, TRUE, TRUE, 2); | 899 dw_box_pack_at_index(buttonbox, colorchoosebutton, 1, 130, 30, TRUE, TRUE, 2); |