예제 #1
0
        public static void Test()
        {
            DDContainer container = Gui.Instance.CreateWidget <DDContainer>("Button", new IntCoord(420, 520, 100, 100), Align.Default, "Main");

            container.NeedDragDrop = !container.NeedDragDrop;

            container.EventChangeDDState    += new DDContainer.HandleChangeDDState(container_EventChangeDDState);
            container.EventDropResult       += new DDContainer.HandleDropResult(container_EventDropResult);
            container.EventRequestDrop      += new DDContainer.HandleRequestDrop(container_EventRequestDrop);
            container.EventStartDrag        += new DDContainer.HandleStartDrag(container_EventStartDrag);
            container.RequestDragWidgetInfo += new DDContainer.HandleDragWidgetInfo(container_RequestDragWidgetInfo);

            mWidget         = Gui.Instance.CreateWidget <Widget>("Button", new IntCoord(0, 0, 10, 10), Align.Default, "Popup");
            mWidget.Visible = false;
        }
예제 #2
0
 static void container_RequestDragWidgetInfo(DDContainer _sender, ref Widget _item, ref IntCoord _dimension)
 {
     mWidget.Visible = true;
     _item           = mWidget;
     _dimension      = new IntCoord(0, 0, 20, 20);
 }
예제 #3
0
 static void container_EventChangeDDState(DDContainer _sender, DDItemState _state)
 {
     Gui.Instance.Log("TestApp", LogLevel.Info, "EventChangeDDState    state=" + _state.ToString());
 }
예제 #4
0
 static void container_RequestDragWidgetInfo(DDContainer _sender, ref Widget _item, ref IntCoord _dimension)
 {
     mWidget.Visible = true;
     _item = mWidget;
     _dimension = new IntCoord(0, 0, 20, 20);
 }
예제 #5
0
 static void container_EventDropResult(DDContainer _sender, DDItemInfo _info, bool _result)
 {
     Gui.Instance.Log("TestApp", LogLevel.Info, "EventDropResult    result=" + _result.ToString());
     mWidget.Visible = false;
 }
예제 #6
0
 static void container_EventDropResult(DDContainer _sender, ref DDItemInfo _info, bool _result)
 {
     Export.DebugOut("EventDropResult    result=" + _result.ToString());
     mWidget.Visible = false;
 }
예제 #7
0
 static void container_EventDropResult(DDContainer _sender, ref DDItemInfo _info, bool _result)
 {
     //mWidget.Visible = false;
 }
예제 #8
0
 static void container_EventChangeDDState(DDContainer _sender, DDItemState _state)
 {
     Gui.Instance.Log("TestApp", LogLevel.Info, "EventChangeDDState    state=" + _state.ToString());
 }
예제 #9
0
 static void container_EventDropResult(DDContainer _sender, DDItemInfo _info, bool _result)
 {
     Gui.Instance.Log("TestApp", LogLevel.Info, "EventDropResult    result=" + _result.ToString());
     mWidget.Visible = false;
 }
예제 #10
0
 static void container_EventDropResult(DDContainer _sender, DDItemInfo _info, bool _result)
 {
     ExampleApplication.DebugOut("EventDropResult    result=" + _result.ToString());
     mWidget.Visible = false;
 }
예제 #11
0
 static void container_EventUpdateDropState(DDContainer _sender, Widget _items, DDWidgetState _state)
 {
     ExampleApplication.DebugOut("EventUpdateDropState    state=" + _state.ToString());
 }
예제 #12
0
 static void container_EventChangeDDState(DDContainer _sender, DDItemState _state)
 {
     ExampleApplication.DebugOut("EventChangeDDState    state=" + _state.ToString());
 }
예제 #13
0
 static void container_EventUpdateDropState(DDContainer _sender, Widget _items, ref DDWidgetState _state)
 {
     Export.DebugOut("EventUpdateDropState    state=" + _state.ToString());
 }
예제 #14
0
 static void container_EventChangeDDState(DDContainer _sender, DDItemState _state)
 {
 }
예제 #15
0
 static void container_EventStartDrag(DDContainer _sender, ref DDItemInfo _info, ref bool _result)
 {
     _result = true;
 }
예제 #16
0
 static void container_EventRequestDrop(DDContainer _sender, DDItemInfo _info, ref bool _result)
 {
     _result = true;
 }
예제 #17
0
 static void container_EventRequestDrop(DDContainer _sender, ref DDItemInfo _info, ref bool _result)
 {
     _result = true;
 }
예제 #18
0
 static void container_EventStartDrag(DDContainer _sender, DDItemInfo _info, ref bool _result)
 {
     _result = true;
 }
예제 #19
0
 static void container_EventChangeDDState(DDContainer _sender, DDItemState _state)
 {
     Export.DebugOut("EventChangeDDState    state=" + _state.ToString());
 }
예제 #20
0
 static void container_EventUpdateDropState(DDContainer _sender, Widget _items, DDWidgetState _state)
 {
     ExampleApplication.DebugOut("EventUpdateDropState    state=" + _state.ToString());
 }