Example #1
0
		public MessageBox() : base()
		{
			_frame = new MessageBoxFrame(Orientation.Vertical);
			Control = _frame;
			
			_bodyStack = new Stack(Orientation.Horizontal);
			_frame.AddChild(_bodyStack);
			_messageLabel = new Label();
			_bodyStack.AddChild(_messageLabel);
			
			_buttonStack = new GenericStack<Button>(Orientation.Horizontal);
			_frame.AddChild(_buttonStack);
			
			GrayScene = true;
			CloseOnOutsideClick = false;
		}
Example #2
0
		protected virtual void Decorate(MessageBoxFrame box)
		{
			FillRectangle(Coord.Zeros, box.RenderSize, AllCorners, FillType.Background, HitState.None, AnchorLocation.SE);
			StrokeRectangle(Coord.Zeros, box.RenderSize, AllCorners, HitState.None);
		}