ROOT  6.06/09
Reference Guide
WidgetMessageTypes.h
Go to the documentation of this file.
1 /* @(#)root/gui:$Id$ */
2 
3 /*************************************************************************
4  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
5  * All rights reserved. *
6  * *
7  * For the licensing terms see $ROOTSYS/LICENSE. *
8  * For the list of contributors see $ROOTSYS/README/CREDITS. *
9  *************************************************************************/
10 
11 #ifndef ROOT_WidgetMessageTypes
12 #define ROOT_WidgetMessageTypes
13 
14 
15 //////////////////////////////////////////////////////////////////////////
16 // //
17 // WidgetMessageTypes //
18 // //
19 // System predefined widget message types. Message types are constants //
20 // that indicate which widget sent the message and by which widget //
21 // function (sub-message). Make sure your own message types don't clash //
22 // whith the ones defined in this file. ROOT reserves all message ids //
23 // between 0 - 1000. User defined messages should be in the range //
24 // 1001 - 10000. Sub-messages must always be in the range 1-255. //
25 // To use MK_MSG() just cast your message id's to an EWidgetMessageType.//
26 // //
27 //////////////////////////////////////////////////////////////////////////
28 
29 #ifndef ROOT_Rtypes
30 #include "Rtypes.h"
31 #endif
32 
33 
36  kCM_MENU = 1,
43  kCM_TAB = 8,
54  kTE_ENTER = 2,
55  kTE_TAB = 3,
56  kTE_KEY = 4,
61  kCT_KEY = 4,
64  kSL_POS = 1,
65  kSL_TRACK = 2,
66  kSL_PRESS = 3,
75  kTXT_F3 = 5,
76  kTXT_OPEN = 6,
78  kTXT_SAVE = 8,
88  kC_POPUP = 13,
89  kPOP_HIDE = 1,
90  kC_DOCK = 14,
95  kC_MDI = 15,
100  kMDI_MOVE = 16,
101  kMDI_SIZE = 32,
104  kMDI_HELP = 256,
105  kMDI_MENU = 512,
106  kC_USER = 1001,
107  kC_MSGMAX = 10000
108 };
109 
110 
111 // Message cracking routines
113  { return (msg << 8) + submsg; }
114 inline Int_t GET_MSG(Long_t val) { return Int_t(val >> 8); }
115 inline Int_t GET_SUBMSG(Long_t val) { return Int_t(val & 255); }
116 
117 #endif
int Int_t
Definition: RtypesCore.h:41
Int_t MK_MSG(EWidgetMessageTypes msg, EWidgetMessageTypes submsg)
Int_t GET_SUBMSG(Long_t val)
Int_t GET_MSG(Long_t val)
EWidgetMessageTypes
long Long_t
Definition: RtypesCore.h:50