Mercurial > dwindows
comparison dwtest.c @ 1077:34f1d6f5f1c3
Added function dw_box_pack_at_index() on Windows, Mac and OS/2. And an example usage in dwtest.
Only tested on Windows... will be testing on OS/2 and Mac shortly...
then implementing the GTK versions of the function after that.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 28 Jun 2011 04:41:43 +0000 |
parents | b3674ea2909f |
children | b905fd8e7fd1 |
comparison
equal
deleted
inserted
replaced
1076:dbaf1b11c301 | 1077:34f1d6f5f1c3 |
---|---|
773 dw_box_pack_start(lbbox, buttonbox, 0, 0, TRUE, TRUE, 0); | 773 dw_box_pack_start(lbbox, buttonbox, 0, 0, TRUE, TRUE, 0); |
774 | 774 |
775 cursortogglebutton = dw_button_new("Set Cursor pointer - CLOCK", 1003L); | 775 cursortogglebutton = dw_button_new("Set Cursor pointer - CLOCK", 1003L); |
776 dw_box_pack_start(buttonbox, cursortogglebutton, 130, 30, TRUE, TRUE, 2); | 776 dw_box_pack_start(buttonbox, cursortogglebutton, 130, 30, TRUE, TRUE, 2); |
777 | 777 |
778 colorchoosebutton = dw_button_new("Color Chooser Dialog", 1004L); | |
779 dw_box_pack_start(buttonbox, colorchoosebutton, 130, 30, TRUE, TRUE, 2); | |
780 | |
781 okbutton = dw_button_new("Turn Off Annoying Beep!", 1001L); | 778 okbutton = dw_button_new("Turn Off Annoying Beep!", 1001L); |
782 dw_box_pack_start(buttonbox, okbutton, 130, 30, TRUE, TRUE, 2); | 779 dw_box_pack_start(buttonbox, okbutton, 130, 30, TRUE, TRUE, 2); |
783 | 780 |
784 cancelbutton = dw_button_new("Exit", 1002L); | 781 cancelbutton = dw_button_new("Exit", 1002L); |
785 dw_box_pack_start(buttonbox, cancelbutton, 130, 30, TRUE, TRUE, 2); | 782 dw_box_pack_start(buttonbox, cancelbutton, 130, 30, TRUE, TRUE, 2); |
786 dw_window_click_default( mainwindow, cancelbutton ); | 783 dw_window_click_default( mainwindow, cancelbutton ); |
784 | |
785 colorchoosebutton = dw_button_new("Color Chooser Dialog", 1004L); | |
786 dw_box_pack_at_index(buttonbox, colorchoosebutton, 1, 130, 30, TRUE, TRUE, 2); | |
787 | 787 |
788 /* Set some nice fonts and colors */ | 788 /* Set some nice fonts and colors */ |
789 dw_window_set_color(lbbox, DW_CLR_DARKCYAN, DW_CLR_PALEGRAY); | 789 dw_window_set_color(lbbox, DW_CLR_DARKCYAN, DW_CLR_PALEGRAY); |
790 dw_window_set_color(buttonbox, DW_CLR_DARKCYAN, DW_CLR_PALEGRAY); | 790 dw_window_set_color(buttonbox, DW_CLR_DARKCYAN, DW_CLR_PALEGRAY); |
791 dw_window_set_color(okbutton, DW_CLR_PALEGRAY, DW_CLR_DARKCYAN); | 791 dw_window_set_color(okbutton, DW_CLR_PALEGRAY, DW_CLR_DARKCYAN); |