Changeset 2205 for trunk/MagicSoft
- Timestamp:
- 06/20/03 14:34:39 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r2204 r2205 5 5 * mgui/MCamDisplay.[h,cc]: 6 6 - fixed color palette when loading MCamDisplay 7 8 * mevtdisp/MGEvtDisplay.cc: 9 - fixed a bug in ProcessMessage, 'Exit' still doesn't work. 7 10 8 11 -
trunk/MagicSoft/Mars/meventdisp/MGEvtDisplay.cc
r2181 r2205 642 642 Bool_t MGEvtDisplay::ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2) 643 643 { 644 if (GET_MSG(msg)!=kC_TEXTENTRY && GET_MSG(msg)!=kC_COMMAND) 645 return kTRUE; 646 647 switch(GET_SUBMSG(msg)) 644 switch (GET_MSG(msg)) 648 645 { 649 case kTE_ENTER: 650 case kCM_BUTTON: 651 if (parm1==kClose) 652 { 653 CloseWindow(); 654 return kTRUE; 655 } 656 657 if (!fInitOk) 658 return kTRUE; 659 646 case kC_TEXTENTRY: 660 647 switch(GET_SUBMSG(msg)) 661 648 { 662 649 case kTE_ENTER: 663 if (GetReader()->SetEventNum(atoi(fTxtEvtNr->GetText())-1))664 ReadinEvent();665 return kTRUE;666 667 650 case kCM_BUTTON: 668 switch (parm1)651 if (parm1==kClose) 669 652 { 670 case kEvtPrev: 671 ReadinEvent(-1); 672 return kTRUE; 673 674 case kEvtNext: 675 ReadinEvent(+1); 653 CloseWindow(); 654 return kTRUE; 655 } 656 657 if (!fInitOk) 658 return kTRUE; 659 660 switch(GET_SUBMSG(msg)) 661 { 662 case kTE_ENTER: 663 if (GetReader()->SetEventNum(atoi(fTxtEvtNr->GetText())-1)) 664 ReadinEvent(); 665 return kTRUE; 666 667 case kCM_BUTTON: 668 switch (parm1) 669 { 670 case kEvtPrev: 671 ReadinEvent(-1); 672 return kTRUE; 673 674 case kEvtNext: 675 ReadinEvent(+1); 676 return kTRUE; 677 } 676 678 return kTRUE; 677 679 } … … 680 682 return kTRUE; 681 683 682 case kCM_MENU: 683 switch (parm1) 684 case kC_COMMAND: 685 switch (GET_SUBMSG(msg)) 686 { 687 case kCM_MENU: 688 switch (parm1) 684 689 { 685 690 case kFileSaveAs: … … 709 714 return kTRUE; 710 715 } 716 return kTRUE; 717 } 711 718 return kTRUE; 712 719 }
Note:
See TracChangeset
for help on using the changeset viewer.