Mercurial > dwindows
comparison dwtest.c @ 350:2216e65ad2ae
Removed slider flags and container selection flags from the header file.
Added "multi" parameter to dw_container_new() to control multiple
selection.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 14 Apr 2003 13:47:20 +0000 |
parents | 5d3f2e2dcc6b |
children | d8176c73a081 |
comparison
equal
deleted
inserted
replaced
349:5d3f2e2dcc6b | 350:2216e65ad2ae |
---|---|
402 { | 402 { |
403 sprintf(buf,"Selected: %s\r\n", str); | 403 sprintf(buf,"Selected: %s\r\n", str); |
404 mle_point = dw_mle_import( container_mle, buf, mle_point); | 404 mle_point = dw_mle_import( container_mle, buf, mle_point); |
405 str = dw_container_query_next(container, DW_CRA_SELECTED); | 405 str = dw_container_query_next(container, DW_CRA_SELECTED); |
406 } | 406 } |
407 /* Make the last inserted point the cursor location */ | |
408 dw_mle_set(container_mle, mle_point); | |
407 return 0; | 409 return 0; |
408 } | 410 } |
409 | 411 |
410 int DWSIGNAL switch_page_cb( HWND window, unsigned long page_num, void *itemdata ) | 412 int DWSIGNAL switch_page_cb( HWND window, unsigned long page_num, void *itemdata ) |
411 { | 413 { |
579 /* create a box to pack into the notebook page */ | 581 /* create a box to pack into the notebook page */ |
580 containerbox = dw_box_new(BOXHORZ, 2); | 582 containerbox = dw_box_new(BOXHORZ, 2); |
581 dw_box_pack_start( notebookbox4, containerbox, 500, 200, TRUE, TRUE, 0); | 583 dw_box_pack_start( notebookbox4, containerbox, 500, 200, TRUE, TRUE, 0); |
582 | 584 |
583 /* now a container area under this box */ | 585 /* now a container area under this box */ |
584 container = dw_container_new(100); | 586 container = dw_container_new(100, TRUE); |
585 dw_box_pack_start( notebookbox4, container, 500, 200, TRUE, FALSE, 1); | 587 dw_box_pack_start( notebookbox4, container, 500, 200, TRUE, FALSE, 1); |
586 | 588 |
587 /* and a status area to see whats going on */ | 589 /* and a status area to see whats going on */ |
588 container_status = dw_status_text_new("", 0); | 590 container_status = dw_status_text_new("", 0); |
589 dw_box_pack_start( notebookbox4, container_status, 100, 20, TRUE, FALSE, 1); | 591 dw_box_pack_start( notebookbox4, container_status, 100, 20, TRUE, FALSE, 1); |