Mercurial > dwindows
diff 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 |
line wrap: on
line diff
--- a/dwtest.c Sun Jun 26 02:36:23 2011 +0000 +++ b/dwtest.c Tue Jun 28 04:41:43 2011 +0000 @@ -775,9 +775,6 @@ cursortogglebutton = dw_button_new("Set Cursor pointer - CLOCK", 1003L); dw_box_pack_start(buttonbox, cursortogglebutton, 130, 30, TRUE, TRUE, 2); - colorchoosebutton = dw_button_new("Color Chooser Dialog", 1004L); - dw_box_pack_start(buttonbox, colorchoosebutton, 130, 30, TRUE, TRUE, 2); - okbutton = dw_button_new("Turn Off Annoying Beep!", 1001L); dw_box_pack_start(buttonbox, okbutton, 130, 30, TRUE, TRUE, 2); @@ -785,6 +782,9 @@ dw_box_pack_start(buttonbox, cancelbutton, 130, 30, TRUE, TRUE, 2); dw_window_click_default( mainwindow, cancelbutton ); + colorchoosebutton = dw_button_new("Color Chooser Dialog", 1004L); + dw_box_pack_at_index(buttonbox, colorchoosebutton, 1, 130, 30, TRUE, TRUE, 2); + /* Set some nice fonts and colors */ dw_window_set_color(lbbox, DW_CLR_DARKCYAN, DW_CLR_PALEGRAY); dw_window_set_color(buttonbox, DW_CLR_DARKCYAN, DW_CLR_PALEGRAY);