Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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/// with 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#include "RtypesCore.h"
28
29
86 kC_DOCK = 14,
91 kC_MDI = 15,
102 kC_USER = 1001,
103 kC_MSGMAX = 10000
105
106
107// Message cracking routines
109 { return (msg << 8) + submsg; }
110inline Int_t GET_MSG(Long_t val) { return Int_t(val >> 8); }
111inline Int_t GET_SUBMSG(Long_t val) { return Int_t(val & 255); }
112
113#endif
int Int_t
Definition RtypesCore.h:45
long Long_t
Definition RtypesCore.h:54
Int_t MK_MSG(EWidgetMessageTypes msg, EWidgetMessageTypes submsg)
Int_t GET_MSG(Long_t val)
EWidgetMessageTypes
WidgetMessageTypes.
@ kCT_SELCHANGED
@ kSL_RELEASE
@ kSL_POS
@ kSB_SLIDERTRACK
@ kMDI_CLOSE
@ kPAT_SELCHANGED
@ kDOCK_UNDOCK
@ kC_TEXTVIEW
@ kC_MARKERSEL
@ kC_MSGMAX
@ 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
@ 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)