1wxNotifyEvent(3) Erlang Module Definition wxNotifyEvent(3)
2
3
4
6 wxNotifyEvent - Functions for wxNotifyEvent class
7
9 This class is not used by the event handlers by itself, but is a base
10 class for other event classes (such as wxBookCtrlEvent).
11
12 It (or an object of a derived class) is sent when the controls state is
13 being changed and allows the program to veto/1 this change if it wants
14 to prevent it from happening.
15
16 See: wxBookCtrlEvent
17
18 This class is derived (and can use functions) from: wxCommandEvent wx‐
19 Event
20
21 wxWidgets docs: wxNotifyEvent
22
24 wxNotifyEvent() = wx:wx_object()
25
27 allow(This) -> ok
28
29 Types:
30
31 This = wxNotifyEvent()
32
33 This is the opposite of veto/1: it explicitly allows the event
34 to be processed.
35
36 For most events it is not necessary to call this method as the
37 events are allowed anyhow but some are forbidden by default
38 (this will be mentioned in the corresponding event description).
39
40 isAllowed(This) -> boolean()
41
42 Types:
43
44 This = wxNotifyEvent()
45
46 Returns true if the change is allowed (veto/1 hasn't been
47 called) or false otherwise (if it was).
48
49 veto(This) -> ok
50
51 Types:
52
53 This = wxNotifyEvent()
54
55 Prevents the change announced by this event from happening.
56
57 It is in general a good idea to notify the user about the rea‐
58 sons for vetoing the change because otherwise the applications
59 behaviour (which just refuses to do what the user wants) might
60 be quite surprising.
61
62
63
64wxWidgets team. wx 2.1.4 wxNotifyEvent(3)