mirror of
https://github.com/EiffelSoftware/eiffel-org.git
synced 2025-12-06 23:02:28 +01:00
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:
@@ -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:
|
MAIN_WINDOW inherits WEL_FRAME_WINDOW. In this example, we have redefined on_paint as shown below:
|
||||||
<code>
|
<code>
|
||||||
on_paint (paint_dc: WEL_PAINT_DC; invalid_rect: WEL_RECT) is
|
on_paint (paint_dc: WEL_PAINT_DC; invalid_rect: WEL_RECT)
|
||||||
--Draw a centered text
|
--Draw a centered text
|
||||||
is
|
do
|
||||||
paint_dc.draw_centered_text("Hello, World!", client_rect)
|
paint_dc.draw_centered_text("Hello, World!", client_rect)
|
||||||
end
|
end
|
||||||
</code>
|
</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. }}
|
{{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. }}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user