Author:halw

Date:2008-12-28T14:08:19.000000Z


git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@148 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
halw
2008-12-28 14:08:19 +00:00
parent 98a4f29203
commit 60b62a6ce4

View File

@@ -23,12 +23,12 @@ After you launch the sample, You should see a window displayed as illustrated ab
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>
on_paint (paint_dc: WEL_PAINT_DC; invalid_rect: WEL_RECT)
--Draw a centered text
do
paint_dc.draw_centered_text("Hello, World!", client_rect)
end
</code>
{{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. }}