Logo ROOT   6.16/01
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#include "Rtypes.h"
30
31
88 kC_DOCK = 14,
93 kC_MDI = 15,
104 kC_USER = 1001,
105 kC_MSGMAX = 10000
107
108
109// Message cracking routines
111 { return (msg << 8) + submsg; }
112inline Int_t GET_MSG(Long_t val) { return Int_t(val >> 8); }
113inline Int_t GET_SUBMSG(Long_t val) { return Int_t(val & 255); }
114
115#endif
int Int_t
Definition: RtypesCore.h:41
long Long_t
Definition: RtypesCore.h:50
Int_t MK_MSG(EWidgetMessageTypes msg, EWidgetMessageTypes submsg)
Int_t GET_MSG(Long_t val)
EWidgetMessageTypes
@ kCT_SELCHANGED
@ kSL_RELEASE
@ kSL_POS
@ kSB_SLIDERTRACK
@ kMDI_CLOSE
@ kPAT_SELCHANGED
@ kDOCK_UNDOCK
@ kC_TEXTVIEW
@ kC_MARKERSEL
@ kC_MSGMAX
@ kC_USER
@ kC_PATTERNSEL
@ kCM_TAB
@ kPAT_CLICK
@ kSB_SLIDERPOS
@ kTXT_OPEN
@ kMDI_MENU
@ kTXT_CLICK3
@ kCM_COMBOBOX
@ kC_VSCROLL
@ kMDI_HELP
@ kCM_MENU
@ kTXT_CLICK2
@ kTE_TEXTCHANGED
@ kTE_ENTER
@ kMAR_CLICK
@ kTXT_SAVE
@ kMDI_RESTORE
@ kCT_ITEMCLICK
@ kDOCK_DOCK
@ kTXT_CLOSE
@ kC_HSLIDER
@ kMDI_CREATE
@ kCOL_CLICK
@ kSL_TRACK
@ kTXT_ISMARKED
@ kC_MDI
@ kTXT_DATACHANGE
@ kSL_PRESS
@ kCOL_SELCHANGED
@ kCM_MENUSELECT
@ kC_COLORSEL
@ kCT_KEY
@ kC_COMMAND
@ kSB_PAGEUP
@ kPOP_HIDE
@ kMDI_MINIMIZE
@ kDOCK_SHOW
@ kTXT_F3
@ kCM_BUTTON
@ kTE_TAB
@ kC_TEXTENTRY
@ kC_LISTTREE
@ kCM_RADIOBUTTON
@ kSB_LINEUP
@ kSL_POINTER
@ kCM_CHECKBUTTON
@ kMDI_CURRENT
@ kDOCK_HIDE
@ kMDI_MAXIMIZE
@ kMDI_SIZE
@ kC_HSCROLL
@ kC_VSLIDER
@ kCM_LISTBOX
@ kCT_ITEMDBLCLICK
@ kSB_PAGEDOWN
@ kC_DOCK
@ kTE_KEY
@ kMAR_SELCHANGED
@ kC_POPUP
@ kMDI_MOVE
@ kSB_LINEDOWN
@ kC_CONTAINER
Int_t GET_SUBMSG(Long_t val)