Mercurial > dwindows
comparison dwtest.c @ 1547:2fd9ff675d79
Added autosize code for the MLE on OS/2...
Using the max for container and tree on OS/2 right now...
Figuring out the space requirements for the container is very complicated.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Fri, 13 Jan 2012 17:03:24 +0000 |
parents | 34ce887be578 |
children | 030e9bddc1c9 |
comparison
equal
deleted
inserted
replaced
1546:189b27f24d64 | 1547:2fd9ff675d79 |
---|---|
1175 dw_mle_get_size(container_mle, &newpoint, NULL); | 1175 dw_mle_get_size(container_mle, &newpoint, NULL); |
1176 mle_point = (int)newpoint; | 1176 mle_point = (int)newpoint; |
1177 sprintf(buffer, "[%d]\r\n\r\n", mle_point); | 1177 sprintf(buffer, "[%d]\r\n\r\n", mle_point); |
1178 mle_point = dw_mle_import(container_mle, buffer, mle_point); | 1178 mle_point = dw_mle_import(container_mle, buffer, mle_point); |
1179 dw_mle_set_cursor(container_mle, mle_point); | 1179 dw_mle_set_cursor(container_mle, mle_point); |
1180 /* connect our event trappers... */ | 1180 /* connect our event trappers... */ |
1181 dw_signal_connect(container, DW_SIGNAL_ITEM_ENTER, DW_SIGNAL_FUNC(item_enter_cb), (void *)container_status); | 1181 dw_signal_connect(container, DW_SIGNAL_ITEM_ENTER, DW_SIGNAL_FUNC(item_enter_cb), (void *)container_status); |
1182 dw_signal_connect(container, DW_SIGNAL_ITEM_CONTEXT, DW_SIGNAL_FUNC(item_context_cb), (void *)container_status); | 1182 dw_signal_connect(container, DW_SIGNAL_ITEM_CONTEXT, DW_SIGNAL_FUNC(item_context_cb), (void *)container_status); |
1183 dw_signal_connect(container, DW_SIGNAL_ITEM_SELECT, DW_SIGNAL_FUNC(container_select_cb), (void *)container_status); | 1183 dw_signal_connect(container, DW_SIGNAL_ITEM_SELECT, DW_SIGNAL_FUNC(container_select_cb), (void *)container_status); |
1184 dw_signal_connect(container, DW_SIGNAL_COLUMN_CLICK, DW_SIGNAL_FUNC(column_click_cb), (void *)container_status); | 1184 dw_signal_connect(container, DW_SIGNAL_COLUMN_CLICK, DW_SIGNAL_FUNC(column_click_cb), (void *)container_status); |
1185 } | 1185 } |