# Pastebin ias2Whwb protected virtual void Setup() { LineWidth *= 2; OutlineColor = DefaultColor; Title = new LabelControl(RelativeLoc.XLeftBorder, RelativeLoc.YUpper, RelativeSize.FullWidth, new RelativeSize(0.12f, false)); AddChild(Title); OKButton = new Button(RelativeLoc.XRightBorder, RelativeLoc.YLowerBorder, RelativeSize.QuarterWidth, new RelativeSize(0.08f, false)); OKButton.UpdateValueFromUser += new EventHandler(OKButton_UpdateValueFromUser); OKButton.Label = "OK"; AddChild(OKButton); CancelButton = new Button(RelativeLoc.XLeftBorder, RelativeLoc.YLowerBorder, RelativeSize.QuarterWidth, new RelativeSize(0.08f, false)); CancelButton.UpdateValueFromUser += new EventHandler(CancelButton_UpdateValueFromUser); CancelButton.Label = "Cancel"; AddChild(CancelButton); }