1 /** DGui project file.
2 
3 Copyright: Trogu Antonio Davide 2011-2013
4 
5 License: $(HTTP boost.org/LICENSE_1_0.txt, Boost License 1.0).
6 
7 Authors: Trogu Antonio Davide
8 */
9 module dguihub.core.events.controlcodeeventargs;
10 
11 public import dguihub.core.events.eventargs;
12 public import dguihub.core.winapi;
13 
14 enum ControlCode : uint {
15    ignore = 0,
16    button = DLGC_BUTTON,
17    defaultPushButton = DLGC_DEFPUSHBUTTON,
18    hasSetSel = DLGC_HASSETSEL,
19    radioButton = DLGC_RADIOBUTTON,
20    static_ = DLGC_STATIC,
21    noDefaultPushButton = DLGC_UNDEFPUSHBUTTON,
22    wantAllKeys = DLGC_WANTALLKEYS,
23    wantArrows = DLGC_WANTARROWS,
24    wantChars = DLGC_WANTCHARS,
25    wantTab = DLGC_WANTTAB,
26 }
27 
28 class ControlCodeEventArgs : EventArgs {
29    private ControlCode _ctrlCode = ControlCode.ignore;
30 
31    @property public ControlCode controlCode() {
32       return this._ctrlCode;
33    }
34 
35    @property public void controlCode(ControlCode cc) {
36       this._ctrlCode = cc;
37    }
38 }