0 Replies Latest reply on Jan 31, 2008 11:27 AM by ejthsiao

    Can't receive events with a custom component

    ejthsiao
      I am using the MDIPanel created by Christophe Coenraets in the Sales Builder demo code in Flex 2. However, this custom component (MDIPanel) doesn't seem to receive regular events other than the custom events. The MDI Panel source code is included as entails. Since it extends Panel, I assume that it would get all regular events coming in but it is not. For example, I can't use resource bundle to change the label text or I can't seem to get dataprovider to work within a datagrid inside the MDIPanel. Any ideas on what's happening here?
      ----------------------------------------------------------------------------------------- ----------------------------------------------------------------------------
      package
      {
      import mx.core.UIComponent;
      import flash.events.MouseEvent;
      import flash.events.Event;
      import mx.controls.Button;
      import mx.events.ResizeEvent;
      import flash.display.Graphics;
      import mx.managers.CursorManager;
      import mx.containers.Panel;
      import mx.controls.Image;
      import mx.controls.Label;
      import mx.states.SetStyle;

      public class MDIPanel extends Panel
      {
      // Constants for MDI panel event names
      public static var MINIMIZE:String = "minimize";
      public static var MAXIMIZE:String = "maximize";
      public static var CLOSE:String = "close";
      public static var RESTORE:String = "restore";