First checkin, AXE release 0.2
[AXE.git] / doc / window_childmessage.html
1 <html>
2 <head>
3 <title>ChildMessage - ANDROMEDA X-windows Encapsulation</title>
4 </head>
5 <body bgcolor=white>
6
7 <h1>window::ChildMessage</h1>
8 <hr>
9
10 <h2> NAME</h2>
11 ChildMessage - Receive a message from a subwindow
12 <h2> SYNOPSIS</h2>
13 #include "xwindow.h"
14 <br>
15 virtual void window::ChildMessage(w_msg &message);
16 <h2> DESCRIPTION</h2>
17
18 A window may send a message to its parent when something important happens
19 in the window.
20 Examples of situations where such messages are being sent are:
21
22 <ul>
23 <li>A menu item is selected
24 <li>The text in an edit window is changed
25 <li>The slider in a scrollbar is repositioned.
26 <li>An item in a list is selected.
27 <li>A radio button is clicked.
28 </ul>
29
30 In all these cases the parent window must be notified because other
31 windows may be affected by the event.
32 For example, when a slider in a scrollbar is repositioned, the contents
33 of the window next to the scrollbar must be adjusted accordingly.
34 <p>
35 A <strong>w_msg</strong> is a simple structure:
36
37 <pre>
38
39 struct w_msg
40 {
41    int    id;
42    long   timestamp;
43    window *from;
44 };
45
46 </pre>
47
48 <h2> SEE ALSO</h2>
49
50 <a href="window_parentmessage.html">ParentMessage</a>
51
52 <h2> DIAGNOSTICS</h2>
53
54 </body>
55 </html>