ITPhaseControl.Expand C# (CSharp) Method

Expand() public method

public Expand ( ) : void
return void
	public virtual void Expand()
	{
		fIsExpanded = true;
		Frame = fExpandedFrame;
	}

Usage Example

Example #1
0
		public override void MoveGraphicToFront(IGraphic aDrawable)
		{
			// Shrink the current control back into position
			if (fActiveControl != null)
			{
				RemoveGraphic(fShadowArrow);
				fActiveControl.Shrink();

                IGraphPort graphPort = Window.GraphPort;
                graphPort.PixBlt(CurrentImage, Frame.Left, Frame.Top);

				if (fActiveControl == aDrawable)
				{
					fActiveControl = null;
					return;
				}
			}

			// Move the new graphic to the front in the hierarchy
			if ((aDrawable != null) && (aDrawable is ITPhaseControl))
			{
				AddGraphic(fShadowArrow);
				//base.MoveGraphicToFront(aDrawable);
				fActiveControl = (ITPhaseControl)aDrawable;

				// Expand the new control
				fActiveControl.ExpansionFrame = fExpansionFrame;
				fActiveControl.Expand();

				IGraphPort grfx = Window.GraphPort;
				grfx.PixBlt(this.CurrentImage, Frame.Left,Frame.Top);
			}
		}