private void populatedStorePanel(ItemPanel itemPanel, ItemResource itemResource, int itemIndex) { itemPanel.Initialize(itemResource, ItemPanel.ItemPanelType.PURCHASE, itemIndex, Weapon.WeaponOrder.Right, -1); itemPanel.Show(); itemPanel.Connect(nameof(ItemPanel.ItemPanelPurchaseClickSignal), this, nameof(_purchaseItem)); }
//private void OnDestroy() //{ // owner.OnAddFeature -= CreateItem; // owner.OnRemoveFeature -= RemoveItem; //} private void RemoveItem(Feature deletedFature) { ItemPanel deaded = items.Find(x => x.feature == deletedFature); items.Remove(deaded); Destroy(deaded.item); }
private void UpdateBlur(Visual backgroundVisual) { if (!BlurEnabled) { return; } var backgroundRenderTarget = new RenderTargetBitmap((int)ItemPanel.RenderSize.Width, (int)ItemPanel.RenderSize.Height, 96, 96, PixelFormats.Pbgra32); backgroundRenderTarget.Render(backgroundVisual); backgroundRenderTarget.Freeze(); var itemPanelLocation = ItemPanel.PointToScreen(new Point(0, 0)); var offset = PointFromScreen(itemPanelLocation); var blurRegion = BuildRegionFromBitmap(backgroundRenderTarget, offset); var handle = new WindowInteropHelper(this).Handle; var blurBehind = new Api.DWM_BLURBEHIND { fEnable = true, fTransitionOnMaximized = true, dwFlags = Api.DWM_BB.BlurRegion | Api.DWM_BB.Enable | Api.DWM_BB.TransitionMaximized, hRgnBlur = blurRegion.GetHrgn(System.Drawing.Graphics.FromHwnd(handle)) }; Api.DwmEnableBlurBehindWindow(handle, ref blurBehind); }
private void OnPositionChanged() { switch ((ScreenEdge)GetValue(EdgeProperty)) { case ScreenEdge.Bottom: ItemPanel.Orientation = Orientation.Horizontal; ItemPanel.UpdateLayout(); Left = screen.WorkingArea.Left + (screen.WorkingArea.Width - Width) / 2; Top = screen.WorkingArea.Bottom - Height; break; case ScreenEdge.Top: ItemPanel.Orientation = Orientation.Horizontal; ItemPanel.UpdateLayout(); Left = screen.WorkingArea.Left + (screen.WorkingArea.Width - Width) / 2; Top = screen.WorkingArea.Top; break; case ScreenEdge.Left: ItemPanel.Orientation = Orientation.Vertical; ItemPanel.UpdateLayout(); Left = screen.WorkingArea.Left; Top = screen.WorkingArea.Top + (screen.WorkingArea.Height - Height) / 2; break; case ScreenEdge.Right: ItemPanel.Orientation = Orientation.Vertical; ItemPanel.UpdateLayout(); Left = screen.WorkingArea.Right - Width; Top = screen.WorkingArea.Top + (screen.WorkingArea.Height - Height) / 2; break; } }
public static void UpdatePanel(Virus virus, ItemPanel panel) { IAsyncResult res; res = panel.BeginInvoke(new InvokeItemPanel(UpdatePanelX), new object[] { virus, panel }); panel.EndInvoke(res); }
//////////////////////////////////////////////////////////////////////////////////////////////// /*--------------------------------------------------------------------------------------------*/ public PanelState(ItemPanel pItemPanel, InteractionSettings pSettings) { ItemPanel = pItemPanel; vSettings = pSettings; RefreshGrids(); }
void equip() { ItemPanel[] itemPanels = GameObject.FindObjectsOfType <ItemPanel>(); ItemPanel firstFree = null; ItemPanel firstOccupied = null; foreach (ItemPanel itemPanel in itemPanels) { if (itemPanel.type == this.type) { if (itemPanel.isFree() && (firstFree == null || itemPanel.order < firstFree.order)) { firstFree = itemPanel; } else if (!itemPanel.isFree() && (firstOccupied == null || itemPanel.order < firstOccupied.order)) { firstOccupied = itemPanel; } } } ItemPanel targetPanel = firstFree; if (targetPanel == null) { targetPanel = firstOccupied; } if (targetPanel == null) { return; } targetPanel.setMySkill(this.gameObject); }
private void MakeImageCell(Sprite[] sprites) { foreach (Sprite sprite in sprites) { ItemPanel itemPanel = Instantiate(itemPanelPrefab, content).GetComponent <ItemPanel>(); itemPanel.GetComponentInChildren <Image>().sprite = sprite; itemList.Add(itemPanel); itemPanel.itemPanelOnClickDelegate = (itemPanelThis) => { if (jewelEquipItemDatas.HasValue) { int itemIndex = itemList.IndexOf(itemPanelThis); ItemNumber(itemIndex); } }; itemPanel.itemPanelDelegate = (itemPanelThis) => { if (jewelEquipItemDatas.HasValue) { int itemIndex = itemList.IndexOf(itemPanelThis); JewelEquipItemData selectItem = jewelEquipItemDatas.Value.jewelEquipItemList[itemIndex]; itemPanel.itemPaneljewelEquipItemData = selectItem; } itemPanel.textDataInfo = textDataInfo; }; } }
void Awake() { myState = inInventory; //just in case myParent = this.GetComponentInParent <ItemPanel>(); t = 0; clicked = false; }
public void SwapItemPanels(GameObject from, GameObject to) { ItemPanel panel = from.GetComponent <ItemPanel>(); ItemPanel otherPanel = to.GetComponent <ItemPanel>(); if (panel && otherPanel) { Equippable[] items = new Equippable[2]; items[0] = panel.obj; items[1] = otherPanel.obj; panel.Display(items[1]); otherPanel.Display(items[0]); Debug.Log("Display swap"); return; } EquippedItemPanel equipPanel = from.GetComponent <EquippedItemPanel>(); if (!equipPanel) { equipPanel = to.GetComponent <EquippedItemPanel>(); otherPanel = from.GetComponent <ItemPanel>(); } if (equipPanel.equipSlots == otherPanel.obj.defaultSlots || equipPanel.equipSlots == otherPanel.obj.secondarySlots) { Equippable[] items = new Equippable[2]; items[0] = equipPanel.obj; items[1] = otherPanel.obj; equipPanel.Display(items[1]); otherPanel.Display(items[0]); Debug.Log("Display swap"); return; } }
protected override void RefreshUI() { this.Title = global::Cii.Lar.Properties.Resources.StrSetting; resources.ApplyResources(this.labelItemLanguage, labelItemLanguage.Name); resources.ApplyResources(this.labelItemStoragePath, labelItemStoragePath.Name); resources.ApplyResources(this.labelItemCamera, labelItemCamera.Name); resources.ApplyResources(this.lblConnectedInfo, lblConnectedInfo.Name); resources.ApplyResources(this.lblLaser, lblLaser.Name); resources.ApplyResources(this.lblSimulator, lblSimulator.Name); resources.ApplyResources(this.lense, lense.Name); resources.ApplyResources(this.btnDelete, btnDelete.Name); this.itemContainer2.Refresh(); foreach (var ctrl in this.Controls) { Button btnX = ctrl as Button; if (btnX != null) { resources.ApplyResources(btnX, btnX.Name); } ItemPanel itemPanel = ctrl as ItemPanel; if (itemPanel != null) { foreach (var itemCtrl in itemPanel.Controls) { Button subBtnX = itemCtrl as Button; if (subBtnX != null) { resources.ApplyResources(subBtnX, subBtnX.Name); } } } } this.Invalidate(); }
public void OnPointerClick(PointerEventData eventData)//wywoływana po kliknięciu na przycisk { ItemContainer inventory = GameManager.instance.inventoryContainer; ItemContainer shop = GameManager.instance.shopContainer; if (container == inventory) { //wywołuje metodę przeciągania ItemPanel itemPanel = transform.parent.GetComponent <ItemPanel>(); itemPanel.OnClick(myIndex, inventory); //sprzedaży GameManager.instance.shopController.OnClick(inventory.slots[myIndex], inventory); } else if (container == shop)//wywołuje metodę kupowania { GameManager.instance.shopController.OnClick(shop.slots[myIndex], shop); } /*old version * ItemContainer inventory = GameManager.instance.inventoryContainer; * GameManager.instance.dragDropController.OnClick(inventory.slots[myIndex]);//wywołuje funkcję przekazując kliknięty przycisk * transform.parent.GetComponent<InventoryPanel>().Show(); //odświeża ekwipunek */ }
public void setMySkill(GameObject o) { //Just in case MyEquipButton skill = o.GetComponent <MyEquipButton>(); if (skill == null) { return; } //Same kind of object if (type > 0 && skill.type != type) { return; } //If the dragged item comes from another position of the bar, swap! MyEquipButton mySkill = this.GetComponentInChildren <MyEquipButton>(); if (mySkill != null) { ItemPanel panel = o.GetComponent <MyEquipButton>().myParent; if (panel != null) { mySkill.putInBar(panel); } } destroyAllMyChildren(); //Whenever we drag a new skill, we destroy the previous one //We make a copy of the skill and attach it here skill.putInBar(this); skill.placedSuccessfully(); }
//////////////////////////////////////////////////////////////////////////////////////////////// /*--------------------------------------------------------------------------------------------*/ public PanelState(ItemPanel pItemPanel, InteractionSettings pSettings) { ItemPanel = pItemPanel; vSettings = pSettings; DisplayStrength = 1; RefreshLayouts(); }
public void BeginMove(ItemPanel item) { moveItem = item; MovePathLbl.Text = CurrentDirectory + (CurrentDirectory != "" ? "/" : "") + item.PanelName; MoveHereBtn.Enabled = false; MoveGroup.Visible = true; }
public void copyMyself() { //We instantiate this object, set it to 'dragged', and attach it to movedSkills draggedItem = Instantiate(this.gameObject, this.transform.position, Quaternion.identity) as GameObject; draggedItem.transform.SetParent(movedSkills.transform); myParent = this.GetComponentInParent <ItemPanel>(); draggedItem.GetComponent <MyEquipButton>().setParameters(dragged, myParent); draggedItem.name = this.gameObject.name; //To avoid the extra '(copy)' in its name. }
public void Build() { ItemPanel panel = new ItemPanel(); Text = Constants.PUZZLE_TITLE; AutoSize = true; FormBorderStyle = FormBorderStyle.FixedSingle; Controls.Add(panel); }
public void DisplayItem(Equippable obj, int index) { ItemPanel itemPanel = items[index]; if (itemPanel) { itemPanel.Display(obj); } }
static void UpdatePanelX(Virus virus, ItemPanel panel) { VirusItem vi = new VirusItem(virus); if (!panel.Items.Contains(vi)) { panel.Items.Add(vi); } }
public UIManager(AllManager manager) { allManager = manager; healthBar = manager.healthBar; itemPanel = manager.itemPanel; healthBar.Initialize(this, manager.player); itemPanel.Initialize(this, manager.player); }
/*--------------------------------------------------------------------------------------------*/ public void Update() { vState.UpdateAfterInput(); foreach (PanelState panelState in vState.Panels) { ItemPanel itemPanel = panelState.ItemPanel; ((GameObject)itemPanel.DisplayContainer).SetActive(itemPanel.IsVisible); } //// InteractionSettings interSett = InteractionSettings.GetSettings(); if (interSett.ApplyScaleMultiplier) { Vector3 worldUp = transform.TransformVector(Vector3.up); interSett.ScaleMultiplier = 1 / worldUp.magnitude; } else { interSett.ScaleMultiplier = 1; } //// CursorType[] activeCursorTypes = interSett.Cursors; IEnumerable <CursorType> hideCursorTypes = vPrevActiveCursorTypes.Except(activeCursorTypes); IEnumerable <CursorType> showCursorTypes = activeCursorTypes.Except(vPrevActiveCursorTypes); IProjectionVisualSettings projSett = ProjectionVisualSettings.GetSettings(); foreach (CursorType cursorType in hideCursorTypes) { vProjMap[cursorType].gameObject.SetActive(false); vState.ActivateProjection(cursorType, false); } foreach (CursorType cursorType in showCursorTypes) { if (vProjMap.ContainsKey(cursorType)) { vProjMap[cursorType].gameObject.SetActive(true); vState.ActivateProjection(cursorType, true); continue; } var projObj = new GameObject("Proj-" + cursorType); projObj.transform.SetParent(gameObject.transform, false); UiProjection uiProj = projObj.AddComponent <UiProjection>(); uiProj.Build(vState.GetProjection(cursorType), projSett); vProjMap.Add(cursorType, uiProj); } vPrevActiveCursorTypes = activeCursorTypes; }
public void OnPointerClick(PointerEventData eventData) { ItemPanel itemPanel = transform.parent.GetComponent <ItemPanel>(); itemPanel.OnClick(myIndex); //перетаскивание предметов из ячейки в ячейку //ItemContainer inventory = GameManager.instance.inventoryContainer; //GameManager.instance.dragAdDropController.OnClick(inventory.slots[myIndex]); //transform.parent.GetComponent<InventoryPanel>().Show(); }
private void Add_ItemPanel(int initialHeight = 15) { ItemPanel itemPanel = new ItemPanel(); itemPanel.Name = "itemPanel_" + ItemPanelCounter; itemPanel.Location = new Point(0, ItemPanelCounter * itemPanel.Height + initialHeight); groupBox1.Controls.Add(itemPanel); ItemPanelCounter++; }
public void OnDrop(PointerEventData data) { if (data.pointerDrag != null) { dragObject = data.pointerDrag.GetComponent <ItemPanel>(); } dragObject.slot = null; playerInvData.data.Remove(dragObject.item); Destroy(dragObject.gameObject); }
private void populatedInventoryPanel(ItemPanel itemPanel, ItemResource itemResource, int inventoryItemIndex) { itemPanel.Initialize(itemResource, ItemPanel.ItemPanelType.INVENTORY, inventoryItemIndex, Weapon.WeaponOrder.Right, -1); itemPanel.SetUsed(_inventory.IsItemIndexInUsed(inventoryItemIndex)); itemPanel.Connect(nameof(ItemPanel.ItemPanelSaleClickSignal), this, nameof(_sellItem)); itemPanel.Show(); itemPanel.Connect(nameof(ItemPanel.ItemPanelInventoryUseClickSignal), this, nameof(_useItem)); itemPanel.Connect(nameof(ItemPanel.ItemPanelInventoryDropClickSignal), this, nameof(_dropItem)); }
private void Awake() { if (instance == null) { instance = this; } else { Destroy(this); } }
public InventoryManager() { weapons = new Dictionary <string, Weapon> (); ammunition = new Dictionary <string, Ammunition> (); grenades = new Dictionary <string, InventoryGrenade> (); weaponIndex = new List <string> (); grenadeIndex = new List <string> (); items = new HashSet <Item> (); panel = GameObject.FindObjectOfType <ItemPanel> (); panel.gameObject.SetActive(false); }
public void LoadUi(CharacterInventory pinventory, CharacterStats pstats) { statPanel = transform.Find("CharacterStatPanel").gameObject; inventoryPanel = transform.Find("CharacterInventoryUi").gameObject; stats = statPanel.GetComponent <StatPanel>(); itemPanel = inventoryPanel.GetComponent <ItemPanel>(); itemPanel.Initalize(pinventory); stats.Initalize(); }
public void RequestEntryPreview <T>(T n, State s) where T : Item { ChangeView((int)s); calendarController.SetAsBackground(true); ItemPanel <T> handler = currentView.GetComponent <ItemPanel <T> >(); if (handler) { handler.PreviewEntry(n); } }
private void populateWeaponChoicePanel(ItemPanel itemPanel, ItemResource itemResource, int inventoryItemIndex, Weapon.WeaponOrder weaponOrder, int weaponIndex) { itemPanel.Initialize(itemResource, ItemPanel.ItemPanelType.WEAPON, inventoryItemIndex, weaponOrder, weaponIndex); itemPanel.SetUsed(_inventory.IsItemIndexInUsed(inventoryItemIndex)); itemPanel.SetEquipped(_inventory.GetEquipItemIndex(weaponOrder, weaponIndex) == inventoryItemIndex); itemPanel.Show(); itemPanel.Connect(nameof(ItemPanel.ItemPanelWeaponEquipClickSignal), this, nameof(_equipWeapon)); itemPanel.Connect(nameof(ItemPanel.ItemPanelWeaponUnequipClickSignal), this, nameof(_unequipWeapon)); }
private void LoadCustomFilterItems(ItemPanel itemPanel) { bool firstItem = true; if (_GridColumn.SuperGrid.FilterUseExtendedCustomDialog == true) { List<UserFilterData> filterData = FilterUserData.GetFilterData(_GridColumn.GridPanel); foreach (UserFilterData fd in filterData) { if (fd.ReferNames.Contains(_GridColumn.Name) == true) { FilterPopupItem fpi = new FilterPopupItem(fd.Name, fd.Name, FilterItemType.UserEntry, fd.Expression); if (string.IsNullOrEmpty(fd.Description) == false) fpi.Tooltip = fd.Description; if (firstItem == true) { firstItem = false; AddBaseItem(itemPanel, "Custom", _GridColumn.SuperGrid.FilterCustomString, FilterItemType.Custom, "..."); int n = itemPanel.Items.Count - 1; if (n > 0) itemPanel.Items[n].BeginGroup = true; } if (fd.Expression.Equals(_GridColumn.FilterDisplayValue) == true) fpi.FontBold = true; itemPanel.Items.Add(fpi); } } } if (firstItem == true) { AddBaseItem(itemPanel, "Custom", _GridColumn.SuperGrid.FilterCustomString, FilterItemType.Custom, "..."); } }
private void AddBaseItem(ItemPanel itemPanel, string name, string text, FilterItemType type, string ellipse) { if (string.IsNullOrEmpty(text) == false) itemPanel.Items.Add(new FilterPopupItem(name, text + ellipse, type)); }
private void AdjustItemPanelSize(ItemPanel itemPanel) { if (_GridColumn.FilterPopupSize.IsEmpty == true) { int width = 0; int height = 0; if (itemPanel.Items.Count > 0) { int w = 0; foreach (BaseItem bi in itemPanel.Items) { bi.RecalcSize(); if (bi.WidthInternal > w) w = bi.WidthInternal; } width = Math.Max(w + SystemInformation.VerticalScrollBarWidth * 2, _GridColumn.Size.Width); height = itemPanel.Items.Count * (itemPanel.Items[0].HeightInternal + itemPanel.ItemSpacing); } width = Math.Max(width, 90); height = Math.Max(Math.Min(height, _GridColumn.SuperGrid.FilterMaxDropDownHeight), 80); itemPanel.Size = new Size(width, height); } }
/// ------------------------------------------------------------------------------------ /// <summary> /// Creates a SideBarTab /// </summary> /// <param name="owningAdapter"></param> /// <param name="mediator"></param> /// <param name="tabProps"></param> /// ------------------------------------------------------------------------------------ internal SideBarTab(SIBAdapter owningAdapter, Mediator mediator, SBTabProperties tabProps) : base(tabProps.Name, tabProps.Text) { m_owningAdapter = owningAdapter; m_mediator = mediator; m_message = tabProps.Message; m_tag = tabProps.Tag; m_infoBarButtonToolTipFormat = tabProps.InfoBarButtonToolTipFormat; ImageIndex = tabProps.ImageIndex; OptionGroup = "FwNavPanelTabs"; ButtonStyle = eButtonStyle.ImageAndText; ThemeAware = owningAdapter.m_dnbMngr.IsThemeActive; Enabled = tabProps.Enabled; owningAdapter.m_navPane.Items.Add(this); // This has to be done after being added to the pane's item collection. // Add the panel (above the tab) that goes with the tab. This is a control // above the stack of buttons. NavigationPanePanel panel = new NavigationPanePanel(); panel.Name = tabProps.Name; panel.ParentItem = this; panel.Dock = DockStyle.Fill; owningAdapter.m_navPane.Controls.Add(panel); // Add to the panel that holds the DNB toolbar that holds the tab items. m_itemPanel = new ItemPanel(Name, owningAdapter); m_itemPanel.ImageListSmall = m_smallImageList; m_itemPanel.ImageListLarge = m_largeImageList; m_itemPanel.SmallIconMode = tabProps.SmallIconMode; panel.Controls.Add(m_itemPanel); InitMenuAndInfoBarButton(tabProps); Tooltip = Text; }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.itemPanelCommands = new DevComponents.DotNetBar.ItemPanel(); this.itemPanelQat = new DevComponents.DotNetBar.ItemPanel(); this.buttonAddToQat = new DevComponents.DotNetBar.ButtonX(); this.buttonRemoveFromQat = new DevComponents.DotNetBar.ButtonX(); this.comboCategories = new Controls.ComboBoxEx(); this.labelCategories = new System.Windows.Forms.Label(); this.checkQatBelowRibbon = new Controls.CheckBoxX(); this.SuspendLayout(); // // itemPanelCommands // this.itemPanelCommands.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); // // // this.itemPanelCommands.AutoScroll = true; this.itemPanelCommands.BackgroundStyle.Class = DevComponents.DotNetBar.Rendering.ElementStyleClassKeys.ItemPanelKey; this.itemPanelCommands.Style = eDotNetBarStyle.StyleManagerControlled; this.itemPanelCommands.FadeEffect = false; this.itemPanelCommands.LayoutOrientation = DevComponents.DotNetBar.eOrientation.Vertical; #if!TRIAL this.itemPanelCommands.LicenseKey = "F962CEC7-CD8F-4911-A9E9-CAB39962FC1F"; #endif this.itemPanelCommands.Location = new System.Drawing.Point(9, 46); this.itemPanelCommands.Name = "itemPanelCommands"; this.itemPanelCommands.Size = new System.Drawing.Size(173, 257); this.itemPanelCommands.TabIndex = 2; this.itemPanelCommands.Text = "itemPanelCommands"; this.itemPanelCommands.KeyUp += new KeyEventHandler(ItemPanelKeyUp); this.itemPanelCommands.ItemDoubleClick += new MouseEventHandler(ItemPanelCommandsDoubleClick); // // itemPanelQat // this.itemPanelQat.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Right))); // // // this.itemPanelQat.AutoScroll = true; this.itemPanelQat.BackgroundStyle.Class = DevComponents.DotNetBar.Rendering.ElementStyleClassKeys.ItemPanelKey; this.itemPanelQat.Style = eDotNetBarStyle.StyleManagerControlled; this.itemPanelQat.EnableDragDrop = true; this.itemPanelQat.FadeEffect = false; this.itemPanelQat.LayoutOrientation = DevComponents.DotNetBar.eOrientation.Vertical; #if!TRIAL this.itemPanelQat.LicenseKey = "F962CEC7-CD8F-4911-A9E9-CAB39962FC1F"; #endif this.itemPanelQat.Location = new System.Drawing.Point(266, 46); this.itemPanelQat.Name = "itemPanelQat"; this.itemPanelQat.Size = new System.Drawing.Size(173, 257); this.itemPanelQat.TabIndex = 5; this.itemPanelQat.Text = "itemPanelCommands"; this.itemPanelQat.DragDrop += new System.Windows.Forms.DragEventHandler(this.itemPanelQat_DragDrop); this.itemPanelQat.UserCustomize += new EventHandler(this.itemPanelQat_UserCustomize); this.itemPanelQat.KeyUp += new KeyEventHandler(ItemPanelKeyUp); this.itemPanelQat.ItemDoubleClick += new MouseEventHandler(ItemPanelQatDoubleClick); // // buttonAddToQat // this.buttonAddToQat.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.buttonAddToQat.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; this.buttonAddToQat.Location = new System.Drawing.Point(188, 126); this.buttonAddToQat.Name = "buttonAddToQat"; this.buttonAddToQat.Size = new System.Drawing.Size(73, 21); this.buttonAddToQat.TabIndex = 3; this.buttonAddToQat.Text = "&Add >>"; this.buttonAddToQat.Click += new System.EventHandler(this.buttonAddToQat_Click); // // buttonRemoveFromQat // this.buttonRemoveFromQat.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.buttonRemoveFromQat.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; this.buttonRemoveFromQat.Location = new System.Drawing.Point(188, 153); this.buttonRemoveFromQat.Name = "buttonRemoveFromQat"; this.buttonRemoveFromQat.Size = new System.Drawing.Size(73, 21); this.buttonRemoveFromQat.TabIndex = 4; this.buttonRemoveFromQat.Text = "&Remove"; this.buttonRemoveFromQat.Click += new System.EventHandler(this.buttonRemoveFromQat_Click); // // comboCategories // this.comboCategories.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.comboCategories.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboCategories.Location = new System.Drawing.Point(9, 19); this.comboCategories.Name = "comboCategories"; this.comboCategories.Size = new System.Drawing.Size(173, 21); this.comboCategories.Sorted = true; this.comboCategories.TabIndex = 1; this.comboCategories.SelectedIndexChanged += new System.EventHandler(this.comboCategories_SelectedIndexChanged); this.comboCategories.Style = eDotNetBarStyle.Office2007; this.comboCategories.DrawMode = DrawMode.OwnerDrawFixed; this.comboCategories.ThemeAware = false; // // labelCategories // this.labelCategories.AutoSize = true; this.labelCategories.BackColor = System.Drawing.Color.Transparent; this.labelCategories.Location = new System.Drawing.Point(6, 3); this.labelCategories.Name = "labelCategories"; this.labelCategories.Size = new System.Drawing.Size(123, 13); this.labelCategories.TabIndex = 0; this.labelCategories.Text = "&Choose commands from:"; // // checkQatBelowRibbon // this.checkQatBelowRibbon.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.checkQatBelowRibbon.BackColor = System.Drawing.Color.Transparent; this.checkQatBelowRibbon.Location = new System.Drawing.Point(9, 311); this.checkQatBelowRibbon.Name = "checkQatBelowRibbon"; this.checkQatBelowRibbon.Size = new System.Drawing.Size(420, 17); this.checkQatBelowRibbon.TabIndex = 6; this.checkQatBelowRibbon.Text = "&Place Quick Access Toolbar below the Ribbon"; this.checkQatBelowRibbon.CheckedChangedEx += new Controls.CheckBoxXChangeEventHandler(this.checkQatBelowRibbon_CheckedChanged); // // QatCustomizePanel // this.BackColor = System.Drawing.Color.Transparent; this.Controls.Add(this.comboCategories); this.Controls.Add(this.checkQatBelowRibbon); this.Controls.Add(this.labelCategories); this.Controls.Add(this.buttonRemoveFromQat); this.Controls.Add(this.buttonAddToQat); this.Controls.Add(this.itemPanelQat); this.Controls.Add(this.itemPanelCommands); this.Name = "QatCustomizePanel"; this.Size = new System.Drawing.Size(444, 334); this.ResumeLayout(false); this.PerformLayout(); }