mirror of
https://github.com/EiffelSoftware/eiffel-org.git
synced 2026-04-05 01:29:28 +02:00
Author:admin
Date:2008-09-17T13:53:28.000000Z git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@3 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
[[Property:title|Bmpview]]
|
||||
[[Property:weight|-15]]
|
||||
[[Image:bmpview|bmpview]] <br/>
|
||||
<br/>
|
||||
|
||||
==Compiling==
|
||||
|
||||
To compile the example:
|
||||
* Launch EiffelStudio.
|
||||
* Click '''Add project'''
|
||||
* Browse to ''$ISE_EIFFEL\examples\wel\bmpview\''.
|
||||
* Choose ''bmpview.ecf''
|
||||
* Choose the location where the project will be compiled, by default the same directory containing the configuration file.
|
||||
* Click '''OK'''.
|
||||
|
||||
==Running==
|
||||
After launching the program, a window will be displayed as illustrated above, although no child windows will be present. Selecting "Open" from the "File" menu will allow you to browse for a .BMP file to view. Multiple files may be opened and each opens in a new child window. The options on the "Window" menu provide features for positioning the child windows. Selecting "Close" will close the currently selected child window, while selecting "Exit" or closing the window manually will exit the program.
|
||||
==Under the Hood==
|
||||
<code>MAIN_WINDOW</code> inherits [[ref:libraries/wel/reference/wel_mdi_frame_window_chart|WEL_MDI_FRAME_WINDOW]] and redefines <code>on_menu_command</code> to handle the menu selections. <code>CHILD_WINDOW</code> inherits [[ref:libraries/wel/reference/wel_mdi_child_window_chart|WEL_MDI_CHILD_WINDOW]] and implements make to load a named bitmap, while <code>on_paint</code> has been redefined to re-draw the bitmap. A [[ref:libraries/wel/reference/wel_open_file_dialog_chart|WEL_OPEN_FILE_DIALOG]] is used to select files for viewing.
|
||||
This sample contains the following classes:
|
||||
* <code>BMP_VIEW</code>
|
||||
* <code>MAIN_WINDOW</code>
|
||||
* <code>CHILD_WINDOW</code>
|
||||
* <code>APPLICATION_IDS</code>
|
||||
|
||||
{{seealso| '''See Also''' <br/>
|
||||
[[WEL_OPEN_FILE_DIALOG|WEL_OPEN_FILE_DIALOG]] <br/>
|
||||
[[MDI (Multiple Document Interface)|Mdi sample]] }}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
[[Property:title|Brushes]]
|
||||
[[Property:weight|-14]]
|
||||
[[Image:brushes|brushes]] <br/>
|
||||
<br/>
|
||||
|
||||
==Compiling==
|
||||
|
||||
To compile the example:
|
||||
* Launch EiffelStudio.
|
||||
* Click '''Add project'''
|
||||
* Browse to ''$ISE_EIFFEL\examples\wel\brushes\''.
|
||||
* Choose ''brushes.ecf''
|
||||
* Choose the location where the project will be compiled, by default the same directory containing the configuration file.
|
||||
* Click '''OK'''.
|
||||
|
||||
==Running==
|
||||
After launching the program you will see a window displayed containing three push buttons marked "Brushes", "Rectangles" and "3D". Clicking "Brushes" will open a new window demonstrating different brushes available. Clicking "Rectangles" will open a new window within which many different shaped and colored rectangles will be drawn. Clicking"3D" will open a new window demonstrating the use of multiple bitmaps for animation.
|
||||
==Under the Hood==
|
||||
Each of the three windows that are opened from the programs <code>MAIN_WINDOW</code> inherit [[ref:libraries/wel/reference/wel_frame_window_chart|WEL_FRAME_WINDOW]] and contains code for generating their output. <code>BRUSHES_DEMO</code> redefines <code>idle_action</code> to force a re-draw on the applicable windows.
|
||||
{{note| '''Note'''. If <code>enable_idle_action</code> is not called, then <code> idle_action</code> is never executed. }}
|
||||
|
||||
This sample contains the following classes:
|
||||
* <code>APPLICATION_IDS</code>
|
||||
* <code>BRUSH_DEMO</code>
|
||||
* <code>BRUSHES_DEMO</code>
|
||||
* <code>DEMO_3D</code>
|
||||
* <code>MAIN_WINDOW</code>
|
||||
* <code>PROJECTION</code>
|
||||
* <code>RECTANGLE_DEMO</code>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
[[Property:title|Commands]]
|
||||
[[Property:weight|-12]]
|
||||
[[Image:commands|commands]] <br/>
|
||||
<br/>
|
||||
|
||||
==Compiling==
|
||||
|
||||
To compile the example:
|
||||
* Launch EiffelStudio.
|
||||
* Click '''Add project'''
|
||||
* Browse to ''$ISE_EIFFEL\examples\wel\commands\''.
|
||||
* Choose ''commands.ecf''
|
||||
* Choose the location where the project will be compiled, by default the same directory containing the configuration file.
|
||||
* Click '''OK'''.
|
||||
|
||||
==Running==
|
||||
After launching the program, you will see a window displayed with a similar appearance to the one illustrated above. Please follow the instructions displayed in the window.
|
||||
==Under the Hood==
|
||||
<code>MAIN_DIALOG</code> inherits [[ref:libraries/wel/reference/wel_main_dialog_chart|WEL_MAIN_DIALOG]] which provides the feature put_command, used to associate a [[ref:libraries/wel/reference/wel_command_chart|WEL_COMMAND]] to a Windows message received by the window. A [[ref:libraries/wel/reference/wel_command_chart|WEL_COMMAND]] contains a deferred feature, execute which is executed when the command is fired. <code>SHOW_COMMAND_INFORMATION</code>, <code>SHOW_MOUSE_BUTTON_INFORMATION</code> and <code>SHOW_MOVE_INFORMATION</code> all inherit [[ref:libraries/wel/reference/wel_command_chart|WEL_COMMAND]] .
|
||||
{{note| '''Note '''execute has an argument of type <code>ANY</code> which is used to pass any additional information required. }}
|
||||
|
||||
This sample contains the following classes:
|
||||
* <code>APPLICATION_IDS</code>
|
||||
* <code>COMMANDS_DEMO</code>
|
||||
* <code>MAIN_DIALOG</code>
|
||||
* <code>SHOW_COMMAND_INFORMATION</code>
|
||||
* <code>SHOW_MOUSE_BUTTON_INFORMATION</code>
|
||||
* <code>SHOW_MOVE_INFORMATION</code>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
[[Property:title|Common Controls]]
|
||||
[[Property:weight|-13]]
|
||||
[[Image:comctrls|comctrls]] <br/>
|
||||
<br/>
|
||||
|
||||
==Compiling==
|
||||
|
||||
To compile the example:
|
||||
* Launch EiffelStudio.
|
||||
* Click '''Add project'''
|
||||
* Browse to ''$ISE_EIFFEL\examples\wel\comctrls\''.
|
||||
* Choose ''comctrls.ecf''
|
||||
* Choose the location where the project will be compiled, by default the same directory containing the configuration file. If you select another directory than the default one, please copy icons (*.ico) and resource files (*.rc) from the default directory (the one containing the ecf file) to the new one.
|
||||
* Click '''OK'''.
|
||||
|
||||
==Running==
|
||||
|
||||
After launching the program, a window will be displayed as illustrated above. Selecting "Progress bar demonstration" from the "File" menu will update the progress bar to a full state. Leaving the mouse stationary above the track bar, progress bar or toolbar buttons will cause a tooltip control to be displayed.
|
||||
|
||||
==Under the Hood==
|
||||
|
||||
There is one [[ref:libraries/wel/reference/wel_tooltip_chart|WEL_TOOLTIP]] used for all the controls, but each control adds a new [[ref:libraries/wel/reference/wel_tool_info_chart|WEL_TOOL_INFO]] to provide different output for each control. The feature <code>on_notify</code> has been redefined to handle the Ttn_needtext notification which is posted by a control, and received by the controls parent, when a control needs to display a tooltip. The feature <code>on_menu_select</code> has been redefined to output the text of the selected menu item in the [[ref:libraries/wel/reference/wel_status_window_chart|WEL_STATUS_WINDOW]] located at the bottom of <code>MAIN_WINDOW</code>.
|
||||
This sample contains the following classes:
|
||||
* <code>APPLICATION_IDS</code>
|
||||
* <code>MAIN_WINDOW</code>
|
||||
* <code>COMCTRLS_DEMO</code>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
[[Property:title|Wel Sample: Controls]]
|
||||
[[Property:link_title|Controls Sample]]
|
||||
[[Property:weight|-11]]
|
||||
[[Image:controls|controls]] <br/>
|
||||
<br/>
|
||||
|
||||
==Compiling==
|
||||
|
||||
To compile the example:
|
||||
* Launch EiffelStudio.
|
||||
* Click '''Add project'''
|
||||
* Browse to ''$ISE_EIFFEL\examples\wel\controls\''.
|
||||
* Choose ''controls.ecf''
|
||||
* Choose the location where the project will be compiled, by default the same directory containing the configuration file.
|
||||
* Click '''OK'''.
|
||||
|
||||
==Running==
|
||||
|
||||
After launching the program, an empty window will be displayed. There are numerous menus in the window, each relating to a different type of [[Controls|control]] . Each menu has "Create" and "Delete" along with a other options specific to each control. By selecting these menu options, controls will be created and modified as demonstrated in the above illustration.
|
||||
|
||||
==Under the Hood==
|
||||
|
||||
Each menu is an instance of [[ref:libraries/wel/reference/wel_menu_chart|WEL_MENU]] and on_menu_command has been redefined in <code>MAIN_WINDOW</code> to perform the appropriate actions.
|
||||
This sample contains the following classes:
|
||||
* <code>APPLICATION_IDS</code>
|
||||
* <code>CONTROLS</code>
|
||||
* <code>MAIN_WINDOW</code>
|
||||
|
||||
{{seealso| '''See Also''' <br/>
|
||||
[[WEL_LIST_VIEW|WEL_LIST_VIEW]] <br/>
|
||||
[[ref:/libraries/wel/reference/wel_combo_box_chart|WEL_COMBO_BOX]] <br/>
|
||||
[[WEL_PUSH_BUTTON|WEL_PUSH_BUTTON]] <br/>
|
||||
[[ref:/libraries/wel/reference/wel_edit_chart|WEL_EDIT]] <br/>
|
||||
[[WEL_RADIO_BUTTON|WEL_RADIO_BUTTON]] <br/>
|
||||
[[WEL_PUSH_BUTTON|WEL_CHECK_BUTTON]] <br/>
|
||||
[[WEL_MULTIPLE_LINE_EDIT|WEL_MULTIPLE_LINE_EDIT]] <br/>
|
||||
[[WEL_SCROLL_BAR|WEL_SCROLL_BAR]] }}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
[[Property:title|Ctlcolor]]
|
||||
[[Property:weight|-10]]
|
||||
[[Image:ctlcolor|ctlcolor]] <br/>
|
||||
<br/>
|
||||
|
||||
==Compiling==
|
||||
|
||||
To compile the example:
|
||||
* Launch EiffelStudio.
|
||||
* Click '''Add project'''
|
||||
* Browse to ''$ISE_EIFFEL\examples\wel\ctlcolor\''.
|
||||
* Choose ''ctlcolor.ecf''
|
||||
* Choose the location where the project will be compiled, by default the same directory containing the configuration file.
|
||||
* Click '''OK'''.
|
||||
|
||||
==Running==
|
||||
|
||||
After launching the program, you will see a window displayed as above. Clicking on the "Foreground color" button will display a color dialog which allows you to select a new foreground color for the controls. Clicking on the "Background color" button will display a color dialog which allows you to select a new background color for the controls.
|
||||
|
||||
==Under the Hood==
|
||||
|
||||
A [[ref:libraries/wel/reference/wel_color_control_chart|WEL_COLOR_CONTROL]] is used to retrieve the color selection of the user through the feature rgb_result which returns an object of type [[ref:libraries/wel/reference/wel_color_ref_chart|WEL_COLOR_REF]] .
|
||||
|
||||
This sample contains the following classes:
|
||||
* <code>CTLCOLOR_DEMO</code>
|
||||
* <code>MAIN_WINDOW</code>
|
||||
* <code>MY_BUTTON</code>
|
||||
* <code>PRECOMP_MAIN_WINDOW</code>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
[[Property:title|Cursors]]
|
||||
[[Property:weight|-9]]
|
||||
[[Image:cursors|cursors]] <br/>
|
||||
<br/>
|
||||
|
||||
==Compiling==
|
||||
|
||||
To compile the example:
|
||||
* Launch EiffelStudio.
|
||||
* Click '''Add project'''
|
||||
* Browse to ''$ISE_EIFFEL\examples\wel\cursors\''.
|
||||
* Choose ''cursors.ecf''
|
||||
* Choose the location where the project will be compiled, by default the same directory containing the configuration file.
|
||||
* Click '''OK'''.
|
||||
|
||||
==Running==
|
||||
|
||||
After launching the program, a window will be displayed as illustrated above. Selecting one of the cursor types from the "Cursors" menu will cause the selected cursor to be displayed when the mouse pointer is over the client area of the window.
|
||||
|
||||
==Under the Hood==
|
||||
|
||||
The feature <code>on_menu_command</code> has been redefined in <code>MAIN_WINDOW</code> to create the appropriate cursor when a menu selection is made, while <code>on_set_cursor</code> has been redefined to update the style of the displayed cursor.
|
||||
|
||||
This sample contains the following classes:
|
||||
* <code>CURSORS_DEMO</code>
|
||||
* <code>MAIN_WINDOW</code>
|
||||
* <code>APPLICATION_IDS</code>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
[[Property:title|Disk Space]]
|
||||
[[Property:weight|-8]]
|
||||
[[Image:diskspace|diskspace]] <br/>
|
||||
<br/>
|
||||
|
||||
==Compiling==
|
||||
|
||||
To compile the example:
|
||||
* Launch EiffelStudio.
|
||||
* Click '''Add project'''
|
||||
* Browse to ''$ISE_EIFFEL\examples\wel\diskspace\''.
|
||||
* Choose ''diskspace.ecf''
|
||||
* Choose the location where the project will be compiled, by default the same directory containing the configuration file.
|
||||
* Click '''OK'''.
|
||||
|
||||
==Running==
|
||||
|
||||
After launching the application, you will see text output showing the size and amount of free space available on each of your local drives.
|
||||
|
||||
==Under the Hood==
|
||||
|
||||
<code>DISCSPACE_DEMO</code> contains a once feature, diskspace which returns an instance of [[ref:libraries/wel/reference/wel_disk_space_chart|WEL_DISK_SPACE]] , used to query the local drives.
|
||||
|
||||
This sample contains only one class:
|
||||
* <code>DISKSPACE_DEMO</code>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
[[Property:title|Fontenum]]
|
||||
[[Property:weight|-7]]
|
||||
[[Image:fontenum|fontenum]] <br/>
|
||||
<br/>
|
||||
|
||||
==Compiling==
|
||||
|
||||
To compile the example:
|
||||
* Launch EiffelStudio.
|
||||
* Click '''Add project'''
|
||||
* Browse to ''$ISE_EIFFEL\examples\wel\fontenum\''.
|
||||
* Choose ''fontenum.ecf''
|
||||
* Choose the location where the project will be compiled, by default the same directory containing the configuration file. If you select another directory than the default one, please copy icons (*.ico) and resource files (*.rc) from the default directory (the one containing the ecf file) to the new one.
|
||||
* Click '''OK'''.
|
||||
|
||||
==Running==
|
||||
|
||||
After launching the program, a window will be displayed as illustrated above. Selecting one of the available fonts (Listed on the left hand side) will cause a sample text to be displayed in the currently entered font size. Clicking the button marked "Close" will cause the program to end.
|
||||
|
||||
==Under the Hood==
|
||||
|
||||
<code>MAIN_DIALOG</code> inherits from [[ref:libraries/wel/reference/wel_main_dialog_chart|WEL_MAIN_DIALOG]] and also WEL_FONT_FAMILY_ENUMERATOR. <code>MAIN_DIALOG</code> implements action which was deferred from WEL_FONT_ENUMERATOR and executed every an enumeration finds a new font. This new implementation is used to display the available fonts in the [[ref:libraries/wel/reference/wel_list_view_chart|WEL_LIST_VIEW]]
|
||||
|
||||
This sample contains the following classes:
|
||||
* <code>APPLICATION_IDS</code>
|
||||
* <code>FONTENUM_DEMO</code>
|
||||
* <code>MAIN_DIALOG</code>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
[[Property:title|Fun]]
|
||||
[[Property:weight|-6]]
|
||||
[[Image:fun|fun]] <br/>
|
||||
<br/>
|
||||
|
||||
==Compiling==
|
||||
|
||||
To compile the example:
|
||||
* Launch EiffelStudio.
|
||||
* Click '''Add project'''
|
||||
* Browse to ''$ISE_EIFFEL\examples\wel\fun\''.
|
||||
* Choose ''fun.ecf''
|
||||
* Choose the location where the project will be compiled, by default the same directory containing the configuration file.
|
||||
* Click '''OK'''.
|
||||
|
||||
==Running==
|
||||
After launching the program, a window will be displayed as illustrated above. Clicking the push button marked "Maze" will open a new window and draw a maze within this window. Clicking the push button marked "Artist" will open a new window, and display output dependent on the movement of the mouse pointer within the client area of that window. Clicking the push button marked "Fun" will open a new window which contains a fake error message and a close push button which moves when you try to move the mouse pointer over it.
|
||||
==Under the Hood==
|
||||
Both <code>FUN_DIALOG</code> and <code>ARTIST</code> redefine <code>on_mouse_move</code> to track the actions of the mouse pointer and respond accordingly.
|
||||
This sample contains the following classes:
|
||||
* <code>APPLICATION_IDS</code>
|
||||
* <code>ARTIST</code>
|
||||
* <code>FUN_DEMO</code>
|
||||
* <code>FUN_DIALOG</code>
|
||||
* <code>MAIN_WINDOW</code>
|
||||
* <code>MAZE</code>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
[[Property:title|Header Control]]
|
||||
[[Property:weight|-5]]
|
||||
[[Image:header-ctrl|header_ctrl]] <br/>
|
||||
<br/>
|
||||
|
||||
==Compiling==
|
||||
|
||||
To compile the example:
|
||||
* Launch EiffelStudio.
|
||||
* Click '''Add project'''
|
||||
* Browse to ''$ISE_EIFFEL\examples\wel\header_ctrl\''.
|
||||
* Choose ''header_ctrl.ecf''
|
||||
* Choose the location where the project will be compiled, by default the same directory containing the configuration file. If you select another directory than the default one, please copy icons (*.ico) and resource files (*.rc) from the default directory (the one containing the ecf file) to the new one.
|
||||
* Click '''OK'''.
|
||||
|
||||
==Running==
|
||||
|
||||
After launching the program, a window will be displayed as shown above. By manipulating the header control, you will see notification of the events that occur displayed in the [[ref:libraries/wel/reference/wel_list_view_chart|WEL_LIST_VIEW]] situated below.
|
||||
|
||||
==Under the Hood==
|
||||
|
||||
<code>HEADER_CONTROL</code> inherits [[ref:libraries/wel/reference/wel_header_control_chart|WEL_HEADER_CONTROL]] and redefines many of the `on_' notification features to display the output.
|
||||
|
||||
This sample contains the following classes:
|
||||
* <code>APPLICATION_IDS</code>
|
||||
* <code>HEADER_CONTROL</code>
|
||||
* <code>HEADER_CONTROL_DEMO</code>
|
||||
* <code>MAIN_WINDOW</code>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
[[Property:title|Hello World]]
|
||||
[[Property:link_title|Hello World!]]
|
||||
[[Property:weight|-4]]
|
||||
[[Image:hello|hello]] <br/>
|
||||
<br/>
|
||||
|
||||
==Compiling==
|
||||
|
||||
To compile the example:
|
||||
* Launch EiffelStudio.
|
||||
* Click '''Add project'''
|
||||
* Browse to ''$ISE_EIFFEL\examples\wel\hello\''.
|
||||
* Choose ''hello.ecf''
|
||||
* Choose the location where the project will be compiled, by default the same directory containing the configuration file.
|
||||
* Click '''OK'''.
|
||||
|
||||
==Running==
|
||||
|
||||
After you launch the sample, You should see a window displayed as illustrated above. You will have full control over the window, and the program will quit when you close the window.
|
||||
|
||||
==Under the Hood==
|
||||
|
||||
MAIN_WINDOW inherits WEL_FRAME_WINDOW. In this example, we have redefined on_paint as shown below:
|
||||
<code>
|
||||
on_paint (paint_dc: WEL_PAINT_DC; invalid_rect: WEL_RECT) is
|
||||
--Draw a centered text
|
||||
is
|
||||
paint_dc.draw_centered_text("Hello, World!", client_rect)
|
||||
end
|
||||
</code>
|
||||
|
||||
{{note| '''Note:''' If you look at MAIN_WINDOW, you will see that it contains many features. However, nearly all of these are features are inherited from WEL_FRAME_WINDOW. }}
|
||||
|
||||
This sample contains the following classes:
|
||||
* HELLO_DEMO
|
||||
* MAIN_WINDOW
|
||||
|
||||
|
||||
{{seealso| '''See Also''' <br/>
|
||||
[[Tutorial Step 3|Tutorial Step3]] <br/>
|
||||
[[Common message hooks|Common message hooks]] }}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
[[Property:title|WEL Samples]]
|
||||
[[Property:weight|4]]
|
||||
There are a large number of samples provided with the WEL library, each designed to demonstrate different functionality. The samples available are listed below:
|
||||
* [[Tutorial|Tutorial]]
|
||||
{{note| '''Note''': If you are new to WEL programming, this is the recommended place to start. }}
|
||||
** [[Tutorial Step 1|Step1]]
|
||||
** [[Tutorial Step 2|Step2]]
|
||||
** [[Tutorial Step 3|Step3]]
|
||||
** [[Tutorial Step 4|Step4]]
|
||||
** [[Tutorial Step 5|Step5]]
|
||||
** [[Tutorial Step 6|Step6]]
|
||||
** [[Tutorial Step 7|Step7]]
|
||||
** [[Tutorial Step 8|Step8]]
|
||||
|
||||
* [[Hello World|Hello]]
|
||||
* [[Bmpview|Bmpview]]
|
||||
* [[Brushes|Brushes]]
|
||||
* [[Common Controls|Comctrls]]
|
||||
* [[Commands|Commands]]
|
||||
* [[Wel Sample: Controls|Controls]]
|
||||
* [[Ctlcolor|Ctlcolor]]
|
||||
* [[Cursors|Cursors]]
|
||||
* [[Disk Space|Diskspace]]
|
||||
* [[Fontenum|Fontenum]]
|
||||
* [[Fun|Fun]]
|
||||
* [[Header Control|Header_ctrl]]
|
||||
* [[List View|List_view]]
|
||||
* [[Magnify|Magnify]]
|
||||
* [[MDI (Multiple Document Interface)|Mdi]]
|
||||
* [[Wel Sample: Menus|Menus]]
|
||||
* [[Minimal|Minimal]]
|
||||
* [[Pizza|Pizza]]
|
||||
* [[Printer|Printer]]
|
||||
* [[Rich Edit|Richedit]]
|
||||
* [[Split Area|Split Area]]
|
||||
* [[Wel Sample: Standard Dialogs|Stddlgs]]
|
||||
* [[Timer|Timer]]
|
||||
* [[Wel Sample: Tree View|Tree_view]]
|
||||
* [[Wel Sample: Windows|Windows]]
|
||||
* [[Xcell|Xcell]]
|
||||
* [[XY Co-ordinates|Xy]]
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
[[Property:title|List View]]
|
||||
[[Property:weight|-3]]
|
||||
[[Image:list-view|list_view]] <br/>
|
||||
<br/>
|
||||
|
||||
==Compiling==
|
||||
|
||||
To compile the example:
|
||||
* Launch EiffelStudio.
|
||||
* Click '''Add project'''
|
||||
* Browse to ''$ISE_EIFFEL\examples\wel\list_view\''.
|
||||
* Choose ''list_view.ecf''
|
||||
* Choose the location where the project will be compiled, by default the same directory containing the configuration file.
|
||||
* Click '''OK'''.
|
||||
|
||||
==Running==
|
||||
After launching the program, a window will be displayed containing a pair of [[ref:libraries/wel/reference/wel_list_view_chart|WEL_LIST_VIEW]] . Clicking the button marked "style" will modify the style of the lower list view. If you click the mouse within this lower list view, you will see notification of events appearing in the upper list view.
|
||||
==Under the Hood==
|
||||
|
||||
<code>LISTVIEW_DEMO</code> redefines <code>init_application</code> in order to load the [[ref:libraries/wel/reference/wel_common_controls_dll_chart|WEL_COMMON_CONTROLS_DLL]] and the [[ref:libraries/wel/reference/wel_rich_edit_dll_chart|WEL_RICH_EDIT_DLL]] .
|
||||
|
||||
<code>LISTVIEW</code> redefines many of the `on_' features inherited from [[ref:libraries/wel/reference/wel_list_view_chart|WEL_LIST_VIEW]] in order to generate output for the user.
|
||||
|
||||
The style of the <code>LISTVIEW_DEMO</code> is changed by calling <code>set_style</code> with the required new style.
|
||||
|
||||
This sample contains the following classes:
|
||||
* <code>LISTVIEW</code>
|
||||
* <code>MAIN_WINDOW</code>
|
||||
* <code>LISTVIEW_DEMO</code>
|
||||
* <code>APPLICATION_IDS</code>
|
||||
|
||||
{{seealso| '''See Also''' <br/>
|
||||
WEL_LIST_VIEW }}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
[[Property:title|Magnify]]
|
||||
[[Property:weight|-2]]
|
||||
[[Image:magnify|MAGNIFY]] <br/>
|
||||
<br/>
|
||||
|
||||
==Compiling==
|
||||
|
||||
To compile the example:
|
||||
* Launch EiffelStudio.
|
||||
* Click '''Add project'''
|
||||
* Browse to ''$ISE_EIFFEL\examples\wel\magnify\''.
|
||||
* Choose ''magnify.ecf''
|
||||
* Choose the location where the project will be compiled, by default the same directory containing the configuration file.
|
||||
* Click '''OK'''.
|
||||
|
||||
==Running==
|
||||
After launching the application, you will see a window displayed with a similar appearance to the one above. Selecting "Quick reference..." from the "Help" menu will display the full instructions for using this application.
|
||||
==Under the Hood==
|
||||
|
||||
In order to be able to control the output of the sample, <code>MAIN_WINDOW</code> redefines many features from [[ref:libraries/wel/reference/wel_frame_window_chart|WEL_FRAME_WINDOW]] . The feature <code>draw_zoom_rectangle</code> is used to display the output and <code>on_menu_command</code> handles the notifications sent to the window when a <code>menu_selection</code> has been made.
|
||||
|
||||
This sample contains the following classes:
|
||||
* <code>APPLICATION_IDS</code>
|
||||
* <code>MAIN_WINDOW</code>
|
||||
* <code>MAGNIFY_DEMO</code>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
[[Property:title|MDI (Multiple Document Interface)]]
|
||||
[[Property:weight|-1]]
|
||||
[[Image:mdi--mdi|mdi]] <br/>
|
||||
<br/>
|
||||
|
||||
==Compiling==
|
||||
|
||||
To compile the example:
|
||||
* Launch EiffelStudio.
|
||||
* Click '''Add project'''
|
||||
* Browse to ''$ISE_EIFFEL\examples\wel\mdi\''.
|
||||
* Choose ''mdi.ecf''
|
||||
* Choose the location where the project will be compiled, by default the same directory containing the configuration file.
|
||||
* Click '''OK'''.
|
||||
|
||||
==Running==
|
||||
After launching the program, a window will be displayed as illustrated above. Selecting "New" from the "File" menu will create a new child window, while selecting "Close" will close the currently selected child window. The options available on the "Window" menu allow positioning of the child windows. Selecting "Exit" from the "File" menu or closing the window manually will exit the program.
|
||||
==Under the Hood==
|
||||
<code>MAIN_WINDOW</code> inherits [[ref:libraries/wel/reference/wel_mdi_frame_window_chart|WEL_MDI_FRAME_WINDOW]] to provide the multiple document interface behavior while each child window is of type [[ref:libraries/wel/reference/wel_mdi_child_window_chart|WEL_MDI_CHILD_WINDOW]] . When "Close" is selected from the "File" menu, the feature <code>active_window</code> from [[ref:libraries/wel/reference/wel_mdi_frame_window_chart|WEL_MDI_FRAME_WINDOW]] is used to select the window that must be closed.
|
||||
This sample contains the following classes:
|
||||
* <code>APPLICATION_IDS</code>
|
||||
* <code>MAIN_WINDOW</code>
|
||||
* <code>MDI_DEMO</code>
|
||||
|
||||
{{seealso| '''See Also''' <br/>
|
||||
[[Bmpview|Bmpview]] }}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
[[Property:title|Minimal]]
|
||||
[[Property:weight|1]]
|
||||
[[Image:minimal|minimal]] <br/>
|
||||
<br/>
|
||||
|
||||
==Compiling==
|
||||
|
||||
To compile the example:
|
||||
* Launch EiffelStudio.
|
||||
* Click '''Add project'''
|
||||
* Browse to ''$ISE_EIFFEL\examples\wel\minimal\''.
|
||||
* Choose ''minimal.ecf''
|
||||
* Choose the location where the project will be compiled, by default the same directory containing the configuration file.
|
||||
* Click '''OK'''.
|
||||
|
||||
==Running==
|
||||
After launching the program, a window will be displayed as illustrated above. There is no other functionality, but clicking on the close icon (Cross in top right hand corner), will close the window.
|
||||
==Under the Hood==
|
||||
<code>MINIMAL_DEMO</code> inherits [[ref:libraries/wel/reference/wel_application_chart|WEL_APPLICATION]] and redefines <code>main_window</code> in order to display a [[ref:libraries/wel/reference/wel_frame_window_chart|WEL_FRAME_WINDOW]] .
|
||||
This sample contains only one class:
|
||||
* <code>MINIMAL_DEMO</code>
|
||||
|
||||
|
||||
{{seealso| '''See Also''' <br/>
|
||||
[[Tutorial Step 1|tutorial step 1]] <br/>
|
||||
[[ref:/libraries/wel/reference/wel_frame_window_chart|WEL_FRAME_WINDOW]] }}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
[[Property:title|Pizza]]
|
||||
[[Property:weight|2]]
|
||||
=Pizza Sample=
|
||||
[[Image:pizza|pizza]] <br/>
|
||||
<br/>
|
||||
|
||||
==Compiling==
|
||||
|
||||
To compile the example:
|
||||
* Launch EiffelStudio.
|
||||
* Click '''Add project'''
|
||||
* Browse to ''$ISE_EIFFEL\examples\wel\pizza\''.
|
||||
* Choose ''pizza.ecf''
|
||||
* Choose the location where the project will be compiled, by default the same directory containing the configuration file.
|
||||
* Click '''OK'''.
|
||||
|
||||
==Running==
|
||||
|
||||
After launching the program, a window will be displayed titled "WEL Pizza" If you select "Order" from the "Pizza" menu, a new window will appear (Illustrated above), which allows you to enter details of a new pizza order. When the order is completed, clicking the "ok" button will display the details of the order that was entered. Selecting "Exit from the "Pizza" menu or closing the original window will exit the program.
|
||||
|
||||
==Under the Hood==
|
||||
<code>MAIN_WINDOW</code> inherits [[ref:libraries/wel/reference/wel_frame_window_chart|WEL_FRAME_WINDOW]] while <code>DIALOG</code> inherits [[ref:libraries/wel/reference/wel_modal_dialog_chart|WEL_MODAL_DIALOG]] . <code>DIALOG</code> demonstrates the use of a selection of common controls to build a custom user interface.
|
||||
This sample contains the following classes:
|
||||
* <code>APPLICATION_IDS</code>
|
||||
* <code>DIALOG</code>
|
||||
* <code>MAIN_WINDOW</code>
|
||||
* <code>PIZZA_DEMO</code>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
[[Property:title|Printer]]
|
||||
[[Property:weight|3]]
|
||||
[[Image:printer|printer]] <br/>
|
||||
<br/>
|
||||
|
||||
==Compiling==
|
||||
|
||||
To compile the example:
|
||||
* Launch EiffelStudio.
|
||||
* Click '''Add project'''
|
||||
* Browse to ''$ISE_EIFFEL\examples\wel\printer\''.
|
||||
* Choose ''printer.ecf''
|
||||
* Choose the location where the project will be compiled, by default the same directory containing the configuration file.
|
||||
* Click '''OK'''.
|
||||
|
||||
==Running==
|
||||
|
||||
After launching the program, a window will be displayed as illustrated above. Selecting "Print" from the "File" menu will open a print dialog which will allow you to specify a printer and additional print information before printing the contents of the window.
|
||||
|
||||
==Under the Hood==
|
||||
<code>MAIN_WINDOW</code> inherits [[ref:libraries/wel/reference/wel_frame_window_chart|WEL_FRAME_WINDOW]] and the feature <code>on_paint</code> has been redefined to display the output in the client area. A [[WEL_PRINT_DIALOG|WEL_PRINT_DIALOG]] is used to retrieve the print options before the printing occurs through the interface provided by a [[ref:libraries/wel/reference/wel_printer_dc_chart|WEL_PRINTER_DC]] .
|
||||
This sample contains the following classes:
|
||||
* <code>APPLICATION_IDS</code>
|
||||
* <code>MAIN_WINDOW</code>
|
||||
* <code>PRINTER_DEMO</code>
|
||||
|
||||
{{seealso| '''See Also''' <br/>
|
||||
[[WEL_PRINT_DIALOG|WEL_PRINT_DIALOG]] }}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
[[Property:title|Rich Edit]]
|
||||
[[Property:weight|4]]
|
||||
[[Image:richedit|richedit]] <br/>
|
||||
<br/>
|
||||
|
||||
==Compiling==
|
||||
|
||||
To compile the example:
|
||||
* Launch EiffelStudio.
|
||||
* Click '''Add project'''
|
||||
* Browse to ''$ISE_EIFFEL\examples\wel\richedit\''.
|
||||
* Choose ''richedit.ecf''
|
||||
* Choose the location where the project will be compiled, by default the same directory containing the configuration file.
|
||||
* Click '''OK'''.
|
||||
|
||||
==Running==
|
||||
|
||||
After launching the program, a window will be displayed as shown above. The program is a simple text editor which allows you to load and save files; select fonts and colors; and print files. The operations are accessible through the menu bar and/or the tool bar.
|
||||
|
||||
==Under the Hood==
|
||||
|
||||
Both the menu items and the tool bar buttons are handled by on_menu_command which has been redefined in MAIN_WINDOW.
|
||||
|
||||
Four of the [[Standard Dialogs|standard dialogs]] provided by WEL are used to receive input from the user.
|
||||
This sample contains the following classes:
|
||||
* APPLICATION_IDS
|
||||
* MAIN_WINDOW
|
||||
* RICHEDIT_DEMO
|
||||
|
||||
{{seealso| '''See Also''' <br/>
|
||||
[[ref:/libraries/wel/reference/wel_rich_edit_chart|WEL_RICH_EDIT]] <br/>
|
||||
[[WEL_PRINT_DIALOG|WEL_PRINT_DIALOG]] <br/>
|
||||
[[WEL_SAVE_FILE_DIALOG|WEL_SAVE_FILE_DIALOG]] <br/>
|
||||
[[WEL_OPEN_FILE_DIALOG|WEL_OPEN_FILE_DIALOG]] <br/>
|
||||
[[WEL_CHOOSE_COLOR_DIALOG|WEL_CHOOSE_COLOR_DIALOG]] <br/>
|
||||
[[WEL_CHOOSE_FONT_DIALOG|WEL_CHOOSE_FONT_DIALOG]] }}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
[[Property:title|Split Area]]
|
||||
[[Property:weight|5]]
|
||||
[[Image:splitarea|splitarea]] <br/>
|
||||
<br/>
|
||||
|
||||
==Compiling==
|
||||
|
||||
To compile the example:
|
||||
* Launch EiffelStudio.
|
||||
* Click '''Add project'''
|
||||
* Browse to ''$ISE_EIFFEL\examples\wel\splitarea\''.
|
||||
* Choose ''split_area.ecf''
|
||||
* Choose the location where the project will be compiled, by default the same directory containing the configuration file.
|
||||
* Click '''OK'''.
|
||||
|
||||
==Running==
|
||||
After launching the program, a window will be displayed containing a pair of [[ref:libraries/wel/reference/wel_rich_edit_chart|WEL_RICH_EDIT]] in a split area. Clicking the mouse on the split area (between the two rich edits) and dragging the mouse, will adjust the split area and its content accordingly.
|
||||
==Under the Hood==
|
||||
|
||||
There is no split area class provided with WEL, but <code>WEL_SPLIT_AREA</code> was created for this sample to illustrate how new controls can be built when required. Redefining some of the `on_' features inherited from [[ref:libraries/wel/reference/wel_window_chart|WEL_WINDOW]] in <code>WEL_SPLIT_AREA</code> shows how the control over the contents of the split area is achieved.
|
||||
|
||||
This sample contains the following classes:
|
||||
* <code>APPLICATION</code>
|
||||
* <code>SPLIT_AREA_DEMO</code>
|
||||
* <code>WEL_SPLIT_AREA</code>
|
||||
|
||||
|
||||
{{seealso| '''See Also''' <br/>
|
||||
[[ref:/libraries/wel/reference/wel_rich_edit_chart|WEL_RICH_EDIT]] }}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
[[Property:title|Wel Sample: Standard Dialogs]]
|
||||
[[Property:link_title|Standard Dialogs Sample]]
|
||||
[[Property:weight|6]]
|
||||
[[Image:stddlgs|stddlgs]] <br/>
|
||||
<br/>
|
||||
|
||||
==Compiling==
|
||||
|
||||
To compile the example:
|
||||
* Launch EiffelStudio.
|
||||
* Click '''Add project'''
|
||||
* Browse to ''$ISE_EIFFEL\examples\wel\stddlgs\''.
|
||||
* Choose ''stddlgs.ecf''
|
||||
* Choose the location where the project will be compiled, by default the same directory containing the configuration file.
|
||||
* Click '''OK'''.
|
||||
|
||||
==Running==
|
||||
After launching the program, a window will displayed with a menu allowing you to select some of the standard dialogs provided by WEL.
|
||||
==Under the Hood==
|
||||
<code>on_menu_command</code> has been redefined in <code>MAIN_WINDOW</code> to display a different standard dialog when each of the menu items is selected.
|
||||
This sample contains the following classes:
|
||||
* <code>APPLICATION_IDS</code>
|
||||
* <code>MAIN_WINDOW</code>
|
||||
* <code>STDDLG_DEMO</code>
|
||||
|
||||
{{seealso| '''See Also''' <br/>
|
||||
[[WEL_OPEN_FILE_DIALOG|WEL_OPEN_FILE_DIALOG]] <br/>
|
||||
[[WEL_CHOOSE_FONT_DIALOG|WEL_CHOOSE_FONT_DIALOG]] <br/>
|
||||
[[WEL_CHOOSE_COLOR_DIALOG|WEL_CHOOSE_COLOR_DIALOG]] <br/>
|
||||
[[WEL_PRINT_DIALOG|WEL_PRINT_DIALOG]] }}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
[[Property:title|Timer]]
|
||||
[[Property:weight|7]]
|
||||
[[Image:timer|timer]] <br/>
|
||||
<br/>
|
||||
|
||||
==Compiling==
|
||||
|
||||
To compile the example:
|
||||
* Launch EiffelStudio.
|
||||
* Click '''Add project'''
|
||||
* Browse to ''$ISE_EIFFEL\examples\wel\timer\''.
|
||||
* Choose ''timer.ecf''
|
||||
* Choose the location where the project will be compiled, by default the same directory containing the configuration file.
|
||||
* Click '''OK'''.
|
||||
|
||||
==Running==
|
||||
After launching the program, a window will be displayed as illustrated above. Clicking on any of the push buttons marked "Start Timer" will start a timer running, and the hatched area immediately above the push button will change its appearance to reflect the interval of the timer.
|
||||
==Under the Hood==
|
||||
A [[ref:libraries/wel/reference/wel_window_chart|WEL_WINDOW]] supports multiple timers, set by set_timer which takes a unique id for each timer. The <code>on_timer</code> feature is called every time a timer interval is reached with an argument corresponding to the <code>id</code> of the timer. Within <code>MAIN_WINDOW</code>, <code>on_timer</code> has been redefined to update the appearance of the hatched areas.
|
||||
This sample contains the following classes:
|
||||
* <code>APPLICATION_IDS</code>
|
||||
* <code>MAIN_WINDOW</code>
|
||||
* <code>TIMER</code>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
[[Property:title|Wel Sample: Tree View]]
|
||||
[[Property:link_title|Tree View Sample]]
|
||||
[[Property:weight|8]]
|
||||
[[Image:tree-view--tree-view|tree_view]] <br/>
|
||||
<br/>
|
||||
|
||||
==Compiling==
|
||||
|
||||
To compile the example:
|
||||
* Launch EiffelStudio.
|
||||
* Click '''Add project'''
|
||||
* Browse to ''$ISE_EIFFEL\examples\wel\tree_view\''.
|
||||
* Choose ''tree_view.ecf''
|
||||
* Choose the location where the project will be compiled, by default the same directory containing the configuration file.
|
||||
* Click '''OK'''.
|
||||
|
||||
==Running==
|
||||
|
||||
After launching the program, a window will be displayed as illustrated above. Selecting or expanding one of the tree items will cause notification to be displayed in the list at the top of the window. Various other notifications are also displayed, such as pressing a key in the tree.
|
||||
|
||||
==Under the Hood==
|
||||
|
||||
<code>TREEVIEW</code> inherits [[ref:libraries/wel/reference/wel_tree_view_chart|WEL_TREE_VIEW]] and redefines make to initialize items within the tree. A [[ref:libraries/wel/reference/wel_tree_view_insert_struct_chart|WEL_TREE_VIEW_INSERT_STRUCT]] is used to insert each [[ref:libraries/wel/reference/wel_tree_view_item_chart|WEL_TREE_VIEW_ITEM]] while a [[ref:libraries/wel/reference/wel_image_list_chart|WEL_IMAGE_LIST]] is used to reference images within the tree.
|
||||
This sample contains the following classes:
|
||||
* <code>TREEVIEW</code>
|
||||
* <code>MAIN_WINDOW</code>
|
||||
* <code>TREEVIEW_DEMO</code>
|
||||
* <code>APPLICATION_IDS</code>
|
||||
|
||||
{{seealso| '''See Also''' <br/>
|
||||
[[ref:/libraries/wel/reference/wel_tree_view_chart|WEL_TREE_VIEW]] }}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
[[Property:title|Wel Sample: Unicode]]
|
||||
[[Property:link_title|Unicode Sample]]
|
||||
[[Property:weight|9]]
|
||||
[[Image:unicode|unicode]] <br/>
|
||||
<br/>
|
||||
|
||||
==Requirements==
|
||||
|
||||
This sample demonstrates Unicode compatibility. It therefore assumes a fully Unicode compatible operating system and recommends the system has more than one input locale installed. The system used to generate the above screenshot shows the sample running on Windows 2000 with the Korean IME installed. Since Windows 95/98/Me does not provide full built-in support for Unicode please refer to "Compiling WEL for Unicode on Windows 95/98/Me" before attempting to run this example.
|
||||
|
||||
==Compiling==
|
||||
|
||||
To compile the example:
|
||||
* Launch EiffelStudio.
|
||||
* Click '''Add project'''
|
||||
* Browse to ''$ISE_EIFFEL\examples\wel\unicode\''.
|
||||
* Choose ''unicode.ecf''
|
||||
* Choose the location where the project will be compiled, by default the same directory containing the configuration file.
|
||||
* Click '''OK'''.
|
||||
|
||||
==Running==
|
||||
|
||||
After launching the program, a window will be displayed as illustrated above. Selecting the input locale combo box will allow you to switch to a new input locale. To add new input locales to your system do the following:
|
||||
* Click on '''Start''' -> '''Settings''' -> '''Control Panel''' -> '''Regional Options'''
|
||||
* Select the ''' Input Locale''' tab and click '''Add'''.
|
||||
* Select the input locale then click '''OK'''
|
||||
* To test the new input locale restart the Unicode sample.
|
||||
Selecting an input locale allows entry of the chosen input locale characters into the rich-edit control to right. Clicking the "Apply to Controls" button will update the controls in the pane below to display the same text as the rich-edit control. If the selected input locale is associated with an Input Method Editor (IME), the details for this will be displayed in the "Input Method Editor" group box and IME specific options will be made available from the "IME Options" menu.
|
||||
|
||||
==Under the Hood==
|
||||
|
||||
There is one <code>MAIN_WINDOW</code> class used for all the controls. The feature <code>init_locale_list</code> is used to determine the systems available input locales and populate the corresponding "Input Locales" combo box. The features 'change_font' and 'change_control' are used to change the applications font (in case the currently selected font does not correctly display Unicode characters), and to set the <code>text</code> property of all controls to the same as that in the rich-edit box.
|
||||
This sample contains the following classes:
|
||||
* <code>UNICODE_DEMO</code>
|
||||
* <code>MAIN_WINDOW</code>
|
||||
* <code>DISPLAY_TEXT</code>
|
||||
* <code>APPLICATION_IDS</code>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
[[Property:title|Wel Sample: Menus]]
|
||||
[[Property:weight|0]]
|
||||
[[Image:menus|menus]] <br/>
|
||||
<br/>
|
||||
|
||||
==Compiling==
|
||||
|
||||
To compile the example:
|
||||
* Launch EiffelStudio.
|
||||
* Click '''Add project'''
|
||||
* Browse to ''$ISE_EIFFEL\examples\wel\menus\''.
|
||||
* Choose ''menus.ecf''
|
||||
* Choose the location where the project will be compiled, by default the same directory containing the configuration file.
|
||||
* Click '''OK'''.
|
||||
|
||||
==Running==
|
||||
After launching the program, you will see a window displayed with a similar appearance to the one displayed above. If you right click in the client area of the window, a menu will pop up at the cursor position. The same menu is also accessible from the "File" menu. Selecting any of the menu options will display a notification of which option was selected.
|
||||
==Under the Hood==
|
||||
A [[ref:libraries/wel/reference/wel_menu_chart|WEL_MENU]] is used for the menu's in this sample. The feature show_track is used to display the menu at the cursor position and a [[ref:libraries/wel/reference/wel_msg_box_chart|WEL_MSG_BOX]] is used to display the notification when a menu selection has occurred.
|
||||
This sample contains the following classes:
|
||||
* <code>MAIN_WINDOW</code>
|
||||
* <code>MENUS_DEMO</code>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
[[Property:title|Wel Sample: Windows]]
|
||||
[[Property:link_title|Windows Sample]]
|
||||
[[Property:weight|10]]
|
||||
[[Image:windows|windows]] <br/>
|
||||
<br/>
|
||||
|
||||
==Compiling==
|
||||
|
||||
To compile the example:
|
||||
* Launch EiffelStudio.
|
||||
* Click '''Add project'''
|
||||
* Browse to ''$ISE_EIFFEL\examples\wel\windows\''.
|
||||
* Choose ''windows.ecf''
|
||||
* Choose the location where the project will be compiled, by default the same directory containing the configuration file.
|
||||
* Click '''OK'''.
|
||||
|
||||
==Running==
|
||||
|
||||
After launching the program, a window will appear with a custom <code>ON_OFF_CONTROL</code> control displayed. Clicking on this control will cause its state to change. If you select one of the options from the "Windows" menu, that type of window will be displayed.
|
||||
==Under the Hood==
|
||||
|
||||
The <code>ON_OFF_CONTROL</code> inherits [[ref:libraries/wel/reference/wel_control_window_chart|WEL_CONTROL_WINDOW]] and demonstrates how to build your controls. The classes <code>MODAL</code> and <code>MODELESS</code> inherit [[ref:libraries/wel/reference/wel_modal_dialog_chart|WEL_MODAL_DIALOG]] and [[ref:libraries/wel/reference/wel_modeless_dialog_chart|WEL_MODELESS_DIALOG]] respectively.
|
||||
|
||||
This sample contains the following classes:
|
||||
* <code>APPLICATION_IDS</code>
|
||||
* <code>MAIN_WINDOW</code>
|
||||
* <code>MODAL</code>
|
||||
* <code>MODELESS</code>
|
||||
* <code>ON_OFF_CONTROL</code>
|
||||
* <code>WINDOWS_DEMO</code>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
[[Property:title|Xcell]]
|
||||
[[Property:weight|11]]
|
||||
[[Image:xcell|xcell]] <br/>
|
||||
<br/>
|
||||
|
||||
==Compiling==
|
||||
|
||||
* Launch EiffelStudio.
|
||||
* Click '''Add project'''
|
||||
* Browse to ''$ISE_EIFFEL\examples\wel\xcell\''.
|
||||
* Choose ''xcell.ecf''
|
||||
* Choose the location where the project will be compiled, by default the same directory containing the configuration file.
|
||||
* Click '''OK'''.
|
||||
|
||||
|
||||
==Running==
|
||||
After launching the program, a window will be displayed. Selecting "New" from the "Game" menu or pressing F2, will cause a new game to start and the window should take a similar appearance to the above illustration. Selecting "How to play..." from the "Help" menu will display the instructions for playing the game.
|
||||
==Under the Hood==
|
||||
|
||||
This sample contains the following classes:
|
||||
* <code>APP_CONSTANTS</code>
|
||||
* <code>CARD</code>
|
||||
* <code>COLUMN</code>
|
||||
* <code>GAME</code>
|
||||
* <code>GAME_CONSTANTS</code>
|
||||
* <code>GAME_MANAGER</code>
|
||||
* <code>MAIN_WINDOW</code>
|
||||
* <code>SELECT_GAME_NUMBER_DIALOG</code>
|
||||
* <code>SELECT_NUMBER_OF_CARDS_DIALOG</code>
|
||||
* <code>XCELL_DEMO</code>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
[[Property:title|XY Co-ordinates]]
|
||||
[[Property:weight|12]]
|
||||
[[Image:xy|xy]] <br/>
|
||||
<br/>
|
||||
|
||||
==Compiling==
|
||||
|
||||
To compile the example:
|
||||
* Launch EiffelStudio.
|
||||
* Click '''Add project'''
|
||||
* Browse to ''$ISE_EIFFEL\examples\wel\xy\''.
|
||||
* Choose ''xy.ecf''
|
||||
* Choose the location where the project will be compiled, by default the same directory containing the configuration file.
|
||||
* Click '''OK'''.
|
||||
|
||||
==Running==
|
||||
After launching the sample, you should see a [[ref:libraries/wel/reference/wel_frame_window_chart|WEL_FRAME_WINDOW]] displayed. If you click the left mouse button in the client area of the window, the coordinates of the click (Relative to the top left of the client area), will be displayed. Clicking the [[ref:/libraries/wel/reference/wel_push_button_chart|WEL_PUSH_BUTTON]] marked "Clear" will clear the client area of the window.
|
||||
==Under the Hood==
|
||||
|
||||
A [[ref:libraries/wel/reference/wel_client_dc_chart|WEL_CLIENT_DC]] is used to display output in the client area of the window during the execution of <code>on_left_button_down</code> which has been redefined in <code>MAIN_WINDOW</code>.
|
||||
|
||||
This sample contains the following classes:
|
||||
* <code>XY_DEMO</code>
|
||||
* <code>MAIN_WINDOW</code>
|
||||
|
||||
|
||||
{{seealso| '''See Also''' <br/>
|
||||
[[Tutorial Step 3|tutorial_step3]] <br/>
|
||||
[[WEL_PUSH_BUTTON|WEL_PUSH_BUTTON]] <br/>
|
||||
}}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user