From 853692a5c867dd4c417894cf9a3b45bc3f1cef52 Mon Sep 17 00:00:00 2001 From: halw Date: Sun, 21 Dec 2008 21:14:24 +0000 Subject: [PATCH] Author:halw Date:2008-12-21T21:14:24.000000Z git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@143 abb3cda0-5349-4a8f-a601-0c33ac3a8c38 --- .../net/samples/threads-samples/pools.wiki | 3 +-- .../net/samples/threads-samples/timers.wiki | 6 +++--- .../samples/winform-samples/message-box.wiki | 21 ++++++++++++++----- .../simple-hello-world-form-sample.wiki | 4 ++-- 4 files changed, 22 insertions(+), 12 deletions(-) diff --git a/documentation/current/platform-specifics/microsoft-windows/net/samples/threads-samples/pools.wiki b/documentation/current/platform-specifics/microsoft-windows/net/samples/threads-samples/pools.wiki index be0d9eda..eb8cee4d 100644 --- a/documentation/current/platform-specifics/microsoft-windows/net/samples/threads-samples/pools.wiki +++ b/documentation/current/platform-specifics/microsoft-windows/net/samples/threads-samples/pools.wiki @@ -31,8 +31,7 @@ When the display is finished, the application wait for you to pressed the return This application shows how to use the thread THREAD_POOL. An asynchronous thread is launched: - feature {THREAD_POOL}.queue_user_work_item_wait_callback_object - (create {WAIT_CALLBACK}.make (Current, $my_async_operation, l_async_operation_done)) + {THREAD_POOL}.queue_user_work_item (create {WAIT_CALLBACK}.make (Current, $async_operation, l_async_operation_done)) and is associated to the local variable l_async_operation_done. Both threads perform simultaneously some operations. The main thread wait for the asynchronous thread to complete his own operations diff --git a/documentation/current/platform-specifics/microsoft-windows/net/samples/threads-samples/timers.wiki b/documentation/current/platform-specifics/microsoft-windows/net/samples/threads-samples/timers.wiki index 4dd4203a..74d5ded3 100644 --- a/documentation/current/platform-specifics/microsoft-windows/net/samples/threads-samples/timers.wiki +++ b/documentation/current/platform-specifics/microsoft-windows/net/samples/threads-samples/timers.wiki @@ -34,11 +34,11 @@ When the display is finished, the application wait for you to pressed the return This application shows how to use the thread TIMER. The timer is launched: - create my_timer .make_with_callback (create {TIMER_CALLBACK}.make (Current, $check_status), Void, 0, 2000) + create my_timer.make_with_callback (create {TIMER_CALLBACK}.make (Current, $check_status), Void, 0, 2000) -and call the feature check_status that displays the message "Checking Status." every two seconds. +and calls the feature check_status that displays the message "Checking Status." every two seconds. -This sample contains the following class: +This sample contains the following classes: * TIMER * TIMER_CALLBACK diff --git a/documentation/current/platform-specifics/microsoft-windows/net/samples/winform-samples/message-box.wiki b/documentation/current/platform-specifics/microsoft-windows/net/samples/winform-samples/message-box.wiki index 3ba43120..bc0afab7 100644 --- a/documentation/current/platform-specifics/microsoft-windows/net/samples/winform-samples/message-box.wiki +++ b/documentation/current/platform-specifics/microsoft-windows/net/samples/winform-samples/message-box.wiki @@ -24,7 +24,7 @@ To compile the example: After launching the application, you will see a window displayed with a similar appearance to the one above. -Click on the BUTTON "Click Me!" and a message box will appear with the text that you have entered in the TEXT_FIELD. +Click on the BUTTON "Click Me!" and a message box will appear with the text that you have entered in the TEXT_BOX. @@ -32,16 +32,27 @@ Click on the BUTTON "Click Me!" and a message box The application shows how to use the very useful MESSAGE_BOX control. -An event ( EVENT_HANDLER) is associated to a control (here to the BUTTON). So the line ' -my_button.add_click (create {EVENT_HANDLER}.make (Current, $on_my_button_clicked )) +An event ( EVENT_HANDLER) is associated to a control (here to the BUTTON). So the line + + my_button.add_click (create {EVENT_HANDLER}.make (Current, $on_my_button_clicked )) associates a click to my_button to the feature on_my_button_clicked. So every time the BUTTON my_button is clicked, the feature on_my_button_clicked is executed. -The feature my_button_clicked displays a MESSAGE_BOX ( feature { WINFORMS_MESSAGE_BOX}. show ( ''msg'')) with the text contained in TEXT_FIELD ( ''msg'' := my_text_field. text). + +The feature my_button_clicked displays a MESSAGE_BOX + + {WINFORMS_MESSAGE_BOX}.show (msg) + +with the text contained in TEXT_BOX + + msg := "Text is : '" + msg.append (my_text_box.text) + msg.append ("'") + This sample contains the following classes: * FORM * BUTTON -* TEXT_FIELD +* TEXT_BOX * EVENT_HANDLER ==Notes== diff --git a/documentation/current/platform-specifics/microsoft-windows/net/samples/winform-samples/simple-hello-world-form-sample.wiki b/documentation/current/platform-specifics/microsoft-windows/net/samples/winform-samples/simple-hello-world-form-sample.wiki index e209d9cf..33d69629 100644 --- a/documentation/current/platform-specifics/microsoft-windows/net/samples/winform-samples/simple-hello-world-form-sample.wiki +++ b/documentation/current/platform-specifics/microsoft-windows/net/samples/winform-samples/simple-hello-world-form-sample.wiki @@ -25,12 +25,12 @@ After launching the application, you will see a window displayed with a similar The application shows how to display a Windows Form under the windows environment. The application inherits the FORM class, and just set the title with "Hello world" with the inherited feature set_title. - set_title (("Hello world").to_cil) + set_title (("Hello world").to_cil) The application is launched in a PROCESS with this command line: - feature {WINFORMS_APPLICATION}.run_form (Current). + feature {WINFORMS_APPLICATION}.run_form (Current). This sample contains the following classes: