comparison dwtest.c @ 225:413710a835eb

Code cleanup in the test program, and fixed the color problem on OS/2.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Wed, 05 Feb 2003 05:37:05 +0000
parents 2581c8b2754f
children 2aee0b23e880
comparison
equal deleted inserted replaced
224:e6571c4e4d3b 225:413710a835eb
1 #define INCL_DOS
2 #define INCL_WIN
3
4 #include <stdlib.h> 1 #include <stdlib.h>
5 #include <string.h> 2 #include <string.h>
6 #include <stdio.h> 3 #include <stdio.h>
7 #include "dw.h" 4 #include "dw.h"
8 5
335 notebookbox = dw_box_new( BOXVERT, 5 ); 332 notebookbox = dw_box_new( BOXVERT, 5 );
336 dw_box_pack_start( mainwindow, notebookbox, 0, 0, TRUE, TRUE, 0); 333 dw_box_pack_start( mainwindow, notebookbox, 0, 0, TRUE, TRUE, 0);
337 334
338 notebook = dw_notebook_new( 1, TRUE ); 335 notebook = dw_notebook_new( 1, TRUE );
339 dw_box_pack_start( notebookbox, notebook, 100, 100, TRUE, TRUE, 0); 336 dw_box_pack_start( notebookbox, notebook, 100, 100, TRUE, TRUE, 0);
340 dw_window_set_font( notebook, "9.WarpSans");
341 337
342 notebookbox1 = dw_box_new( BOXVERT, 5 ); 338 notebookbox1 = dw_box_new( BOXVERT, 5 );
343 notebookpage1 = dw_notebook_page_new( notebook, 0, TRUE ); 339 notebookpage1 = dw_notebook_page_new( notebook, 0, TRUE );
344 dw_notebook_pack( notebook, notebookpage1, notebookbox1 ); 340 dw_notebook_pack( notebook, notebookpage1, notebookbox1 );
345 dw_notebook_page_set_text( notebook, notebookpage1, "first page"); 341 dw_notebook_page_set_text( notebook, notebookpage1, "first page");