244 |
ImageSize property on 32 (specifies the size of the control' icons)
with AxToolBar1 do begin ImageSize := 32; Font.Size := 16; PopupFlatImageWidth := 32; PopupAppearance := EXTOOLBARLib.ToolBarAppearanceEnum.FlatBorder; Images('gBJJgBAIDAAEg4AEEKAD/hz/EMNh8TIRNGwAjEZAEXjAojKAjMLjABhkaABAk0plUrlktl0vmExmUzmk1m03nE5nU7nk9miAoE+oVDolFo1HpFJpU5h8Sf9OqFNqUOqN' + 'UqdPq9VrFWrlbr1QpdhAFAkFis1ntFptVrtkrpszrNvmVxqk3uVtm1kmF3sdBvF/wGBmV+j9BYGHwWJulfxdax2NyFdx2JlV6l9Nw7AAGZymdz2Cy2GxErvWcz9ivlwy' + 'V21cuxugwktzGIzmvwtl0+53U5y0a0Wazmmyu/3dCyOMyXHx/J5nIr9q3uyqnBxFN3G46ma4vb7mD2Ng4nZze00fDkHC7t7us2rOX5tguetpHRlmz4HVqnXk1PjHO+CM' + 'Po9MBMC+j2vC8j7wS8cFNI4kBo05UIvfCT/NsnsApU+0Fqg/T+oy/kPxC0sEQfErKQK96+w28UWRI8UGvO8sTLS9r2PWmsMJTDTask3CsIbIEQRA3shOXEEAO/GclJ9F' + 'EKrrA8FRbKMXRIlb0JxCkjS1LMswhCcvuel0cv26cSMa8Ufx+2sQwhEUoSXOCjSbLcnxjKc7sdKUVyq28NtVI71P9P7JxtQEapjQ6fzfM8zPfNE2PhIsLL63E40slk5y' + '7N89LcyU9SvMb3SdUc6VJLj5VLVLfO/PS9KzNFHUa/0XyBD0dxlS9cxhMlTRSoNXypPErWDPyfNS+MwprRNO0FD8wVVZ1AI08URwVRjtJ1WCn21QkkUrXVLVPQS/XIkF' + 'gTxT9iONZ9xVTdq+L1eKg3kkF6Upe68XtfV51/MtrVjBlwYFL1ev8y1/P6/lyzzYl02wntj0RVFmS1Qa+M5as93QxEUW9e993rfmQ2+vy65M/mL1lhl/2bj2ByVduMtN' + 'hCJT9hdz41nN14Ld12Z9UjfI/oUAaGseiw6+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6J5qAqBoiiiaY5iSeIpmqComiqKpqkqNouiuah6hqMIsmsSpWiuGhP1kOoumuSp2j6L5sAsBo54gKwWkaMZsgsJpKjKbJLDaRYxYWRpSjSbIZiS' + 'e41m2CxmlqNptksdpejebR5iSfI4m4S4W16boLiaao6m5fJ9jubwLkaco8m8S5WnaPZunuOp4j6b5Lnac4SA0PAGlgP4wEwFwGkGcIMCcCpCnCCxiA8NYAAmMJfkSbhF' + 'CcFpFnGDBnBqRpUhuEwTDeZ5lHCfw6HIQxLCaAxygyJwqgGcATE4FA6hWY4tjEAAQBAgIA=='); end; (GetOcx() as EXTOOLBARLib.ToolBar).SelBackColor := $4000000; SelForeColor := Color.FromArgb(0,0,1); set_Background(EXTOOLBARLib.BackgroundPartEnum.exCheckBoxState0,$1000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exCheckBoxState1,$2000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exCheckBoxState2,$3000000); with Items do begin with Add('Item',Nil,Nil) do begin Image := 1; Check := True; end; Add('',TObject(1),Nil); Add('Item <img>2</img>',Nil,Nil); Add('',TObject(1),Nil); Add('Item <img>1</img>',Nil,Nil).Image := 1; Add('',Nil,Nil).ToString := 'Popup[img=1](2[img=2],3[img=3])'; end; Refresh(); end |
243 |
ImageSize property on 16 (default) (specifies the size of the control' icons)
with AxToolBar1 do begin ImageSize := 16; PopupAppearance := EXTOOLBARLib.ToolBarAppearanceEnum.FlatBorder; Images('gBJJgBAIDAAEg4ACEKAD/hz/EMNh8TIRNGwAjEZAEXjAojJAjMLjABAAgjUYkUnlUrlktl0vmExmUzmk1m03nE5nU7nkrQCAntBoVDolFo1HoM/ADAplLptImdMYFOqd' + 'SqlXq1QrVbrlGpVWsFNrNdnNjsk7pQAtNroFnt0sh8Yr9iulTuNxs1Eu8OiT/vsnsNVutXlk/oGGtVKxGLxWNtsZtN8iUYuNvy0Zvd+xNYwdwvl4p870GCqc8vOeuVtt' + 'mp1knyOayWVy+WzN/ze1wOElenm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o4RgqDuIpIAoLoLmMCJGDKDJjJiLA7xqUAAgGTwYnYPoPmQCQGEKEJkEkFg9gGY44BoRoSmSSQ2EKEggHgRhShSZRJFYVoVm' + 'WCRmFKFAgGOTheheZgJgYYoYmYSYWGaF4lkMMJ0hqZpJjYbobmcCZGHKHJmjmJh0h2Z4JmYcIaE8WZ2H6H5oAoBoCiCaBKBYfdjGoJoKiKaJKDaDojmkChGgmIgpCoVo' + 'WiWaJZiSd4mmmSh2h6J5qAqBoiiiaY5iSeIpmqComiqKpqkqNouiuah6hqMIsmsSpWiuGhP1kOoumuSp2j6L5sAsBo54gKwWkaMZsgsJpKjKbJLDaRYxYWRpSjSbIZiS' + 'e41m2CxmlqNptksdpejebR5iSfI4m4S4W16boLiaao6m5fJ9jubwLkaco8m8S5WnaPZunuOp4j6b5Lnac4SA0PAGlgP4wEwFwGkGcIMCcCpCnCCxiA8NYAAmMJfkSbhF' + 'CcFpFnGDBnBqRpUhuEwTDeZ5lHCfw6HIQxLCaAxygyJwqgGcATE4FA6hWY4tjEAAQBAgIA=='); end; (GetOcx() as EXTOOLBARLib.ToolBar).SelBackColor := $4000000; SelForeColor := Color.FromArgb(0,0,1); with Items do begin with Add('Item',Nil,Nil) do begin Image := 1; Check := True; end; Add('',TObject(1),Nil); Add('Item <img>2</img>',Nil,Nil); Add('',TObject(1),Nil); Add('Item <img>1</img>',Nil,Nil).Image := 1; Add('',Nil,Nil).ToString := 'Popup[img=1](2[img=2],3[img=3])'; end; Refresh(); end |
242 |
How do I get the item's value without the place holders (exclude mask-characters)
// EditChange event - Occurs when the user alters the item's text box field. procedure TWinForm1.AxToolBar1_EditChange(sender: System.Object; e: AxEXTOOLBARLib._IToolBarEvents_EditChangeEvent); begin with AxToolBar1 do begin OutputDebugString( e.itm ); end end; with AxToolBar1 do begin ToString := 'Mask[edit=98][editwidth=-128][edittype=2][mask=00000],Mask[edit=98][editwidth=-128][edittype=2][mask=00000;1]'; end |
241 |
How can I generate/create a progress/step bar for installation
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gcF5GHITAMmsboQDQBCAg='); Add(7,'CP:8 0 0 12 0'); RenderType := -2130772226; end; Locked := True; Images('gBJJgBAIEAAFAEGCgAhb/hz/EIAh8Tf5CJo2AEZjQAjEZFEaKEaj8ZAIAEEbjIylErlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql' + 'Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx2PyGRyWTymVy2XzGZzWbzmdz2f0Gh0Wj0ml02n1Gp1' + 'WOh8Sh1q1ux1+yf9m2mu2tx1tp2+81+638w3ds4dn3vE2fBu/FrW353J3Nk49z5lt6tc68r7Ni6dy7e+6Nf78a8fi6F68u25Ve7fprPP8Pq+Mt91U9P1q/w2Hn63n/Dm' + 'v89b+vm1cCwNA8EQTBUFwYtyLB8lkII8kCRI0kqSo2cEMJy/8Grsf5+Aef5gRBERgIyf5/REcEUxXFEVH/FkYHBFB/xEeCHRujJ8A8R5AnRHkfHQjJgACdgAA9Isjg8j' + 'JAACfAAA/J0oA/JsnyjKcoytKksyqjR4AAB6MzBMUvzDMczzNMsyI3NgATdNE1zTOM6ABLsuy3LEry9O89yIAZ+AAH5gUBQUdg+f5An+fFEUUjKAgA=='); Images('gBJJgBggAAQAAgACkKAD/hz/EMNh8TIRNGwAjEZAEXjAojJQjMLjABAAgjUYDMnlUrlkZQcZZ8ZVkymkYVMZOUtjB1moAmcYn8+mEZQk6lsvjExoE9oM3jE5nU8pdToV' + 'UpQAotGldIAFXoNfjNOAFQltSqtnsFJolardDqlpAFiskss1wuFXrNsjRojJ/jIkv+BjBpnFGsxrwQAwEYxYAQEZwl6vd9xONxuRseGjOIxmVjOPweSycYv2d02KyGFq' + 'Obz2n0AAzGivmk1uo0NPzUYzm23mN1+xyRhjJqyRY1VljJayRsjJj0UZ4UY4l64241cY5V65kY53PAHRAHTtnVzPXAHZtnbAHd5/g8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DEjJCjIPq/d+n14nZAHgABEjLIjJ4' + 'vVALoQGADcva0jFOw+0FwYujFowLSMmajJ6oyfkBPTAj0PRC6MQqjBlIyK74wbEsTK0iKMDIjJZNEjJtoydyMn3DDmIwdiMm0jMQowWKMjCv8TyFIahgqjIarYjAvoyN' + 'aMkyjJpQwaCMksjI1IyLyMikjIZpDIkvzArgaIyScZzMjBHoyGMwzZNrHtOAAsP/GKMiqjIDzdPM9Le/EkIwUyMlCjMxpHPdDUOrMjIw/iMCDL1EUhSKigG6yMskjFKU' + 'lTVN05TtPU/UFQqwiofJXUqOo/R4AJI/CMQMnKHolV6VIdWaT1qlp8njWyNHwANeMvX6W19YCMWJYdhJY3NigAzw4JbZ1oABZ6WH8B9mWtZh/k/bVuJbbdtH/cNmICA=' + ''); with Items do begin with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopupEqualHeight) Or Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); with Items do begin with Add(' <img>5</img> Home',Nil,Nil) do begin BackColor := $7000000; ItemHeight := 36; Alignment := EXTOOLBARLib.AlignmentEnum.exRight; ForeColor := $808080; end; with Add(' <img>6</img> Gebaude',Nil,Nil) do begin BackColor := $5000000; Alignment := EXTOOLBARLib.AlignmentEnum.exRight; ForeColor := $808080; end; with Add(' <img>6</img> Aussttung',Nil,Nil) do begin BackColor := $5000000; Alignment := EXTOOLBARLib.AlignmentEnum.exRight; ForeColor := $808080; end; with Add(' <img>3</img> Produkt',Nil,Nil) do begin BackColor := $3000000; Alignment := EXTOOLBARLib.AlignmentEnum.exRight; end; with Add(' <img>4</img> Rabate',Nil,Nil) do begin Alignment := EXTOOLBARLib.AlignmentEnum.exRight; BackColor := $1000000; Enabled := False; end; with Add(' <img>7</img> Ergebnis',Nil,Nil) do begin Alignment := EXTOOLBARLib.AlignmentEnum.exRight; BackColor := $1000000; Enabled := False; end; end; end; end; Refresh(); end |
240 |
Is there any function to retrieve all available shortcut keys
with AxToolBar1 do begin set_Background(EXTOOLBARLib.BackgroundPartEnum.exShortcutKeyBackColor,$10000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exShortcutKeyForeColor,$ffffff); ShortcutKeyVisible := Integer(EXTOOLBARLib.ShortcutKeyVisibleEnum.exDisplayShortcutKeysAllAvailable) Or Integer(EXTOOLBARLib.ShortcutKeyVisibleEnum.exShowShortcutKeysToggleDelayed); with Items do begin PopupAppearance := EXTOOLBARLib.ToolBarAppearanceEnum.ShadowBorder; with Add('',TObject(2),TObject(10)) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); with Items do begin with Add('Item 1',TObject(0),TObject(20)) do begin Check := True; Shortcut := 'ALT+1'; end; with Add('Item 2',TObject(0),TObject(30)) do begin Check := True; Checked := True; Shortcut := 'ALT+2'; end; with Add('Item 3',TObject(2),TObject(40)) do begin Shortcut := 'ALT+3'; with Items do begin with Add('Sub-Item 3.1',TObject(0),TObject(50)) do begin Radio := True; Checked := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '1'; end; with Add('Sub-Item 3.2',TObject(0),TObject(60)) do begin Radio := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '2'; end; with Add('Sub-Item 3.2',TObject(0),TObject(70)) do begin Radio := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '3'; end; end; end; end; end; end; Refresh(); OutputDebugString( ShortcutKeysInfo ); end |
239 |
How can I display shortcut keys with a different size
with AxToolBar1 do begin ShortcutKeyFormat := '`<font ;14>` + caption'; with Items do begin PopupAppearance := EXTOOLBARLib.ToolBarAppearanceEnum.ShadowBorder; with Add('',TObject(2),TObject(10)) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); with Items do begin with Add('Item 1',TObject(0),TObject(20)) do begin Check := True; Shortcut := 'ALT+1'; end; with Add('Item 2',TObject(0),TObject(30)) do begin Check := True; Checked := True; Shortcut := 'ALT+SHIFT+2'; end; with Add('Item 3',TObject(2),TObject(40)) do begin Shortcut := 'ALT+3'; with Items do begin with Add('Sub-Item 3.1',TObject(0),TObject(50)) do begin Radio := True; Checked := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '1'; end; with Add('Sub-Item 3.2',TObject(0),TObject(60)) do begin Radio := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '2'; end; with Add('Sub-Item 3.2',TObject(0),TObject(70)) do begin Radio := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '33+3'; end; end; end; end; end; end; end |
238 |
How can I display shortcut keys with a different font
with AxToolBar1 do begin set_Background(EXTOOLBARLib.BackgroundPartEnum.exShortcutKeyBackColor,$10000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exShortcutKeyForeColor,$ffffff); ShortcutKeyFormat := '`<font Stencil>` + caption'; with Items do begin PopupAppearance := EXTOOLBARLib.ToolBarAppearanceEnum.ShadowBorder; with Add('',TObject(2),TObject(10)) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); with Items do begin with Add('Item 1',TObject(0),TObject(20)) do begin Check := True; Shortcut := 'ALT+1'; end; with Add('Item 2',TObject(0),TObject(30)) do begin Check := True; Checked := True; Shortcut := 'ALT+SHIFT+2'; end; with Add('Item 3',TObject(2),TObject(40)) do begin Shortcut := 'ALT+3'; with Items do begin with Add('Sub-Item 3.1',TObject(0),TObject(50)) do begin Radio := True; Checked := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '1'; end; with Add('Sub-Item 3.2',TObject(0),TObject(60)) do begin Radio := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '2'; end; with Add('Sub-Item 3.2',TObject(0),TObject(70)) do begin Radio := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '33+3'; end; end; end; end; end; end; end |
237 |
How can I change the visual appearance of the shortcut keys (sample 3, theme)
with AxToolBar1 do begin VisualAppearance.Add(1,'XP: Button 1 1'); set_Background(EXTOOLBARLib.BackgroundPartEnum.exShortcutKeyAppearance,$1000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exShortcutKeyBackColor,$0); set_Background(EXTOOLBARLib.BackgroundPartEnum.exShortcutKeyForeColor,$0); ShortcutKeyVisible := Integer(EXTOOLBARLib.ShortcutKeyVisibleEnum.exDisplayShortcutKeysAllAvailable) Or Integer(EXTOOLBARLib.ShortcutKeyVisibleEnum.exShowShortcutKeysToggleDelayed); with Items do begin PopupAppearance := EXTOOLBARLib.ToolBarAppearanceEnum.ShadowBorder; with Add('',TObject(2),TObject(10)) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); with Items do begin with Add('Item 1',TObject(0),TObject(20)) do begin Check := True; Shortcut := 'ALT+1'; end; with Add('Item 2',TObject(0),TObject(30)) do begin Check := True; Checked := True; Shortcut := 'ALT+2'; end; with Add('Item 3',TObject(2),TObject(40)) do begin Shortcut := 'ALT+3'; with Items do begin with Add('Sub-Item 3.1',TObject(0),TObject(50)) do begin Radio := True; Checked := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '1'; end; with Add('Sub-Item 3.2',TObject(0),TObject(60)) do begin Radio := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '2'; end; with Add('Sub-Item 3.2',TObject(0),TObject(70)) do begin Radio := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '33+3'; end; end; end; end; end; end; end |
236 |
It is possible somehow to show all available shortcut keys (sample 2)
// SelectItem event - Occurs when the user selects the item. procedure TWinForm1.AxToolBar1_SelectItem(sender: System.Object; e: AxEXTOOLBARLib._IToolBarEvents_SelectItemEvent); begin with AxToolBar1 do begin ShortcutKeyVisible := Integer(EXTOOLBARLib.ShortcutKeyVisibleEnum.exDisplayShortcutKeysAllAvailable) Or Integer(EXTOOLBARLib.ShortcutKeyVisibleEnum.exShowShortcutKeysToggleDelayed); ShortcutKeyFormat := '`<c><font ;6><fgcolor 808080>` + sca + `</fgcolor></font><br><c>Key:` + keys'; ShortcutKeyPressedModifers := EXTOOLBARLib.ModifierKeyEnum.exModifierAny; ShortcutKeyFormat := ''; ShortcutKeyVisible := EXTOOLBARLib.ShortcutKeyVisibleEnum.exShowShortcutKeysToggleDelayed; end end; with AxToolBar1 do begin with Items do begin PopupAppearance := EXTOOLBARLib.ToolBarAppearanceEnum.ShadowBorder; with Add('',TObject(2),TObject(10)) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); with Items do begin with Add('Item 1',TObject(0),TObject(20)) do begin Check := True; Shortcut := 'ALT+CTRL+1'; end; with Add('Item 2',TObject(0),TObject(30)) do begin Check := True; Checked := True; Shortcut := 'ALT+SHIFT+2'; end; with Add('Item 3',TObject(2),TObject(40)) do begin Shortcut := 'ALT+3'; with Items do begin with Add('Sub-Item 3.1',TObject(0),TObject(50)) do begin Radio := True; Checked := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '1'; end; with Add('Sub-Item 3.2',TObject(0),TObject(60)) do begin Radio := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '2'; end; with Add('Sub-Item 3.2',TObject(0),TObject(70)) do begin Radio := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '33+3'; end; end; end; end; end; end; end |
235 |
It is possible somehow to show all available shortcut keys (sample 1)
// SelectItem event - Occurs when the user selects the item. procedure TWinForm1.AxToolBar1_SelectItem(sender: System.Object; e: AxEXTOOLBARLib._IToolBarEvents_SelectItemEvent); begin with AxToolBar1 do begin ShortcutKeyPressedModifers := EXTOOLBARLib.ModifierKeyEnum.exModifierAny; end end; with AxToolBar1 do begin with Items do begin PopupAppearance := EXTOOLBARLib.ToolBarAppearanceEnum.ShadowBorder; with Add('',TObject(2),TObject(10)) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); with Items do begin with Add('Item 1',TObject(0),TObject(20)) do begin Check := True; Shortcut := 'ALT+1'; end; with Add('Item 2',TObject(0),TObject(30)) do begin Check := True; Checked := True; Shortcut := 'ALT+2'; end; with Add('Item 3',TObject(2),TObject(40)) do begin Shortcut := 'ALT+3'; with Items do begin with Add('Sub-Item 3.1',TObject(0),TObject(50)) do begin Radio := True; Checked := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '1'; end; with Add('Sub-Item 3.2',TObject(0),TObject(60)) do begin Radio := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '2'; end; with Add('Sub-Item 3.2',TObject(0),TObject(70)) do begin Radio := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '33+3'; end; end; end; end; end; end; end |
234 |
How can I show the shortcut keys semi-transparent
with AxToolBar1 do begin set_Background(EXTOOLBARLib.BackgroundPartEnum.exShortcutKeyAppearance,$0); set_Background(EXTOOLBARLib.BackgroundPartEnum.exShortcutKeyBackColor,$10000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exShortcutKeyForeColor,$ffffff); ShortcutKeyVisible := Integer(EXTOOLBARLib.ShortcutKeyVisibleEnum.exDisplayShortcutKeysAllAvailable) Or Integer(EXTOOLBARLib.ShortcutKeyVisibleEnum.exShowShortcutKeysToggleDelayed); ShortcutKeyTransparent := 50; with Items do begin PopupAppearance := EXTOOLBARLib.ToolBarAppearanceEnum.ShadowBorder; with Add('',TObject(2),TObject(10)) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); with Items do begin with Add('Item 1',TObject(0),TObject(20)) do begin Check := True; Shortcut := 'ALT+1'; end; with Add('Item 2',TObject(0),TObject(30)) do begin Check := True; Checked := True; Shortcut := 'ALT+2'; end; with Add('Item 3',TObject(2),TObject(40)) do begin Shortcut := 'ALT+3'; with Items do begin with Add('Sub-Item 3.1',TObject(0),TObject(50)) do begin Radio := True; Checked := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '1'; end; with Add('Sub-Item 3.2',TObject(0),TObject(60)) do begin Radio := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '2'; end; with Add('Sub-Item 3.2',TObject(0),TObject(70)) do begin Radio := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '33+3'; end; end; end; end; end; end; end |
233 |
Is it possible somehow to display ID of each item
with AxToolBar1 do begin Debug := True; with Items do begin PopupAppearance := EXTOOLBARLib.ToolBarAppearanceEnum.ShadowBorder; with Add('',TObject(2),TObject(10)) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); with Items do begin with Add('Item 1',TObject(0),TObject(20)) do begin Check := True; Shortcut := 'ALT+1'; end; with Add('Item 2',TObject(0),TObject(30)) do begin Check := True; Checked := True; Shortcut := 'ALT+2'; end; with Add('Item 3',TObject(2),TObject(40)) do begin Shortcut := 'ALT+3'; with Items do begin with Add('Sub-Item 3.1',TObject(0),TObject(50)) do begin Radio := True; Checked := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '1'; end; with Add('Sub-Item 3.2',TObject(0),TObject(60)) do begin Radio := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '2'; end; with Add('Sub-Item 3.2',TObject(0),TObject(70)) do begin Radio := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '33+3'; end; end; end; end; end; end; end |
232 |
How can I change the visual appearance of the shortcut keys (sample 2, EBN)
with AxToolBar1 do begin VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn'); set_Background(EXTOOLBARLib.BackgroundPartEnum.exShortcutKeyAppearance,$1000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exShortcutKeyBackColor,$0); set_Background(EXTOOLBARLib.BackgroundPartEnum.exShortcutKeyForeColor,$0); ShortcutKeyVisible := Integer(EXTOOLBARLib.ShortcutKeyVisibleEnum.exDisplayShortcutKeysAllAvailable) Or Integer(EXTOOLBARLib.ShortcutKeyVisibleEnum.exShowShortcutKeysToggleDelayed); with Items do begin PopupAppearance := EXTOOLBARLib.ToolBarAppearanceEnum.ShadowBorder; with Add('',TObject(2),TObject(10)) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); with Items do begin with Add('Item 1',TObject(0),TObject(20)) do begin Check := True; Shortcut := 'ALT+1'; end; with Add('Item 2',TObject(0),TObject(30)) do begin Check := True; Checked := True; Shortcut := 'ALT+2'; end; with Add('Item 3',TObject(2),TObject(40)) do begin Shortcut := 'ALT+3'; with Items do begin with Add('Sub-Item 3.1',TObject(0),TObject(50)) do begin Radio := True; Checked := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '1'; end; with Add('Sub-Item 3.2',TObject(0),TObject(60)) do begin Radio := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '2'; end; with Add('Sub-Item 3.2',TObject(0),TObject(70)) do begin Radio := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '33+3'; end; end; end; end; end; end; end |
231 |
How can I change the visual appearance of the shortcut keys (sample 1)
with AxToolBar1 do begin set_Background(EXTOOLBARLib.BackgroundPartEnum.exShortcutKeyAppearance,$0); set_Background(EXTOOLBARLib.BackgroundPartEnum.exShortcutKeyBackColor,$10000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exShortcutKeyForeColor,$ffffff); ShortcutKeyVisible := Integer(EXTOOLBARLib.ShortcutKeyVisibleEnum.exDisplayShortcutKeysAllAvailable) Or Integer(EXTOOLBARLib.ShortcutKeyVisibleEnum.exShowShortcutKeysToggleDelayed); with Items do begin PopupAppearance := EXTOOLBARLib.ToolBarAppearanceEnum.ShadowBorder; with Add('',TObject(2),TObject(10)) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); with Items do begin with Add('Item 1',TObject(0),TObject(20)) do begin Check := True; Shortcut := 'ALT+1'; end; with Add('Item 2',TObject(0),TObject(30)) do begin Check := True; Checked := True; Shortcut := 'ALT+2'; end; with Add('Item 3',TObject(2),TObject(40)) do begin Shortcut := 'ALT+3'; with Items do begin with Add('Sub-Item 3.1',TObject(0),TObject(50)) do begin Radio := True; Checked := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '1'; end; with Add('Sub-Item 3.2',TObject(0),TObject(60)) do begin Radio := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '2'; end; with Add('Sub-Item 3.2',TObject(0),TObject(70)) do begin Radio := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '33+3'; end; end; end; end; end; end; end |
230 |
Can I show the shortcut key right after the item so it won't overlap it (sample 2)
with AxToolBar1 do begin ShortcutKeyExtPaddingH := '16 + width/2, 16 + height/2 ,16 + width/2,16 + height/2'; ShortcutKeyExtPaddingV := '16 + width/2, 16 + height/2 ,16 + width/2,16 + height/2'; ShortcutKeyVisible := Integer(EXTOOLBARLib.ShortcutKeyVisibleEnum.exDisplayShortcutKeysAllAvailable) Or Integer(EXTOOLBARLib.ShortcutKeyVisibleEnum.exShowShortcutKeysToggleDelayed); with Items do begin PopupAppearance := EXTOOLBARLib.ToolBarAppearanceEnum.ShadowBorder; with Add('',TObject(2),TObject(10)) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); with Items do begin with Add('Item 1',TObject(0),TObject(20)) do begin Check := True; Shortcut := 'ALT+1'; end; with Add('Item 2',TObject(0),TObject(30)) do begin Check := True; Checked := True; Shortcut := 'ALT+2'; end; with Add('Item 3',TObject(2),TObject(40)) do begin Shortcut := 'ALT+3'; with Items do begin with Add('Sub-Item 3.1',TObject(0),TObject(50)) do begin Radio := True; Checked := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '1'; end; with Add('Sub-Item 3.2',TObject(0),TObject(60)) do begin Radio := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '2'; end; with Add('Sub-Item 3.2',TObject(0),TObject(70)) do begin Radio := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '33+3'; end; end; end; end; end; end; end |
229 |
Can I show the shortcut key right after the item so it won't overlap it (sample 1)
with AxToolBar1 do begin ShortcutKeyExtPaddingH := 'width/2, height/2 ,width/2,height/2'; ShortcutKeyExtPaddingV := 'width/2, height/2 ,width/2,height/2'; ShortcutKeyVisible := Integer(EXTOOLBARLib.ShortcutKeyVisibleEnum.exDisplayShortcutKeysAllAvailable) Or Integer(EXTOOLBARLib.ShortcutKeyVisibleEnum.exShowShortcutKeysToggleDelayed); with Items do begin PopupAppearance := EXTOOLBARLib.ToolBarAppearanceEnum.ShadowBorder; with Add('',TObject(2),TObject(10)) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); with Items do begin with Add('Item 1',TObject(0),TObject(20)) do begin Check := True; Shortcut := 'ALT+1'; end; with Add('Item 2',TObject(0),TObject(30)) do begin Check := True; Checked := True; Shortcut := 'ALT+2'; end; with Add('Item 3',TObject(2),TObject(40)) do begin Shortcut := 'ALT+3'; with Items do begin with Add('Sub-Item 3.1',TObject(0),TObject(50)) do begin Radio := True; Checked := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '1'; end; with Add('Sub-Item 3.2',TObject(0),TObject(60)) do begin Radio := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '2'; end; with Add('Sub-Item 3.2',TObject(0),TObject(70)) do begin Radio := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '33+3'; end; end; end; end; end; end; end |
228 |
Can I specify padding for shortcut keys (sample 2)
with AxToolBar1 do begin ShortcutKeyPadding := '8,8,8,8'; with Items do begin PopupAppearance := EXTOOLBARLib.ToolBarAppearanceEnum.ShadowBorder; with Add('',TObject(2),TObject(10)) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); with Items do begin with Add('Item 1',TObject(0),TObject(20)) do begin Check := True; Shortcut := 'ALT+1'; end; with Add('Item 2',TObject(0),TObject(30)) do begin Check := True; Checked := True; Shortcut := 'ALT+2'; end; with Add('Item 3',TObject(2),TObject(40)) do begin Shortcut := 'ALT+3'; with Items do begin with Add('Sub-Item 3.1',TObject(0),TObject(50)) do begin Radio := True; Checked := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '1'; end; with Add('Sub-Item 3.2',TObject(0),TObject(60)) do begin Radio := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '2'; end; with Add('Sub-Item 3.2',TObject(0),TObject(70)) do begin Radio := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '33+3'; end; end; end; end; end; end; end |
227 |
Can I specify padding for shortcut keys (sample 1)
with AxToolBar1 do begin ShortcutKeyPadding := '0,0,0,0'; with Items do begin PopupAppearance := EXTOOLBARLib.ToolBarAppearanceEnum.ShadowBorder; with Add('',TObject(2),TObject(10)) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); with Items do begin with Add('Item 1',TObject(0),TObject(20)) do begin Check := True; Shortcut := 'ALT+1'; end; with Add('Item 2',TObject(0),TObject(30)) do begin Check := True; Checked := True; Shortcut := 'ALT+2'; end; with Add('Item 3',TObject(2),TObject(40)) do begin Shortcut := 'ALT+3'; with Items do begin with Add('Sub-Item 3.1',TObject(0),TObject(50)) do begin Radio := True; Checked := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '1'; end; with Add('Sub-Item 3.2',TObject(0),TObject(60)) do begin Radio := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '2'; end; with Add('Sub-Item 3.2',TObject(0),TObject(70)) do begin Radio := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '33+3'; end; end; end; end; end; end; end |
226 |
Is it possible to specify where the shortcut keys should be shown
with AxToolBar1 do begin ShortcutKeyAlignH := EXTOOLBARLib.ShortcutKeyAlignEnum.exShortcutKeyUpperLeft; ShortcutKeyAlignV := EXTOOLBARLib.ShortcutKeyAlignEnum.exShortcutKeyLowerRight; ShortcutKeyVisible := Integer(EXTOOLBARLib.ShortcutKeyVisibleEnum.exCloseShortcutKeysOnClick) Or Integer(EXTOOLBARLib.ShortcutKeyVisibleEnum.exDisplayShortcutKeysAllAvailable) Or Integer(EXTOOLBARLib.ShortcutKeyVisibleEnum.exShowShortcutKeysToggleDelayed); with Items do begin PopupAppearance := EXTOOLBARLib.ToolBarAppearanceEnum.ShadowBorder; with Add('',TObject(2),TObject(10)) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); with Items do begin with Add('Item 1',TObject(0),TObject(20)) do begin Check := True; Shortcut := 'ALT+1'; end; with Add('Item 2',TObject(0),TObject(30)) do begin Check := True; Checked := True; Shortcut := 'ALT+2'; end; with Add('Item 3',TObject(2),TObject(40)) do begin Shortcut := 'ALT+3'; with Items do begin with Add('Sub-Item 3.1',TObject(0),TObject(50)) do begin Radio := True; Checked := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '1'; end; with Add('Sub-Item 3.2',TObject(0),TObject(60)) do begin Radio := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '2'; end; with Add('Sub-Item 3.2',TObject(0),TObject(70)) do begin Radio := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '33+3'; end; end; end; end; end; end; end |
225 |
Can I use different shortcut modifier keys for items
with AxToolBar1 do begin with Items do begin PopupAppearance := EXTOOLBARLib.ToolBarAppearanceEnum.ShadowBorder; with Add('',TObject(2),TObject(10)) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); with Items do begin with Add('Item 1',TObject(0),TObject(20)) do begin Check := True; Shortcut := 'ALT + CTRL + 1'; end; with Add('Item 2',TObject(0),TObject(30)) do begin Check := True; Checked := True; Shortcut := 'ALT+2'; end; with Add('Item 3',TObject(2),TObject(40)) do begin Shortcut := 'CTRL + SHIFT + ALT+3'; with Items do begin with Add('Sub-Item 3.1',TObject(0),TObject(50)) do begin Radio := True; Checked := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '1'; end; with Add('Sub-Item 3.2',TObject(0),TObject(60)) do begin Radio := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '2'; end; with Add('Sub-Item 3.2',TObject(0),TObject(70)) do begin Radio := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '3 + 33'; end; end; end; end; end; Add('',Nil,Nil); Add('Press <b>CTRL or ALT',Nil,Nil); end; end |
224 |
How can I disable a shortcut key
with AxToolBar1 do begin with Items do begin PopupAppearance := EXTOOLBARLib.ToolBarAppearanceEnum.ShadowBorder; with Add('',TObject(2),TObject(10)) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); with Items do begin with Add('Item 1',TObject(0),TObject(20)) do begin Check := True; Shortcut := 'ALT+1'; end; with Add('Item 2',TObject(0),TObject(30)) do begin Enabled := False; Check := True; Checked := True; Shortcut := 'ALT+2'; end; with Add('Item 3',TObject(2),TObject(40)) do begin Shortcut := 'ALT+3'; with Items do begin with Add('Sub-Item 3.1',TObject(0),TObject(50)) do begin Radio := True; Checked := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '1'; end; with Add('Sub-Item 3.2',TObject(0),TObject(60)) do begin Radio := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '2'; end; with Add('Sub-Item 3.2',TObject(0),TObject(70)) do begin Radio := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '3 + 33'; end; end; end; end; end; end; end |
223 |
I have noticed that the shortcut keys are still visible while I clicking the control. Is it possible to hide them as soon as user clicks anywhere
with AxToolBar1 do begin ShortcutKeyVisible := Integer(EXTOOLBARLib.ShortcutKeyVisibleEnum.exCloseShortcutKeysOnClick) Or Integer(EXTOOLBARLib.ShortcutKeyVisibleEnum.exShowShortcutKeysToggleDelayed); with Items do begin PopupAppearance := EXTOOLBARLib.ToolBarAppearanceEnum.ShadowBorder; with Add('',TObject(2),TObject(10)) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); with Items do begin with Add('Item 1',TObject(0),TObject(20)) do begin Check := True; Shortcut := 'ALT+1'; end; with Add('Item 2',TObject(0),TObject(30)) do begin Check := True; Checked := True; Shortcut := 'ALT+2'; end; with Add('Item 3',TObject(2),TObject(40)) do begin Shortcut := 'ALT+3'; with Items do begin with Add('Sub-Item 3.1',TObject(0),TObject(50)) do begin Radio := True; Checked := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '1'; end; with Add('Sub-Item 3.2',TObject(0),TObject(60)) do begin Radio := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '2'; end; with Add('Sub-Item 3.2',TObject(0),TObject(70)) do begin Radio := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '3 + 33'; end; end; end; end; end; end; end |
222 |
I have a shortcut that's not currently visible, the question is if I can invoke somehow
// CheckItem event - Occurs when the user checks the item. procedure TWinForm1.AxToolBar1_CheckItem(sender: System.Object; e: AxEXTOOLBARLib._IToolBarEvents_CheckItemEvent); begin with AxToolBar1 do begin OutputDebugString( e.itm ); end end; with AxToolBar1 do begin ShortcutKeyVisible := Integer(EXTOOLBARLib.ShortcutKeyVisibleEnum.exAllowShortcutKeysIfNotShown) Or Integer(EXTOOLBARLib.ShortcutKeyVisibleEnum.exShowShortcutKeysToggleDelayed); with Items do begin PopupAppearance := EXTOOLBARLib.ToolBarAppearanceEnum.ShadowBorder; with Add('',TObject(2),TObject(10)) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); with Items do begin with Add('Item 1',TObject(0),TObject(20)) do begin Check := True; Shortcut := 'ALT+1'; end; with Add('Item 2',TObject(0),TObject(30)) do begin Check := True; Checked := True; Shortcut := 'ALT+2'; end; with Add('Item 3',TObject(2),TObject(40)) do begin Shortcut := 'ALT+3'; with Items do begin with Add('Sub-Item 3.1',TObject(0),TObject(50)) do begin Radio := True; Checked := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '1'; end; with Add('Sub-Item 3.2',TObject(0),TObject(60)) do begin Radio := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '2'; end; with Add('Sub-Item 3.2',TObject(0),TObject(70)) do begin Radio := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := 'ALT + 4'; end; end; end; end; end; Add('press ALT + 4',Nil,Nil); end; end |
221 |
Can I specify a longer delay to display shortcut once the user presses any modifer keys
with AxToolBar1 do begin ShortcutKeyVisible := Integer(EXTOOLBARLib.ShortcutKeyVisibleEnum.exLongerDelayShortcutKeys) Or Integer(EXTOOLBARLib.ShortcutKeyVisibleEnum.exShowShortcutKeysToggleDelayed); with Items do begin PopupAppearance := EXTOOLBARLib.ToolBarAppearanceEnum.ShadowBorder; with Add('',TObject(2),TObject(10)) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); with Items do begin with Add('Item 1',TObject(0),TObject(20)) do begin Check := True; Shortcut := 'ALT+1'; end; with Add('Item 2',TObject(0),TObject(30)) do begin Check := True; Checked := True; Shortcut := 'ALT+2'; end; with Add('Item 3',TObject(2),TObject(40)) do begin Shortcut := 'ALT+3'; with Items do begin with Add('Sub-Item 3.1',TObject(0),TObject(50)) do begin Radio := True; Checked := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '1'; end; with Add('Sub-Item 3.2',TObject(0),TObject(60)) do begin Radio := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '2'; end; with Add('Sub-Item 3.2',TObject(0),TObject(70)) do begin Radio := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '3+33'; end; end; end; end; end; end; end |
220 |
How can I display extended shortcut keys
with AxToolBar1 do begin ShortcutKeyVisible := Integer(EXTOOLBARLib.ShortcutKeyVisibleEnum.exDisplayShortcutKeysAllAvailable) Or Integer(EXTOOLBARLib.ShortcutKeyVisibleEnum.exShowShortcutKeysToggleDelayed); with Items do begin PopupAppearance := EXTOOLBARLib.ToolBarAppearanceEnum.ShadowBorder; with Add('',TObject(2),TObject(10)) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); with Items do begin with Add('Item 1',TObject(0),TObject(20)) do begin Check := True; Shortcut := 'ALT+1'; end; with Add('Item 2',TObject(0),TObject(30)) do begin Check := True; Checked := True; Shortcut := 'ALT+2'; end; with Add('Item 3',TObject(2),TObject(40)) do begin Shortcut := 'ALT+3'; with Items do begin with Add('Sub-Item 3.1',TObject(0),TObject(50)) do begin Radio := True; Checked := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '1'; end; with Add('Sub-Item 3.2',TObject(0),TObject(60)) do begin Radio := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '2'; end; with Add('Sub-Item 3.2',TObject(0),TObject(70)) do begin Radio := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '333'; end; end; end; end; end; end; end |
219 |
Is it possible to disable the shortcut keys, whithout changing the Shortcut property
with AxToolBar1 do begin ShortcutKeyVisible := Integer(EXTOOLBARLib.ShortcutKeyVisibleEnum.exDisplayShortcutKeysAllAvailable) Or Integer(EXTOOLBARLib.ShortcutKeyVisibleEnum.exDisableShortcutKeys) Or Integer(EXTOOLBARLib.ShortcutKeyVisibleEnum.exShowShortcutKeysToggleDelayed); with Items do begin PopupAppearance := EXTOOLBARLib.ToolBarAppearanceEnum.ShadowBorder; with Add('',TObject(2),TObject(10)) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); with Items do begin with Add('Item 1',TObject(0),TObject(20)) do begin Check := True; Shortcut := 'ALT+1'; end; with Add('Item 2',TObject(0),TObject(30)) do begin Check := True; Checked := True; Shortcut := 'ALT+2'; end; with Add('Item 3',TObject(2),TObject(40)) do begin Shortcut := 'ALT+3'; with Items do begin with Add('Sub-Item 3.1',TObject(0),TObject(50)) do begin Radio := True; Checked := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '1'; end; with Add('Sub-Item 3.2',TObject(0),TObject(60)) do begin Radio := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '2'; end; with Add('Sub-Item 3.2',TObject(0),TObject(70)) do begin Radio := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '33+3'; end; end; end; end; end; end; end |
218 |
How can display the shortcut keys only when modifier keys are pressed
with AxToolBar1 do begin ShortcutKeyVisible := EXTOOLBARLib.ShortcutKeyVisibleEnum.exShowShortcutKeysPressOnly; with Items do begin PopupAppearance := EXTOOLBARLib.ToolBarAppearanceEnum.ShadowBorder; with Add('',TObject(2),TObject(10)) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); with Items do begin with Add('Item 1',TObject(0),TObject(20)) do begin Check := True; Shortcut := 'ALT+1'; end; with Add('Item 2',TObject(0),TObject(30)) do begin Check := True; Checked := True; Shortcut := 'ALT+2'; end; with Add('Item 3',TObject(2),TObject(40)) do begin Shortcut := 'ALT+3'; with Items do begin with Add('Sub-Item 3.1',TObject(0),TObject(50)) do begin Radio := True; Checked := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '1'; end; with Add('Sub-Item 3.2',TObject(0),TObject(60)) do begin Radio := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '2'; end; with Add('Sub-Item 3.2',TObject(0),TObject(70)) do begin Radio := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '3+33'; end; end; end; end; end; end; end |
217 |
How can I assign a shortcut key to an item
with AxToolBar1 do begin with Items do begin PopupAppearance := EXTOOLBARLib.ToolBarAppearanceEnum.ShadowBorder; with Add('',TObject(2),TObject(10)) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); with Items do begin with Add('Item 1',TObject(0),TObject(20)) do begin Check := True; Shortcut := 'ALT+1'; end; with Add('Item 2',TObject(0),TObject(30)) do begin Check := True; Checked := True; Shortcut := 'ALT+2'; end; with Add('Item 3',TObject(2),TObject(40)) do begin Shortcut := 'ALT+3'; with Items do begin with Add('Sub-Item 3.1',TObject(0),TObject(50)) do begin Radio := True; Checked := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '1'; end; with Add('Sub-Item 3.2',TObject(0),TObject(60)) do begin Radio := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '2'; end; with Add('Sub-Item 3.2',TObject(0),TObject(70)) do begin Radio := True; CloseOnClick := EXTOOLBARLib.CloseOnClickEnum.exCloseOnClick; Shortcut := '33+3'; end; end; end; end; end; end; end |
216 |
Is it possible to insert items at a specified position during runtime, without rebuilding the entire item which hosts the items
|
215 |
Is it possible to have a popup on a radio button when it is checked
with AxToolBar1 do begin ToString := '[group=0x03][id=0](Link[id=10][typ=2][grp=100][chk=1],Move To[id=20][typ=2][grp=100][spchk][arrow=0]())'; with Items.Item[TObject(20)] do begin Items.Add('Item A',TObject(0),TObject(1000)); Items.Add('Item B',TObject(0),TObject(1001)); Items.Add('Item C',TObject(0),TObject(1002)); end; end |
214 |
Is it possible to minimize the control, once the user clicks a button
// CheckItem event - Occurs when the user checks the item. procedure TWinForm1.AxToolBar1_CheckItem(sender: System.Object; e: AxEXTOOLBARLib._IToolBarEvents_CheckItemEvent); begin with AxToolBar1 do begin AxToolBar1.Items.Item[TObject(-99)].Visible := AxToolBar1.Items.Item[TObject(-999)].Checked; OutputDebugString( 'RequiredHeight' ); OutputDebugString( RequiredHeight ); end end; // UncheckItem event - Occurs when the user unchecks the item. procedure TWinForm1.AxToolBar1_UncheckItem(sender: System.Object; e: AxEXTOOLBARLib._IToolBarEvents_UncheckItemEvent); begin with AxToolBar1 do begin AxToolBar1.Items.Item[TObject(-99)].Visible := AxToolBar1.Items.Item[TObject(-999)].Checked; OutputDebugString( 'RequiredHeight' ); OutputDebugString( RequiredHeight ); end end; with AxToolBar1 do begin with Items do begin ToString := '[id=0][group=0x03](),[id=-99][bg=0x01000000][group=0x03][itemspad=4,4,4,4]([id=9000])'; with Add('Normal',TObject(0),TObject(-999)) do begin Check := True; Checked := AxToolBar1.Item[TObject(-99)].Visible; X := 'width - iwidth'; end; with Item[TObject(0)].Items do begin Add('',TObject(0),TObject(0)).Padding := '8,0,0,0'; var_Item3 := Add('New Page',Nil,Nil); with var_Item3 do begin ToString := '[id=0][typ=2][chk=1][spchk=-1][show=1][grp=10][bghot=0x12000000][bgsel=0x11000000][bgselhot=0x14000000][group=0x03][tab=9000][pa' + 'd=4,0,4,0][popupoffset=-4,-1]([id=0][group=0x03]([id=0][group=0x03]))'; ID := 200; Caption := 'Page1'; ShowPopupAlign := EXTOOLBARLib.ShowPopupAlignEnum.exShowPopupAlignDown; with Items.Item[TObject(0)] do begin var_Item := Items.Add('New Group',Nil,Nil); with var_Item do begin ToString := '[id=0][group=0x03][itemspad=4,4,4,18][itemsbg=0x02000000][itemsbghot=0x04000000]()'; Caption := '<b><font ;14>A'; with Items do begin BackgroundExt := 'bottom[16,text=`<fgcolor A0A0A0><font ;8>Horizontal`,align=0x11]'; with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopupEqualWidth) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); Caption := ''; with Items do begin with Add('R1',Nil,Nil) do begin RadioGroup := 100; Radio := True; ShowCheckedAsSelected := EXTOOLBARLib.ShowCheckedAsSelectedEnum.exDisplayItemHighlight; Checked := False; end; with Add('R2',Nil,Nil) do begin RadioGroup := 100; Radio := True; ShowCheckedAsSelected := EXTOOLBARLib.ShowCheckedAsSelectedEnum.exDisplayItemHighlight; Checked := True; end; with Add('R3',Nil,Nil) do begin RadioGroup := 100; Radio := True; ShowCheckedAsSelected := EXTOOLBARLib.ShowCheckedAsSelectedEnum.exDisplayItemHighlight; Checked := False; end; end; end; end; end; var_Item1 := Items.Add('New Group',Nil,Nil); with var_Item1 do begin ToString := '[id=0][group=0x03][itemspad=4,4,4,18][itemsbg=0x02000000][itemsbghot=0x04000000]()'; Caption := '<b><font ;14>B'; with Items do begin BackgroundExt := 'bottom[16,text=`<fgcolor A0A0A0><font ;8>Vertical`,align=0x11]'; with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopupVertical) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopupEqualHeight) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); Caption := ''; with Items do begin with Add('C1',Nil,Nil) do begin Check := True; Checked := True; end; with Add('C2',Nil,Nil) do begin Check := True; Checked := False; end; with Add('C3',Nil,Nil) do begin Check := True; Checked := True; end; end; end; end; end; Items.Add('',TObject(0),TObject(0)).Padding := '4,0,0,0'; var_Item2 := Items.Add('New Group',Nil,Nil); with var_Item2 do begin ToString := '[id=0][group=0x03][itemspad=4,4,4,18][itemsbg=0x02000000][itemsbghot=0x04000000]()'; Caption := ''; with Items do begin BackgroundExt := 'bottom[16,text=`<fgcolor A0A0A0><font ;8>Mixt`,align=0x11]'; with Add('',TObject(0),Nil) do begin AllowEdit := Integer(EXTOOLBARLib.AllowEditEnum.exItemEditVertical) Or Integer(EXTOOLBARLib.AllowEditEnum.exItemEditSlider); ItemHeight := 76; EditBorder := EXTOOLBARLib.EditBorderEnum.exEditBorderNone; EditValue := TObject(25); end; with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopupVertical) Or Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); Caption := ''; with Items do begin with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); with Items do begin with Add('Button1',TObject(2),Nil) do begin ShowAsButton := Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsSelectButtonBottom) Or Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsButtonAutoSize); with Items do begin Add('Item 1',Nil,Nil); Add('Item 2',Nil,Nil); Add('Item 3',Nil,Nil); end; end; Add('',TObject(0),TObject(0)).Padding := '4,0,0,0'; with Add('Button2',TObject(2),Nil) do begin ShowAsButton := Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsSelectButtonBottom) Or Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsButtonAutoSize); with Items do begin Add('Item 4',Nil,Nil); Add('Item 5',Nil,Nil); Add('Item 6',Nil,Nil); end; end; end; end; with Add('Popup',TObject(2),Nil) do begin Alignment := EXTOOLBARLib.AlignmentEnum.exCenter; with Items do begin Add('Item 7',Nil,Nil).Check := True; Add('Item 8',Nil,Nil); with Add('Item 9',TObject(2),Nil).Items do begin Add('Item 10',Nil,Nil); Add('Item 11',Nil,Nil); Add('Item 12',Nil,Nil); end; end; end; end; end; end; end; end; end; var_Item4 := Add('New Page',Nil,Nil); with var_Item4 do begin ToString := '[id=0][typ=2][chk=0][spchk=-1][show=1][grp=10][bghot=0x12000000][bgsel=0x11000000][bgselhot=0x14000000][group=0x03][tab=9000][pa' + 'd=4,0,4,0][popupoffset=-4,-1]([id=0][group=0x03]([id=0][group=0x03]))'; ID := 300; Caption := 'Page2'; ShowPopupAlign := EXTOOLBARLib.ShowPopupAlignEnum.exShowPopupAlignDown; with Items.Item[TObject(0)] do begin with Items do begin with Add('S1',Nil,Nil) do begin ItemHeight := 88; AllowEdit := Integer(EXTOOLBARLib.AllowEditEnum.exItemEditVertical) Or Integer(EXTOOLBARLib.AllowEditEnum.exItemEditSpin) Or Integer(EXTOOLBARLib.AllowEditEnum.exItemEditProgress); EditValue := TObject(25); end; with Add('S2',Nil,Nil) do begin ItemHeight := 88; AllowEdit := Integer(EXTOOLBARLib.AllowEditEnum.exItemEditVertical) Or Integer(EXTOOLBARLib.AllowEditEnum.exItemEditSpin) Or Integer(EXTOOLBARLib.AllowEditEnum.exItemEditProgress); EditValue := TObject(50); end; with Add('S3',Nil,Nil) do begin ItemHeight := 88; AllowEdit := Integer(EXTOOLBARLib.AllowEditEnum.exItemEditVertical) Or Integer(EXTOOLBARLib.AllowEditEnum.exItemEditSpin) Or Integer(EXTOOLBARLib.AllowEditEnum.exItemEditProgress); EditValue := TObject(75); end; end; end; end; Add('',TObject(0),TObject(0)).Padding := '8,0,0,0'; end; end; PopupFlatAppearance := False; with VisualAppearance do begin Add(1,'C:\Program Files\Exontrol\ExToolBar\Sample\EBN\MSOffice-Ribbon\msor_background.ebn'); Add(2,'C:\Program Files\Exontrol\ExToolBar\Sample\EBN\MSOffice-Ribbon\msor_groupt.ebn'); Add(3,'C:\Program Files\Exontrol\ExToolBar\Sample\EBN\MSOffice-Ribbon\msor_groupo.ebn'); Add(4,'C:\Program Files\Exontrol\ExToolBar\Sample\EBN\MSOffice-Ribbon\msor_grouphot.ebn'); Add(5,'C:\Program Files\Exontrol\ExToolBar\Sample\EBN\MSOffice-Ribbon\msor_frameh.ebn'); Add(6,'C:\Program Files\Exontrol\ExToolBar\Sample\EBN\MSOffice-Ribbon\msor_framehs.ebn'); Add(7,'C:\Program Files\Exontrol\ExToolBar\Sample\EBN\MSOffice-Ribbon\msor_framehi.ebn'); Add(8,'C:\Program Files\Exontrol\ExToolBar\Sample\EBN\MSOffice-Ribbon\msor_framehe.ebn'); Add(9,'C:\Program Files\Exontrol\ExToolBar\Sample\EBN\MSOffice-Ribbon\msor_framevs.ebn'); Add(10,'C:\Program Files\Exontrol\ExToolBar\Sample\EBN\MSOffice-Ribbon\msor_framevi.ebn'); Add(11,'C:\Program Files\Exontrol\ExToolBar\Sample\EBN\MSOffice-Ribbon\msor_frameve.ebn'); Add(12,'C:\Program Files\Exontrol\ExToolBar\Sample\EBN\MSOffice-Ribbon\msor_select.ebn'); Add(13,'C:\Program Files\Exontrol\ExToolBar\Sample\EBN\MSOffice-Ribbon\msor_bordert.ebn'); Add(14,'C:\Program Files\Exontrol\ExToolBar\Sample\EBN\MSOffice-Ribbon\msor_buttond.ebn'); Add(15,'C:\Program Files\Exontrol\ExToolBar\Sample\EBN\MSOffice-Ribbon\msor_buttonu.ebn'); Add(16,'C:\Program Files\Exontrol\ExToolBar\Sample\EBN\MSOffice-Ribbon\msor_tab.ebn'); Add(17,'CP:16 0 0 0 1'); Add(18,'C:\Program Files\Exontrol\ExToolBar\Sample\EBN\MSOffice-Ribbon\msor_tabhot.ebn'); Add(19,'C:\Program Files\Exontrol\ExToolBar\Sample\EBN\MSOffice-Ribbon\msor_tabselhot.ebn'); Add(20,'CP:19 0 0 0 1'); end; ForeColor := Color.FromArgb(21,66,139); (GetOcx() as EXTOOLBARLib.ToolBar).SelBackColor := $e000000; LocalAppearance := EXTOOLBARLib.ToolBarAppearanceEnum.ShadowBorder; Appearance := EXTOOLBARLib.ToolBarAppearanceEnum($1000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exToolTipAppearance,Appearance); set_Background(EXTOOLBARLib.BackgroundPartEnum($2),$d000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exGroupPopupFrameSingle,$5000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exGroupPopupFrameHStart,$6000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exGroupPopupFrameHIntermediate,$7000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exGroupPopupFrameHEnd,$8000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exGroupPopupFrameVStart,$9000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exGroupPopupFrameVIntermediate,$a000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exGroupPopupFrameVEnd,$b000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exMenuHotBackColor,$c000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exMenuSelHotBackColor,$f000000); Refresh(); end |
213 |
Is there any debug option, so I can see the IDs of the items I have in the control
with AxToolBar1 do begin ArrangeItemsAs := EXTOOLBARLib.ArrangeItemsEnum.exArrangeItemsHorizontal; Debug := True; with Items do begin with Add('Expand',TObject(2),Nil) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopupVertical) Or Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); Check := True; ShowPopupOnChecked := True; with Items do begin Padding := '22,0,0,0'; Add('Radio 1',Nil,Nil).Radio := True; Add('Radio 2',Nil,Nil).Radio := True; with Add('Radio 3',Nil,Nil) do begin Radio := True; Checked := True; end; end; Checked := True; end; Add('',Nil,Nil).ToString := 'Expand[typ=1][chk=1][spchk=-1][group=0x0103][itemspad=22,0,0,0](Radio 1[id=20][typ=2],Radio 2[id=30][typ=2],Radio 3[id=40][typ=2' + '][chk=1])'; end; Refresh(); end |
212 |
Microsoft Office - Ribbon Like - Minimized
with AxToolBar1 do begin with Items do begin ToString := '[id=0][group=0x03](),[id=-99][bg=0x01000000][group=0x03][itemspad=4,4,4,4]([id=9000])'; Item[TObject(-99)].Visible := False; with Item[TObject(0)].Items do begin Add('',TObject(0),TObject(0)).Padding := '8,0,0,0'; var_Item3 := Add('New Page',Nil,Nil); with var_Item3 do begin ToString := '[id=0][typ=2][chk=1][spchk=-1][show=1][grp=10][bghot=0x12000000][bgsel=0x11000000][bgselhot=0x14000000][group=0x03][tab=9000][pa' + 'd=4,0,4,0][popupoffset=-4,-1]([id=0][group=0x03]([id=0][group=0x03]))'; ID := 200; Caption := 'Page1'; ShowPopupAlign := EXTOOLBARLib.ShowPopupAlignEnum.exShowPopupAlignDown; with Items.Item[TObject(0)] do begin var_Item := Items.Add('New Group',Nil,Nil); with var_Item do begin ToString := '[id=0][group=0x03][itemspad=4,4,4,18][itemsbg=0x02000000][itemsbghot=0x04000000]()'; Caption := '<b><font ;14>A'; with Items do begin BackgroundExt := 'bottom[16,text=`<fgcolor A0A0A0><font ;8>Horizontal`,align=0x11]'; with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopupEqualWidth) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); Caption := ''; with Items do begin with Add('R1',Nil,Nil) do begin RadioGroup := 100; Radio := True; ShowCheckedAsSelected := EXTOOLBARLib.ShowCheckedAsSelectedEnum.exDisplayItemHighlight; Checked := False; end; with Add('R2',Nil,Nil) do begin RadioGroup := 100; Radio := True; ShowCheckedAsSelected := EXTOOLBARLib.ShowCheckedAsSelectedEnum.exDisplayItemHighlight; Checked := True; end; with Add('R3',Nil,Nil) do begin RadioGroup := 100; Radio := True; ShowCheckedAsSelected := EXTOOLBARLib.ShowCheckedAsSelectedEnum.exDisplayItemHighlight; Checked := False; end; end; end; end; end; var_Item1 := Items.Add('New Group',Nil,Nil); with var_Item1 do begin ToString := '[id=0][group=0x03][itemspad=4,4,4,18][itemsbg=0x02000000][itemsbghot=0x04000000]()'; Caption := '<b><font ;14>B'; with Items do begin BackgroundExt := 'bottom[16,text=`<fgcolor A0A0A0><font ;8>Vertical`,align=0x11]'; with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopupVertical) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopupEqualHeight) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); Caption := ''; with Items do begin with Add('C1',Nil,Nil) do begin Check := True; Checked := True; end; with Add('C2',Nil,Nil) do begin Check := True; Checked := False; end; with Add('C3',Nil,Nil) do begin Check := True; Checked := True; end; end; end; end; end; Items.Add('',TObject(0),TObject(0)).Padding := '4,0,0,0'; var_Item2 := Items.Add('New Group',Nil,Nil); with var_Item2 do begin ToString := '[id=0][group=0x03][itemspad=4,4,4,18][itemsbg=0x02000000][itemsbghot=0x04000000]()'; Caption := ''; with Items do begin BackgroundExt := 'bottom[16,text=`<fgcolor A0A0A0><font ;8>Mixt`,align=0x11]'; with Add('',TObject(0),Nil) do begin AllowEdit := Integer(EXTOOLBARLib.AllowEditEnum.exItemEditVertical) Or Integer(EXTOOLBARLib.AllowEditEnum.exItemEditSlider); ItemHeight := 76; EditBorder := EXTOOLBARLib.EditBorderEnum.exEditBorderNone; EditValue := TObject(25); end; with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopupVertical) Or Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); Caption := ''; with Items do begin with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); with Items do begin with Add('Button1',TObject(2),Nil) do begin ShowAsButton := Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsSelectButtonBottom) Or Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsButtonAutoSize); with Items do begin Add('Item 1',Nil,Nil); Add('Item 2',Nil,Nil); Add('Item 3',Nil,Nil); end; end; Add('',TObject(0),TObject(0)).Padding := '4,0,0,0'; with Add('Button2',TObject(2),Nil) do begin ShowAsButton := Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsSelectButtonBottom) Or Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsButtonAutoSize); with Items do begin Add('Item 4',Nil,Nil); Add('Item 5',Nil,Nil); Add('Item 6',Nil,Nil); end; end; end; end; with Add('Popup',TObject(2),Nil) do begin Alignment := EXTOOLBARLib.AlignmentEnum.exCenter; with Items do begin Add('Item 7',Nil,Nil).Check := True; Add('Item 8',Nil,Nil); with Add('Item 9',TObject(2),Nil).Items do begin Add('Item 10',Nil,Nil); Add('Item 11',Nil,Nil); Add('Item 12',Nil,Nil); end; end; end; end; end; end; end; end; end; var_Item4 := Add('New Page',Nil,Nil); with var_Item4 do begin ToString := '[id=0][typ=2][chk=0][spchk=-1][show=1][grp=10][bghot=0x12000000][bgsel=0x11000000][bgselhot=0x14000000][group=0x03][tab=9000][pa' + 'd=4,0,4,0][popupoffset=-4,-1]([id=0][group=0x03]([id=0][group=0x03]))'; ID := 300; Caption := 'Page2'; ShowPopupAlign := EXTOOLBARLib.ShowPopupAlignEnum.exShowPopupAlignDown; with Items.Item[TObject(0)] do begin with Items do begin with Add('S1',Nil,Nil) do begin ItemHeight := 88; AllowEdit := Integer(EXTOOLBARLib.AllowEditEnum.exItemEditVertical) Or Integer(EXTOOLBARLib.AllowEditEnum.exItemEditSpin) Or Integer(EXTOOLBARLib.AllowEditEnum.exItemEditProgress); EditValue := TObject(25); end; with Add('S2',Nil,Nil) do begin ItemHeight := 88; AllowEdit := Integer(EXTOOLBARLib.AllowEditEnum.exItemEditVertical) Or Integer(EXTOOLBARLib.AllowEditEnum.exItemEditSpin) Or Integer(EXTOOLBARLib.AllowEditEnum.exItemEditProgress); EditValue := TObject(50); end; with Add('S3',Nil,Nil) do begin ItemHeight := 88; AllowEdit := Integer(EXTOOLBARLib.AllowEditEnum.exItemEditVertical) Or Integer(EXTOOLBARLib.AllowEditEnum.exItemEditSpin) Or Integer(EXTOOLBARLib.AllowEditEnum.exItemEditProgress); EditValue := TObject(75); end; end; end; end; Add('',TObject(0),TObject(0)).Padding := '8,0,0,0'; end; end; PopupFlatAppearance := False; with VisualAppearance do begin Add(1,'C:\Program Files\Exontrol\ExToolBar\Sample\EBN\MSOffice-Ribbon\msor_background.ebn'); Add(2,'C:\Program Files\Exontrol\ExToolBar\Sample\EBN\MSOffice-Ribbon\msor_groupt.ebn'); Add(3,'C:\Program Files\Exontrol\ExToolBar\Sample\EBN\MSOffice-Ribbon\msor_groupo.ebn'); Add(4,'C:\Program Files\Exontrol\ExToolBar\Sample\EBN\MSOffice-Ribbon\msor_grouphot.ebn'); Add(5,'C:\Program Files\Exontrol\ExToolBar\Sample\EBN\MSOffice-Ribbon\msor_frameh.ebn'); Add(6,'C:\Program Files\Exontrol\ExToolBar\Sample\EBN\MSOffice-Ribbon\msor_framehs.ebn'); Add(7,'C:\Program Files\Exontrol\ExToolBar\Sample\EBN\MSOffice-Ribbon\msor_framehi.ebn'); Add(8,'C:\Program Files\Exontrol\ExToolBar\Sample\EBN\MSOffice-Ribbon\msor_framehe.ebn'); Add(9,'C:\Program Files\Exontrol\ExToolBar\Sample\EBN\MSOffice-Ribbon\msor_framevs.ebn'); Add(10,'C:\Program Files\Exontrol\ExToolBar\Sample\EBN\MSOffice-Ribbon\msor_framevi.ebn'); Add(11,'C:\Program Files\Exontrol\ExToolBar\Sample\EBN\MSOffice-Ribbon\msor_frameve.ebn'); Add(12,'C:\Program Files\Exontrol\ExToolBar\Sample\EBN\MSOffice-Ribbon\msor_select.ebn'); Add(13,'C:\Program Files\Exontrol\ExToolBar\Sample\EBN\MSOffice-Ribbon\msor_bordert.ebn'); Add(14,'C:\Program Files\Exontrol\ExToolBar\Sample\EBN\MSOffice-Ribbon\msor_buttond.ebn'); Add(15,'C:\Program Files\Exontrol\ExToolBar\Sample\EBN\MSOffice-Ribbon\msor_buttonu.ebn'); Add(16,'C:\Program Files\Exontrol\ExToolBar\Sample\EBN\MSOffice-Ribbon\msor_tab.ebn'); Add(17,'CP:16 0 0 0 1'); Add(18,'C:\Program Files\Exontrol\ExToolBar\Sample\EBN\MSOffice-Ribbon\msor_tabhot.ebn'); Add(19,'C:\Program Files\Exontrol\ExToolBar\Sample\EBN\MSOffice-Ribbon\msor_tabselhot.ebn'); Add(20,'CP:19 0 0 0 1'); end; ForeColor := Color.FromArgb(21,66,139); (GetOcx() as EXTOOLBARLib.ToolBar).SelBackColor := $e000000; LocalAppearance := EXTOOLBARLib.ToolBarAppearanceEnum.ShadowBorder; Appearance := EXTOOLBARLib.ToolBarAppearanceEnum($1000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exToolTipAppearance,Appearance); set_Background(EXTOOLBARLib.BackgroundPartEnum($2),$d000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exGroupPopupFrameSingle,$5000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exGroupPopupFrameHStart,$6000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exGroupPopupFrameHIntermediate,$7000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exGroupPopupFrameHEnd,$8000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exGroupPopupFrameVStart,$9000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exGroupPopupFrameVIntermediate,$a000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exGroupPopupFrameVEnd,$b000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exMenuHotBackColor,$c000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exMenuSelHotBackColor,$f000000); Refresh(); end |
211 |
Microsoft Paint - Ribbon Like - Minimized
with AxToolBar1 do begin with Items do begin ToString := '[id=0][group=0x03](),[id=-99][bg=0x01000000][group=0x03][itemspad=4,4,4,4]([id=9000])'; Item[TObject(-99)].Visible := False; with Item[TObject(0)].Items do begin Add('',TObject(0),TObject(0)).Padding := '8,0,0,0'; var_Item3 := Add('New Page',Nil,Nil); with var_Item3 do begin ToString := '[id=0][typ=2][chk=1][spchk=-1][show=1][grp=10][bghot=0x12000000][bgsel=0x11000000][bgselhot=0x14000000][group=0x03][tab=9000][pa' + 'd=4,0,4,0][popupoffset=-4,-1]([id=0][group=0x03]([id=0][group=0x03]))'; ID := 200; Caption := 'Page1'; ShowPopupAlign := EXTOOLBARLib.ShowPopupAlignEnum.exShowPopupAlignDown; with Items.Item[TObject(0)] do begin var_Item := Items.Add('New Group',Nil,Nil); with var_Item do begin ToString := '[id=0][group=0x03][itemspad=4,4,4,18][itemsbg=0x02000000][itemsbghot=0x04000000]()'; Caption := '<b><font ;14>A'; with Items do begin BackgroundExt := 'bottom[16,text=`<fgcolor A0A0A0><font ;8>Horizontal`,align=0x11]'; with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopupEqualWidth) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); Caption := ''; with Items do begin with Add('R1',Nil,Nil) do begin RadioGroup := 100; Radio := True; ShowCheckedAsSelected := EXTOOLBARLib.ShowCheckedAsSelectedEnum.exDisplayItemHighlight; Checked := False; end; with Add('R2',Nil,Nil) do begin RadioGroup := 100; Radio := True; ShowCheckedAsSelected := EXTOOLBARLib.ShowCheckedAsSelectedEnum.exDisplayItemHighlight; Checked := True; end; with Add('R3',Nil,Nil) do begin RadioGroup := 100; Radio := True; ShowCheckedAsSelected := EXTOOLBARLib.ShowCheckedAsSelectedEnum.exDisplayItemHighlight; Checked := False; end; end; end; end; end; var_Item1 := Items.Add('New Group',Nil,Nil); with var_Item1 do begin ToString := '[id=0][group=0x03][itemspad=4,4,4,18][itemsbg=0x02000000][itemsbghot=0x04000000]()'; Caption := '<b><font ;14>B'; with Items do begin BackgroundExt := 'bottom[16,text=`<fgcolor A0A0A0><font ;8>Vertical`,align=0x11]'; with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopupVertical) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopupEqualHeight) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); Caption := ''; with Items do begin with Add('C1',Nil,Nil) do begin Check := True; Checked := True; end; with Add('C2',Nil,Nil) do begin Check := True; Checked := False; end; with Add('C3',Nil,Nil) do begin Check := True; Checked := True; end; end; end; end; end; Items.Add('',TObject(0),TObject(0)).Padding := '4,0,0,0'; var_Item2 := Items.Add('New Group',Nil,Nil); with var_Item2 do begin ToString := '[id=0][group=0x03][itemspad=4,4,4,18][itemsbg=0x02000000][itemsbghot=0x04000000]()'; Caption := ''; with Items do begin BackgroundExt := 'bottom[16,text=`<fgcolor A0A0A0><font ;8>Mixt`,align=0x11]'; with Add('',TObject(0),Nil) do begin AllowEdit := Integer(EXTOOLBARLib.AllowEditEnum.exItemEditVertical) Or Integer(EXTOOLBARLib.AllowEditEnum.exItemEditSlider); ItemHeight := 76; EditBorder := EXTOOLBARLib.EditBorderEnum.exEditBorderNone; EditValue := TObject(25); end; with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopupVertical) Or Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); Caption := ''; with Items do begin with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); with Items do begin with Add('Button1',TObject(2),Nil) do begin ShowAsButton := Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsSelectButtonBottom) Or Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsButtonAutoSize); with Items do begin Add('Item 1',Nil,Nil); Add('Item 2',Nil,Nil); Add('Item 3',Nil,Nil); end; end; Add('',TObject(0),TObject(0)).Padding := '4,0,0,0'; with Add('Button2',TObject(2),Nil) do begin ShowAsButton := Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsSelectButtonBottom) Or Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsButtonAutoSize); with Items do begin Add('Item 4',Nil,Nil); Add('Item 5',Nil,Nil); Add('Item 6',Nil,Nil); end; end; end; end; with Add('Popup',TObject(2),Nil) do begin Alignment := EXTOOLBARLib.AlignmentEnum.exCenter; with Items do begin Add('Item 7',Nil,Nil).Check := True; Add('Item 8',Nil,Nil); with Add('Item 9',TObject(2),Nil).Items do begin Add('Item 10',Nil,Nil); Add('Item 11',Nil,Nil); Add('Item 12',Nil,Nil); end; end; end; end; end; end; end; end; end; var_Item4 := Add('New Page',Nil,Nil); with var_Item4 do begin ToString := '[id=0][typ=2][chk=0][spchk=-1][show=1][grp=10][bghot=0x12000000][bgsel=0x11000000][bgselhot=0x14000000][group=0x03][tab=9000][pa' + 'd=4,0,4,0][popupoffset=-4,-1]([id=0][group=0x03]([id=0][group=0x03]))'; ID := 300; Caption := 'Page2'; ShowPopupAlign := EXTOOLBARLib.ShowPopupAlignEnum.exShowPopupAlignDown; with Items.Item[TObject(0)] do begin with Items do begin with Add('S1',Nil,Nil) do begin ItemHeight := 88; AllowEdit := Integer(EXTOOLBARLib.AllowEditEnum.exItemEditVertical) Or Integer(EXTOOLBARLib.AllowEditEnum.exItemEditSpin) Or Integer(EXTOOLBARLib.AllowEditEnum.exItemEditProgress); EditValue := TObject(25); end; with Add('S2',Nil,Nil) do begin ItemHeight := 88; AllowEdit := Integer(EXTOOLBARLib.AllowEditEnum.exItemEditVertical) Or Integer(EXTOOLBARLib.AllowEditEnum.exItemEditSpin) Or Integer(EXTOOLBARLib.AllowEditEnum.exItemEditProgress); EditValue := TObject(50); end; with Add('S3',Nil,Nil) do begin ItemHeight := 88; AllowEdit := Integer(EXTOOLBARLib.AllowEditEnum.exItemEditVertical) Or Integer(EXTOOLBARLib.AllowEditEnum.exItemEditSpin) Or Integer(EXTOOLBARLib.AllowEditEnum.exItemEditProgress); EditValue := TObject(75); end; end; end; end; Add('',TObject(0),TObject(0)).Padding := '8,0,0,0'; end; end; PopupFlatAppearance := False; with VisualAppearance do begin Add(1,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_background.ebn'); Add(2,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_groupt.ebn'); Add(3,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_groupo.ebn'); Add(4,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_grouphot.ebn'); Add(5,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_frameh.ebn'); Add(6,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_framehs.ebn'); Add(7,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_framehi.ebn'); Add(8,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_framehe.ebn'); Add(9,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_framevs.ebn'); Add(10,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_framevi.ebn'); Add(11,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_frameve.ebn'); Add(12,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_select.ebn'); Add(13,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_bordert.ebn'); Add(14,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_buttond.ebn'); Add(15,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_buttonu.ebn'); Add(16,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_tab.ebn'); Add(17,'CP:16 0 0 0 1'); Add(18,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_tabhot.ebn'); Add(19,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_tabselhot.ebn'); Add(20,'CP:19 0 0 0 1'); end; LocalAppearance := EXTOOLBARLib.ToolBarAppearanceEnum.ShadowBorder; Appearance := EXTOOLBARLib.ToolBarAppearanceEnum($1000000); ForeColor := Color.FromArgb(21,66,139); (GetOcx() as EXTOOLBARLib.ToolBar).SelBackColor := $e000000; set_Background(EXTOOLBARLib.BackgroundPartEnum.exToolTipAppearance,Appearance); set_Background(EXTOOLBARLib.BackgroundPartEnum($2),$d000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exGroupPopupFrameSingle,$5000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exGroupPopupFrameHStart,$6000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exGroupPopupFrameHIntermediate,$7000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exGroupPopupFrameHEnd,$8000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exGroupPopupFrameVStart,$9000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exGroupPopupFrameVIntermediate,$a000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exGroupPopupFrameVEnd,$b000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exMenuHotBackColor,$c000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exMenuSelHotBackColor,$f000000); Refresh(); end |
210 |
Microsoft Windows 8.1 - Ribbon Like - Minimized
with AxToolBar1 do begin with Items do begin ToString := '[id=0][group=0x03](),[id=-99][bg=0x01000000][group=0x03][itemspad=4,4,4,4]([id=9000])'; Item[TObject(-99)].Visible := False; with Item[TObject(0)].Items do begin Add('',TObject(0),TObject(0)).Padding := '8,0,0,0'; var_Item3 := Add('New Page',Nil,Nil); with var_Item3 do begin ToString := '[id=0][typ=2][chk=1][spchk=-1][show=1][grp=10][bghot=0x12000000][bgsel=0x11000000][bgselhot=0x14000000][group=0x03][tab=9000][pa' + 'd=4,0,4,0][popupoffset=-4,-1]([id=0][group=0x03]([id=0][group=0x03]))'; ID := 200; Caption := 'Page1'; ShowPopupAlign := EXTOOLBARLib.ShowPopupAlignEnum.exShowPopupAlignDown; with Items.Item[TObject(0)] do begin var_Item := Items.Add('New Group',Nil,Nil); with var_Item do begin ToString := '[id=0][group=0x03][itemspad=4,4,4,18][itemsbg=0x02000000][itemsbghot=0x04000000]()'; Caption := '<b><font ;14>A'; with Items do begin BackgroundExt := 'bottom[16,text=`<fgcolor A0A0A0><font ;8>Horizontal`,align=0x11]'; with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopupEqualWidth) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); Caption := ''; with Items do begin with Add('R1',Nil,Nil) do begin RadioGroup := 100; Radio := True; ShowCheckedAsSelected := EXTOOLBARLib.ShowCheckedAsSelectedEnum.exDisplayItemHighlight; Checked := False; end; with Add('R2',Nil,Nil) do begin RadioGroup := 100; Radio := True; ShowCheckedAsSelected := EXTOOLBARLib.ShowCheckedAsSelectedEnum.exDisplayItemHighlight; Checked := True; end; with Add('R3',Nil,Nil) do begin RadioGroup := 100; Radio := True; ShowCheckedAsSelected := EXTOOLBARLib.ShowCheckedAsSelectedEnum.exDisplayItemHighlight; Checked := False; end; end; end; end; end; var_Item1 := Items.Add('New Group',Nil,Nil); with var_Item1 do begin ToString := '[id=0][group=0x03][itemspad=4,4,4,18][itemsbg=0x02000000][itemsbghot=0x04000000]()'; Caption := '<b><font ;14>B'; with Items do begin BackgroundExt := 'bottom[16,text=`<fgcolor A0A0A0><font ;8>Vertical`,align=0x11]'; with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopupVertical) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopupEqualHeight) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); Caption := ''; with Items do begin with Add('C1',Nil,Nil) do begin Check := True; Checked := True; end; with Add('C2',Nil,Nil) do begin Check := True; Checked := False; end; with Add('C3',Nil,Nil) do begin Check := True; Checked := True; end; end; end; end; end; Items.Add('',TObject(0),TObject(0)).Padding := '4,0,0,0'; var_Item2 := Items.Add('New Group',Nil,Nil); with var_Item2 do begin ToString := '[id=0][group=0x03][itemspad=4,4,4,18][itemsbg=0x02000000][itemsbghot=0x04000000]()'; Caption := ''; with Items do begin BackgroundExt := 'bottom[16,text=`<fgcolor A0A0A0><font ;8>Mixt`,align=0x11]'; with Add('',TObject(0),Nil) do begin AllowEdit := Integer(EXTOOLBARLib.AllowEditEnum.exItemEditVertical) Or Integer(EXTOOLBARLib.AllowEditEnum.exItemEditSlider); ItemHeight := 76; EditBorder := EXTOOLBARLib.EditBorderEnum.exEditBorderNone; EditValue := TObject(25); end; with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopupVertical) Or Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); Caption := ''; with Items do begin with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); with Items do begin with Add('Button1',TObject(2),Nil) do begin ShowAsButton := Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsSelectButtonBottom) Or Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsButtonAutoSize); with Items do begin Add('Item 1',Nil,Nil); Add('Item 2',Nil,Nil); Add('Item 3',Nil,Nil); end; end; Add('',TObject(0),TObject(0)).Padding := '4,0,0,0'; with Add('Button2',TObject(2),Nil) do begin ShowAsButton := Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsSelectButtonBottom) Or Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsButtonAutoSize); with Items do begin Add('Item 4',Nil,Nil); Add('Item 5',Nil,Nil); Add('Item 6',Nil,Nil); end; end; end; end; with Add('Popup',TObject(2),Nil) do begin Alignment := EXTOOLBARLib.AlignmentEnum.exCenter; with Items do begin Add('Item 7',Nil,Nil).Check := True; Add('Item 8',Nil,Nil); with Add('Item 9',TObject(2),Nil).Items do begin Add('Item 10',Nil,Nil); Add('Item 11',Nil,Nil); Add('Item 12',Nil,Nil); end; end; end; end; end; end; end; end; end; var_Item4 := Add('New Page',Nil,Nil); with var_Item4 do begin ToString := '[id=0][typ=2][chk=0][spchk=-1][show=1][grp=10][bghot=0x12000000][bgsel=0x11000000][bgselhot=0x14000000][group=0x03][tab=9000][pa' + 'd=4,0,4,0][popupoffset=-4,-1]([id=0][group=0x03]([id=0][group=0x03]))'; ID := 300; Caption := 'Page2'; ShowPopupAlign := EXTOOLBARLib.ShowPopupAlignEnum.exShowPopupAlignDown; with Items.Item[TObject(0)] do begin with Items do begin with Add('S1',Nil,Nil) do begin ItemHeight := 88; AllowEdit := Integer(EXTOOLBARLib.AllowEditEnum.exItemEditVertical) Or Integer(EXTOOLBARLib.AllowEditEnum.exItemEditSpin) Or Integer(EXTOOLBARLib.AllowEditEnum.exItemEditProgress); EditValue := TObject(25); end; with Add('S2',Nil,Nil) do begin ItemHeight := 88; AllowEdit := Integer(EXTOOLBARLib.AllowEditEnum.exItemEditVertical) Or Integer(EXTOOLBARLib.AllowEditEnum.exItemEditSpin) Or Integer(EXTOOLBARLib.AllowEditEnum.exItemEditProgress); EditValue := TObject(50); end; with Add('S3',Nil,Nil) do begin ItemHeight := 88; AllowEdit := Integer(EXTOOLBARLib.AllowEditEnum.exItemEditVertical) Or Integer(EXTOOLBARLib.AllowEditEnum.exItemEditSpin) Or Integer(EXTOOLBARLib.AllowEditEnum.exItemEditProgress); EditValue := TObject(75); end; end; end; end; Add('',TObject(0),TObject(0)).Padding := '8,0,0,0'; end; end; PopupFlatAppearance := False; with VisualAppearance do begin Add(1,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSFlat-Ribbon/msfr_background.ebn'); Add(2,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSFlat-Ribbon/msfr_groupt.ebn'); Add(12,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSFlat-Ribbon/msfr_hot.ebn'); Add(14,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSFlat-Ribbon/msfr_select.ebn'); Add(17,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSFlat-Ribbon/msfr_tab.ebn'); Add(18,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSFlat-Ribbon/msfr_tabhot.ebn'); Add(32,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSFlat-Ribbon/msfr_check0.ebn'); Add(33,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSFlat-Ribbon/msfr_check1.ebn'); Add(34,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSFlat-Ribbon/msfr_buttonu.ebn'); Add(35,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSFlat-Ribbon/msfr_buttond.ebn'); end; Appearance := EXTOOLBARLib.ToolBarAppearanceEnum($1000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exToolTipAppearance,Appearance); (GetOcx() as EXTOOLBARLib.ToolBar).SelBackColor := $e000000; set_Background(EXTOOLBARLib.BackgroundPartEnum.exMenuHotBackColor,$c000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exMenuSelHotBackColor,$23000000); set_Background(EXTOOLBARLib.BackgroundPartEnum($2),$22000000); set_Background(EXTOOLBARLib.BackgroundPartEnum($3),$23000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exCheckBoxState0,$20000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exCheckBoxState1,$21000000); Refresh(); end |
209 |
How can I display a tab into the toolbar (method 2, minimized)
with AxToolBar1 do begin set_Background(EXTOOLBARLib.BackgroundPartEnum.exMenuSelBorderColor,$f0f0f0); with Items do begin ToString := '[id=0][group=0x0103][itemspad=4,4,4,4]([id=-10][group=0x03](),[id=-99][bg=RGB(240,240,240)][group=0x03][itemspad=4,4,4,4]([id=-1' + '00]))'; Item[TObject(-99)].Visible := False; with Item[TObject(-10)].Items do begin Add('',TObject(0),TObject(0)).Padding := '8,0,0,0'; with Add('New Page',Nil,Nil) do begin ToString := '[typ=2][chk=1][spchk=-1][show=1][grp=10][bghot=RGB(255,255,255)][bgsel=RGB(240,240,240)][bgselhot=RGB(240,240,240)][height=16][g' + 'roup=0x03][tab=-100][pad=2,0,2,0][popupalign=0x01]([id=0][group=0x03]([]))'; Caption := 'Page<off -5><font ;5><b>1</b></font></off>'; with Items.Item[TObject(0)].Items do begin with Add('add here fields for page 1',Nil,Nil) do begin ID := -1000; Enabled := False; BackColor := $ff; end; end; end; with Add('New Page',Nil,Nil) do begin ToString := '[typ=2][chk=0][spchk=-1][show=1][grp=10][bghot=RGB(255,255,255)][bgsel=RGB(240,240,240)][bgselhot=RGB(240,240,240)][height=16][g' + 'roup=0x03][tab=-100][pad=2,0,2,0][popupalign=0x01]([id=0][group=0x03]([]))'; Caption := 'Page<off -5><font ;5><b>2</b></font></off>'; with Items.Item[TObject(0)].Items do begin with Add('add here fields for page 2',Nil,Nil) do begin ID := -1001; Enabled := False; BackColor := $ff00; end; end; end; Add('',TObject(0),TObject(0)).Padding := '8,0,0,0'; end; end; Refresh(); end |
208 |
How can I display a tab into the toolbar (method 1, minimized)
with AxToolBar1 do begin set_Background(EXTOOLBARLib.BackgroundPartEnum.exMenuSelBorderColor,$f0f0f0); ToString := '[group=0x0103][itemspad=4,4,4,4]([id=-10][group=0x03]([id=50][pad=8,0,0,0],Page<off -5><font ;5><b>1</b></font></off>[id=60][typ' + '=2][chk=1][spchk=-1][show=1][grp=10][bghot=RGB(255,255,255)][bgsel=RGB(240,240,240)][bgselhot=RGB(240,240,240)][height=16][group' + '=0x03][tab=-100][pad=2,0,2,0][popupalign=1]([group=0x03]([id=80],add here fields for page 1[id=-1000][dis])),Page<off -5><font ;' + '5><b>2</b></font></off>[id=100][typ=2][spchk=-1][show=1][grp=10][bghot=RGB(255,255,255)][bgsel=RGB(240,240,240)][bgselhot=RGB(24' + '0,240,240)][height=16][group=0x03][tab=-100][pad=2,0,2,0][popupalign=1]([group=0x03]([id=120],add here fields for page 2[id=-100' + '1][dis])),[id=140][pad=8,0,0,0]),[id=-99][bg=RGB(240,240,240)][group=0x03][itemspad=4,4,4,4]([id=-100]))'; with Items.Item[TObject(-1000)] do begin BackColor := $ff; end; with Items.Item[TObject(-1001)] do begin BackColor := $ff00; end; get_Item(TObject(-99)).Visible := False; end |
207 |
Is there a trick to arrange two or three items(buttons) on the Right side, with different widths
with AxToolBar1 do begin ArrangeItemsAs := EXTOOLBARLib.ArrangeItemsEnum.exArrangeItemsHorizontal; Items.ToString := 'C1[chk],C2[chk],C3[chk]'; with Items.Add('C4',Nil,Nil) do begin ID := 40; Check := True; Checked := True; ItemHeight := 24; X := 'width - (iwidth + iwidthof(50) + iwidthof(60))'; end; with Items.Add('C5-Baka',Nil,Nil) do begin ID := 50; Check := True; Checked := True; ItemHeight := 24; X := 'width - (iwidth + iwidthof(60))'; end; with Items do begin with Add('Expand',TObject(2),Nil) do begin ID := 60; ItemHeight := 24; X := 'width - (iwidth)'; GroupPopup := EXTOOLBARLib.GroupPopupEnum.exGroupPopup; Check := True; ShowPopupOnChecked := True; with Items do begin Add('Item 1',Nil,Nil); Add('Item 2',Nil,Nil); Add('Item 3',Nil,Nil); PopupAppearance := EXTOOLBARLib.ToolBarAppearanceEnum.ShadowBorder; end; end; end; Refresh(); end |
206 |
Is there a trick to arrange two or three items(buttons) on the Right side
with AxToolBar1 do begin ArrangeItemsAs := EXTOOLBARLib.ArrangeItemsEnum.exArrangeItemsHorizontal; Items.ToString := 'C1[chk],C2[chk],C3[chk]'; with Items.Add('C4',Nil,Nil) do begin Check := True; Checked := True; X := 'width - 3*42*dpi'; end; with Items.Add('C5',Nil,Nil) do begin Check := True; Checked := True; X := 'width - 2*42*dpi'; end; with Items.Add('C6',Nil,Nil) do begin Check := True; Checked := True; X := 'width - 1*42*dpi'; end; end |
205 |
How can I add a list of fonts
|
204 |
How can I show a pattern over all items
|
203 |
How can I show a pattern over the item
|
202 |
How can I add a color table
|
201 |
Is it possible to re-arrange the items once the toolbar is resized
|
200 |
I've noticed that the toolbar is cut when perform scrolling. Is it possible to change that shape
with AxToolBar1 do begin ArrangeItemsAs := Integer(EXTOOLBARLib.ArrangeItemsEnum.exArrangeItemsScroll) Or Integer(EXTOOLBARLib.ArrangeItemsEnum.exArrangeItemsHorizontal); VisualAppearance.Add(1,'gBFLBCJwBAEHhEJAAEhIDhAxGAyg0HG0Og40HIyiwAGY1GMJiYAf8jAEhhUnAAyhEqg8hk0oAsIjYxHAwmYwHEbGY2GEhGkMlFBlAOhAJhEuoUHjcbGQ1EtMp0hGsbGo' + 'wEsvpNBlkpo9ZoNQp8rqMIqdkqwCr1ZrdbrFpsFvs1hg9VuVCjdBA0IoElhFog6zbDykUkhsPms3nMInc9hA0mNpoVrruQpdiutNq9kqlWtuQg+Sluewufp1gqWbEt+0' + 'UK0F81YAuGkut01F3lF7vF6yYA1Ujf4ATjNd8KmeHh84n1MGI1zt9rN7vOhg+9knB4ejAE0m3HHHJlfL1VB5sH6G76m/63Ey2xAG0uMbkIbUDh3me1vjoV7vYIhBQNIx' + 'joOo5DKGKQj8hAhCbA6ThshAUN0g7or4DCFCQ14AHATIAHkbBZt83xxFCDcMw3DsQRFEINm8SQAHydpuxTEh4GkUzfHATYARnGsPn+d5mk5HkPv4g7/QBAQyhk1UFgBB' + 'MloTBqDwe8iEQkg0KITCzXyDDhZxI30uRJFMXG7FYARTFLfR1MMRSDNUcSC30fE5IYASLAMBhmjZDQQJs9wZB0qQhCaFChC81g3M8RRuAE5IPMENRjDUdN8g8vw7MtJx' + '5SseTHODCTpO0jp+hE/SZPqUSgAEpABCS9ytQkLyDTtPU2f8uUxGkg0dDtDxlXLCUPRMRxxRoAHW2wAICA=='); set_Background(EXTOOLBARLib.BackgroundPartEnum.exScrollViewBorder,$1000000); with Items do begin BackColor := $808080; with Add('Expand',TObject(2),Nil) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopupVertical) Or Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); Check := True; ShowPopupOnChecked := True; with Items do begin Padding := '22,0,0,0'; Add('Radio 1',Nil,Nil).Radio := True; Add('Radio 2',Nil,Nil).Radio := True; with Add('Radio 3',Nil,Nil) do begin Radio := True; Checked := True; end; end; Checked := True; end; Add('',Nil,Nil).ToString := 'Expand[typ=1][chk=1][spchk=-1][group=0x0103][itemspad=22,0,0,0](Radio 1[id=20][typ=2],Radio 2[id=30][typ=2],Radio 3[id=40][typ=2' + '][chk=1])'; end; Refresh(); end |
199 |
I've noticed that the toolbar is cut when perform scrolling. Is it possible to prevent that
with AxToolBar1 do begin ArrangeItemsAs := Integer(EXTOOLBARLib.ArrangeItemsEnum.exArrangeItemsScroll) Or Integer(EXTOOLBARLib.ArrangeItemsEnum.exArrangeItemsHorizontal); set_Background(EXTOOLBARLib.BackgroundPartEnum.exScrollViewBorder,$ffffffff); with Items do begin BackColor := $f0f0f0; with Add('Expand',TObject(2),Nil) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopupVertical) Or Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); Check := True; ShowPopupOnChecked := True; with Items do begin Padding := '22,0,0,0'; Add('Radio 1',Nil,Nil).Radio := True; Add('Radio 2',Nil,Nil).Radio := True; with Add('Radio 3',Nil,Nil) do begin Radio := True; Checked := True; end; end; Checked := True; end; Add('',Nil,Nil).ToString := 'Expand[typ=1][chk=1][spchk=-1][group=0x0103][itemspad=22,0,0,0](Radio 1[id=20][typ=2],Radio 2[id=30][typ=2],Radio 3[id=40][typ=2' + '][chk=1])'; end; Refresh(); end |
198 |
How can I scroll the items within the toolbar
with AxToolBar1 do begin ArrangeItemsAs := Integer(EXTOOLBARLib.ArrangeItemsEnum.exArrangeItemsScroll) Or Integer(EXTOOLBARLib.ArrangeItemsEnum.exArrangeItemsHorizontal); with Items do begin BackColor := $f0f0f0; with Add('Expand',TObject(2),Nil) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopupVertical) Or Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); Check := True; ShowPopupOnChecked := True; with Items do begin Padding := '22,0,0,0'; Add('Radio 1',Nil,Nil).Radio := True; Add('Radio 2',Nil,Nil).Radio := True; with Add('Radio 3',Nil,Nil) do begin Radio := True; Checked := True; end; end; Checked := True; end; Add('',Nil,Nil).ToString := 'Expand[typ=1][chk=1][spchk=-1][group=0x0103][itemspad=22,0,0,0](Radio 1[id=20][typ=2],Radio 2[id=30][typ=2],Radio 3[id=40][typ=2' + '][chk=1])'; end; Refresh(); end |
197 |
How can I show an item aligned to the bottom size of the toolbar
with AxToolBar1 do begin ArrangeItemsAs := EXTOOLBARLib.ArrangeItemsEnum.exArrangeItemsHorizontal; Items.ToString := 'C1[chk],C2[chk]'; with Items.Add('R',Nil,Nil) do begin Check := True; Checked := True; Y := 'height - iheight'; end; end |
196 |
How can I show an item aligned to the right of the toolbar
with AxToolBar1 do begin ArrangeItemsAs := EXTOOLBARLib.ArrangeItemsEnum.exArrangeItemsHorizontal; Items.ToString := 'C1[chk],C2[chk]'; with Items.Add('R',Nil,Nil) do begin Check := True; Checked := True; X := 'width - iwidth'; end; end |
195 |
How can I arrange horizontally the items on the toolbar
with AxToolBar1 do begin ArrangeItemsAs := EXTOOLBARLib.ArrangeItemsEnum.exArrangeItemsHorizontal; with Items do begin with Add('Expand',TObject(2),Nil) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopupVertical) Or Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); Check := True; ShowPopupOnChecked := True; with Items do begin Padding := '22,0,0,0'; Add('Radio 1',Nil,Nil).Radio := True; Add('Radio 2',Nil,Nil).Radio := True; with Add('Radio 3',Nil,Nil) do begin Radio := True; Checked := True; end; end; Checked := True; end; Add('',Nil,Nil).ToString := 'Expand[typ=1][chk=1][spchk=-1][group=0x0103][itemspad=22,0,0,0](Radio 1[id=20][typ=2],Radio 2[id=30][typ=2],Radio 3[id=40][typ=2' + '][chk=1])'; end; Refresh(); end |
194 |
How can I display the drop down panel to a specified location only
with AxToolBar1 do begin PopupAppearance := EXTOOLBARLib.ToolBarAppearanceEnum.ShadowBorder; with Items do begin with Add('Popup',TObject(2),TObject(100)) do begin ShowPopupArrow := False; ShowPopupAlign := EXTOOLBARLib.ShowPopupAlignEnum.exShowPopupAlignDown; ShowPopupOffset := '0:screen,0:screen'; with Items do begin Add('Item 1',Nil,Nil); Add('Item 2',Nil,Nil); Add('Item 3',Nil,Nil); end; end; end; Refresh(); end |
193 |
How can I displays the drop down bellow the control, rather than item itself
with AxToolBar1 do begin PopupAppearance := EXTOOLBARLib.ToolBarAppearanceEnum.ShadowBorder; with Items do begin with Add('Popup <b>1',TObject(2),TObject(100)) do begin ShowPopupArrow := False; ShowPopupAlign := EXTOOLBARLib.ShowPopupAlignEnum.exShowPopupAlignDown; ShowPopupOffset := '0,0:control'; with Items do begin Add('Item 1',Nil,Nil); Add('Item 2',Nil,Nil); Add('Item 3',Nil,Nil); end; end; with Add('Popup <b>2',TObject(2),TObject(200)) do begin GroupPopup := EXTOOLBARLib.GroupPopupEnum.exGroupPopup; with Items do begin Add('Item 2',Nil,Nil); Add('Item 3',Nil,Nil); Add('Item 4',Nil,Nil); end; end; end; Refresh(); end |
192 |
How can I change the visual appearance of the progress bar
|
191 |
How can I change the progress's color
|
190 |
I am using the Item.Visible property on False to hide the item, but the editor is still visible
// CheckItem event - Occurs when the user checks the item. procedure TWinForm1.AxToolBar1_CheckItem(sender: System.Object; e: AxEXTOOLBARLib._IToolBarEvents_CheckItemEvent); begin with AxToolBar1 do begin with Items.Item[TObject(1000)] do begin Visible := True; AllowEdit := Integer(EXTOOLBARLib.AllowEditEnum.exItemEditReadOnly) Or Integer(EXTOOLBARLib.AllowEditEnum.exItemEditProgress); end; Refresh(); end end; // UncheckItem event - Occurs when the user unchecks the item. procedure TWinForm1.AxToolBar1_UncheckItem(sender: System.Object; e: AxEXTOOLBARLib._IToolBarEvents_UncheckItemEvent); begin with AxToolBar1 do begin with Items.Item[TObject(1000)] do begin Visible := False; AllowEdit := EXTOOLBARLib.AllowEditEnum.exItemDisableEdit; end; Refresh(); end end; with AxToolBar1 do begin with Items do begin with Add('',TObject(2),Nil) do begin with Items do begin Add('Visible',Nil,Nil); with Add('',Nil,Nil) do begin Check := True; Checked := True; end; with Add('Item 2',Nil,TObject(1000)) do begin ItemHeight := 18; Caption := 'Percent'; AllowEdit := Integer(EXTOOLBARLib.AllowEditEnum.exItemEditReadOnly) Or Integer(EXTOOLBARLib.AllowEditEnum.exItemEditProgress); EditValue := TObject(50); Visible := True; end; Add('Visible',Nil,Nil); end; GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); end; end; Refresh(); end |
189 |
How can I change the color of a disabled item
with AxToolBar1 do begin with Items do begin with Add('Disabled',TObject(2),TObject(0)) do begin ForeColor := $ff; Items.Add('',Nil,Nil); GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); ShowPopupArrow := False; end; Add('Disabled',Nil,Nil).Enabled := False; end; Refresh(); end |
188 |
Microsoft Windows 8.1 - Ribbon Like
with AxToolBar1 do begin with Items do begin ToString := '[id=0][group=0x03](),[id=-99][bg=0x01000000][group=0x03][itemspad=4,4,4,4]([id=9000])'; with Item[TObject(0)].Items do begin Add('',TObject(0),TObject(0)).Padding := '8,0,0,0'; var_Item3 := Add('New Page',Nil,Nil); with var_Item3 do begin ToString := '[id=0][typ=2][chk=1][spchk=-1][show=1][grp=10][bghot=0x12000000][bgsel=0x11000000][bgselhot=0x14000000][group=0x03][tab=9000][pa' + 'd=4,0,4,0][popupoffset=-4,-1]([id=0][group=0x03]([id=0][group=0x03]))'; ID := 200; Caption := 'Page1'; ShowPopupAlign := EXTOOLBARLib.ShowPopupAlignEnum.exShowPopupAlignDown; with Items.Item[TObject(0)] do begin var_Item := Items.Add('New Group',Nil,Nil); with var_Item do begin ToString := '[id=0][group=0x03][itemspad=4,4,4,18][itemsbg=0x02000000][itemsbghot=0x04000000]()'; Caption := '<b><font ;14>A'; with Items do begin BackgroundExt := 'bottom[16,text=`<fgcolor A0A0A0><font ;8>Horizontal`,align=0x11]'; with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopupEqualWidth) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); Caption := ''; with Items do begin with Add('R1',Nil,Nil) do begin RadioGroup := 100; Radio := True; ShowCheckedAsSelected := EXTOOLBARLib.ShowCheckedAsSelectedEnum.exDisplayItemHighlight; Checked := False; end; with Add('R2',Nil,Nil) do begin RadioGroup := 100; Radio := True; ShowCheckedAsSelected := EXTOOLBARLib.ShowCheckedAsSelectedEnum.exDisplayItemHighlight; Checked := True; end; with Add('R3',Nil,Nil) do begin RadioGroup := 100; Radio := True; ShowCheckedAsSelected := EXTOOLBARLib.ShowCheckedAsSelectedEnum.exDisplayItemHighlight; Checked := False; end; end; end; end; end; var_Item1 := Items.Add('New Group',Nil,Nil); with var_Item1 do begin ToString := '[id=0][group=0x03][itemspad=4,4,4,18][itemsbg=0x02000000][itemsbghot=0x04000000]()'; Caption := '<b><font ;14>B'; with Items do begin BackgroundExt := 'bottom[16,text=`<fgcolor A0A0A0><font ;8>Vertical`,align=0x11]'; with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopupVertical) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopupEqualHeight) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); Caption := ''; with Items do begin with Add('C1',Nil,Nil) do begin Check := True; Checked := True; end; with Add('C2',Nil,Nil) do begin Check := True; Checked := False; end; with Add('C3',Nil,Nil) do begin Check := True; Checked := True; end; end; end; end; end; Items.Add('',TObject(0),TObject(0)).Padding := '4,0,0,0'; var_Item2 := Items.Add('New Group',Nil,Nil); with var_Item2 do begin ToString := '[id=0][group=0x03][itemspad=4,4,4,18][itemsbg=0x02000000][itemsbghot=0x04000000]()'; Caption := ''; with Items do begin BackgroundExt := 'bottom[16,text=`<fgcolor A0A0A0><font ;8>Mixt`,align=0x11]'; with Add('',TObject(0),Nil) do begin AllowEdit := Integer(EXTOOLBARLib.AllowEditEnum.exItemEditVertical) Or Integer(EXTOOLBARLib.AllowEditEnum.exItemEditSlider); ItemHeight := 76; EditBorder := EXTOOLBARLib.EditBorderEnum.exEditBorderNone; EditValue := TObject(25); end; with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopupVertical) Or Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); Caption := ''; with Items do begin with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); with Items do begin with Add('Button1',TObject(2),Nil) do begin ShowAsButton := Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsSelectButtonBottom) Or Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsButtonAutoSize); with Items do begin Add('Item 1',Nil,Nil); Add('Item 2',Nil,Nil); Add('Item 3',Nil,Nil); end; end; Add('',TObject(0),TObject(0)).Padding := '4,0,0,0'; with Add('Button2',TObject(2),Nil) do begin ShowAsButton := Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsSelectButtonBottom) Or Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsButtonAutoSize); with Items do begin Add('Item 4',Nil,Nil); Add('Item 5',Nil,Nil); Add('Item 6',Nil,Nil); end; end; end; end; with Add('Popup',TObject(2),Nil) do begin Alignment := EXTOOLBARLib.AlignmentEnum.exCenter; with Items do begin Add('Item 7',Nil,Nil).Check := True; Add('Item 8',Nil,Nil); with Add('Item 9',TObject(2),Nil).Items do begin Add('Item 10',Nil,Nil); Add('Item 11',Nil,Nil); Add('Item 12',Nil,Nil); end; end; end; end; end; end; end; end; end; var_Item4 := Add('New Page',Nil,Nil); with var_Item4 do begin ToString := '[id=0][typ=2][chk=0][spchk=-1][show=1][grp=10][bghot=0x12000000][bgsel=0x11000000][bgselhot=0x14000000][group=0x03][tab=9000][pa' + 'd=4,0,4,0][popupoffset=-4,-1]([id=0][group=0x03]([id=0][group=0x03]))'; ID := 300; Caption := 'Page2'; ShowPopupAlign := EXTOOLBARLib.ShowPopupAlignEnum.exShowPopupAlignDown; with Items.Item[TObject(0)] do begin with Items do begin with Add('S1',Nil,Nil) do begin ItemHeight := 88; AllowEdit := Integer(EXTOOLBARLib.AllowEditEnum.exItemEditVertical) Or Integer(EXTOOLBARLib.AllowEditEnum.exItemEditSpin) Or Integer(EXTOOLBARLib.AllowEditEnum.exItemEditProgress); EditValue := TObject(25); end; with Add('S2',Nil,Nil) do begin ItemHeight := 88; AllowEdit := Integer(EXTOOLBARLib.AllowEditEnum.exItemEditVertical) Or Integer(EXTOOLBARLib.AllowEditEnum.exItemEditSpin) Or Integer(EXTOOLBARLib.AllowEditEnum.exItemEditProgress); EditValue := TObject(50); end; with Add('S3',Nil,Nil) do begin ItemHeight := 88; AllowEdit := Integer(EXTOOLBARLib.AllowEditEnum.exItemEditVertical) Or Integer(EXTOOLBARLib.AllowEditEnum.exItemEditSpin) Or Integer(EXTOOLBARLib.AllowEditEnum.exItemEditProgress); EditValue := TObject(75); end; end; end; end; Add('',TObject(0),TObject(0)).Padding := '8,0,0,0'; end; end; PopupFlatAppearance := False; with VisualAppearance do begin Add(1,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSFlat-Ribbon/msfr_background.ebn'); Add(2,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSFlat-Ribbon/msfr_groupt.ebn'); Add(12,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSFlat-Ribbon/msfr_hot.ebn'); Add(14,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSFlat-Ribbon/msfr_select.ebn'); Add(17,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSFlat-Ribbon/msfr_tab.ebn'); Add(18,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSFlat-Ribbon/msfr_tabhot.ebn'); Add(32,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSFlat-Ribbon/msfr_check0.ebn'); Add(33,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSFlat-Ribbon/msfr_check1.ebn'); Add(34,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSFlat-Ribbon/msfr_buttonu.ebn'); Add(35,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSFlat-Ribbon/msfr_buttond.ebn'); end; Appearance := EXTOOLBARLib.ToolBarAppearanceEnum($1000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exToolTipAppearance,Appearance); (GetOcx() as EXTOOLBARLib.ToolBar).SelBackColor := $e000000; set_Background(EXTOOLBARLib.BackgroundPartEnum.exMenuHotBackColor,$c000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exMenuSelHotBackColor,$23000000); set_Background(EXTOOLBARLib.BackgroundPartEnum($2),$22000000); set_Background(EXTOOLBARLib.BackgroundPartEnum($3),$23000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exCheckBoxState0,$20000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exCheckBoxState1,$21000000); Refresh(); end |
187 |
Microsoft Paint - Ribbon Like
with AxToolBar1 do begin with Items do begin ToString := '[id=0][group=0x03](),[id=-99][bg=0x01000000][group=0x03][itemspad=4,4,4,4]([id=9000])'; with Item[TObject(0)].Items do begin Add('',TObject(0),TObject(0)).Padding := '8,0,0,0'; var_Item3 := Add('New Page',Nil,Nil); with var_Item3 do begin ToString := '[id=0][typ=2][chk=1][spchk=-1][show=1][grp=10][bghot=0x12000000][bgsel=0x11000000][bgselhot=0x14000000][group=0x03][tab=9000][pa' + 'd=4,0,4,0][popupoffset=-4,-1]([id=0][group=0x03]([id=0][group=0x03]))'; ID := 200; Caption := 'Page1'; ShowPopupAlign := EXTOOLBARLib.ShowPopupAlignEnum.exShowPopupAlignDown; with Items.Item[TObject(0)] do begin var_Item := Items.Add('New Group',Nil,Nil); with var_Item do begin ToString := '[id=0][group=0x03][itemspad=4,4,4,18][itemsbg=0x02000000][itemsbghot=0x04000000]()'; Caption := '<b><font ;14>A'; with Items do begin BackgroundExt := 'bottom[16,text=`<fgcolor A0A0A0><font ;8>Horizontal`,align=0x11]'; with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopupEqualWidth) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); Caption := ''; with Items do begin with Add('R1',Nil,Nil) do begin RadioGroup := 100; Radio := True; ShowCheckedAsSelected := EXTOOLBARLib.ShowCheckedAsSelectedEnum.exDisplayItemHighlight; Checked := False; end; with Add('R2',Nil,Nil) do begin RadioGroup := 100; Radio := True; ShowCheckedAsSelected := EXTOOLBARLib.ShowCheckedAsSelectedEnum.exDisplayItemHighlight; Checked := True; end; with Add('R3',Nil,Nil) do begin RadioGroup := 100; Radio := True; ShowCheckedAsSelected := EXTOOLBARLib.ShowCheckedAsSelectedEnum.exDisplayItemHighlight; Checked := False; end; end; end; end; end; var_Item1 := Items.Add('New Group',Nil,Nil); with var_Item1 do begin ToString := '[id=0][group=0x03][itemspad=4,4,4,18][itemsbg=0x02000000][itemsbghot=0x04000000]()'; Caption := '<b><font ;14>B'; with Items do begin BackgroundExt := 'bottom[16,text=`<fgcolor A0A0A0><font ;8>Vertical`,align=0x11]'; with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopupVertical) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopupEqualHeight) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); Caption := ''; with Items do begin with Add('C1',Nil,Nil) do begin Check := True; Checked := True; end; with Add('C2',Nil,Nil) do begin Check := True; Checked := False; end; with Add('C3',Nil,Nil) do begin Check := True; Checked := True; end; end; end; end; end; Items.Add('',TObject(0),TObject(0)).Padding := '4,0,0,0'; var_Item2 := Items.Add('New Group',Nil,Nil); with var_Item2 do begin ToString := '[id=0][group=0x03][itemspad=4,4,4,18][itemsbg=0x02000000][itemsbghot=0x04000000]()'; Caption := ''; with Items do begin BackgroundExt := 'bottom[16,text=`<fgcolor A0A0A0><font ;8>Mixt`,align=0x11]'; with Add('',TObject(0),Nil) do begin AllowEdit := Integer(EXTOOLBARLib.AllowEditEnum.exItemEditVertical) Or Integer(EXTOOLBARLib.AllowEditEnum.exItemEditSlider); ItemHeight := 76; EditBorder := EXTOOLBARLib.EditBorderEnum.exEditBorderNone; EditValue := TObject(25); end; with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopupVertical) Or Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); Caption := ''; with Items do begin with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); with Items do begin with Add('Button1',TObject(2),Nil) do begin ShowAsButton := Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsSelectButtonBottom) Or Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsButtonAutoSize); with Items do begin Add('Item 1',Nil,Nil); Add('Item 2',Nil,Nil); Add('Item 3',Nil,Nil); end; end; Add('',TObject(0),TObject(0)).Padding := '4,0,0,0'; with Add('Button2',TObject(2),Nil) do begin ShowAsButton := Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsSelectButtonBottom) Or Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsButtonAutoSize); with Items do begin Add('Item 4',Nil,Nil); Add('Item 5',Nil,Nil); Add('Item 6',Nil,Nil); end; end; end; end; with Add('Popup',TObject(2),Nil) do begin Alignment := EXTOOLBARLib.AlignmentEnum.exCenter; with Items do begin Add('Item 7',Nil,Nil).Check := True; Add('Item 8',Nil,Nil); with Add('Item 9',TObject(2),Nil).Items do begin Add('Item 10',Nil,Nil); Add('Item 11',Nil,Nil); Add('Item 12',Nil,Nil); end; end; end; end; end; end; end; end; end; var_Item4 := Add('New Page',Nil,Nil); with var_Item4 do begin ToString := '[id=0][typ=2][chk=0][spchk=-1][show=1][grp=10][bghot=0x12000000][bgsel=0x11000000][bgselhot=0x14000000][group=0x03][tab=9000][pa' + 'd=4,0,4,0][popupoffset=-4,-1]([id=0][group=0x03]([id=0][group=0x03]))'; ID := 300; Caption := 'Page2'; ShowPopupAlign := EXTOOLBARLib.ShowPopupAlignEnum.exShowPopupAlignDown; with Items.Item[TObject(0)] do begin with Items do begin with Add('S1',Nil,Nil) do begin ItemHeight := 88; AllowEdit := Integer(EXTOOLBARLib.AllowEditEnum.exItemEditVertical) Or Integer(EXTOOLBARLib.AllowEditEnum.exItemEditSpin) Or Integer(EXTOOLBARLib.AllowEditEnum.exItemEditProgress); EditValue := TObject(25); end; with Add('S2',Nil,Nil) do begin ItemHeight := 88; AllowEdit := Integer(EXTOOLBARLib.AllowEditEnum.exItemEditVertical) Or Integer(EXTOOLBARLib.AllowEditEnum.exItemEditSpin) Or Integer(EXTOOLBARLib.AllowEditEnum.exItemEditProgress); EditValue := TObject(50); end; with Add('S3',Nil,Nil) do begin ItemHeight := 88; AllowEdit := Integer(EXTOOLBARLib.AllowEditEnum.exItemEditVertical) Or Integer(EXTOOLBARLib.AllowEditEnum.exItemEditSpin) Or Integer(EXTOOLBARLib.AllowEditEnum.exItemEditProgress); EditValue := TObject(75); end; end; end; end; Add('',TObject(0),TObject(0)).Padding := '8,0,0,0'; end; end; PopupFlatAppearance := False; with VisualAppearance do begin Add(1,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_background.ebn'); Add(2,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_groupt.ebn'); Add(3,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_groupo.ebn'); Add(4,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_grouphot.ebn'); Add(5,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_frameh.ebn'); Add(6,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_framehs.ebn'); Add(7,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_framehi.ebn'); Add(8,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_framehe.ebn'); Add(9,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_framevs.ebn'); Add(10,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_framevi.ebn'); Add(11,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_frameve.ebn'); Add(12,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_select.ebn'); Add(13,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_bordert.ebn'); Add(14,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_buttond.ebn'); Add(15,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_buttonu.ebn'); Add(16,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_tab.ebn'); Add(17,'CP:16 0 0 0 1'); Add(18,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_tabhot.ebn'); Add(19,'C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_tabselhot.ebn'); Add(20,'CP:19 0 0 0 1'); end; LocalAppearance := EXTOOLBARLib.ToolBarAppearanceEnum.ShadowBorder; Appearance := EXTOOLBARLib.ToolBarAppearanceEnum($1000000); ForeColor := Color.FromArgb(21,66,139); (GetOcx() as EXTOOLBARLib.ToolBar).SelBackColor := $e000000; set_Background(EXTOOLBARLib.BackgroundPartEnum.exToolTipAppearance,Appearance); set_Background(EXTOOLBARLib.BackgroundPartEnum($2),$d000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exGroupPopupFrameSingle,$5000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exGroupPopupFrameHStart,$6000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exGroupPopupFrameHIntermediate,$7000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exGroupPopupFrameHEnd,$8000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exGroupPopupFrameVStart,$9000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exGroupPopupFrameVIntermediate,$a000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exGroupPopupFrameVEnd,$b000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exMenuHotBackColor,$c000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exMenuSelHotBackColor,$f000000); Refresh(); end |
186 |
Microsoft Office - Ribbon Like
with AxToolBar1 do begin with Items do begin ToString := '[id=0][group=0x03](),[id=-99][bg=0x01000000][group=0x03][itemspad=4,4,4,4]([id=9000])'; with Item[TObject(0)].Items do begin Add('',TObject(0),TObject(0)).Padding := '8,0,0,0'; var_Item3 := Add('New Page',Nil,Nil); with var_Item3 do begin ToString := '[id=0][typ=2][chk=1][spchk=-1][show=1][grp=10][bghot=0x12000000][bgsel=0x11000000][bgselhot=0x14000000][group=0x03][tab=9000][pa' + 'd=4,0,4,0][popupoffset=-4,-1]([id=0][group=0x03]([id=0][group=0x03]))'; ID := 200; Caption := 'Page1'; ShowPopupAlign := EXTOOLBARLib.ShowPopupAlignEnum.exShowPopupAlignDown; with Items.Item[TObject(0)] do begin var_Item := Items.Add('New Group',Nil,Nil); with var_Item do begin ToString := '[id=0][group=0x03][itemspad=4,4,4,18][itemsbg=0x02000000][itemsbghot=0x04000000]()'; Caption := '<b><font ;14>A'; with Items do begin BackgroundExt := 'bottom[16,text=`<fgcolor A0A0A0><font ;8>Horizontal`,align=0x11]'; with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopupEqualWidth) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); Caption := ''; with Items do begin with Add('R1',Nil,Nil) do begin RadioGroup := 100; Radio := True; ShowCheckedAsSelected := EXTOOLBARLib.ShowCheckedAsSelectedEnum.exDisplayItemHighlight; Checked := False; end; with Add('R2',Nil,Nil) do begin RadioGroup := 100; Radio := True; ShowCheckedAsSelected := EXTOOLBARLib.ShowCheckedAsSelectedEnum.exDisplayItemHighlight; Checked := True; end; with Add('R3',Nil,Nil) do begin RadioGroup := 100; Radio := True; ShowCheckedAsSelected := EXTOOLBARLib.ShowCheckedAsSelectedEnum.exDisplayItemHighlight; Checked := False; end; end; end; end; end; var_Item1 := Items.Add('New Group',Nil,Nil); with var_Item1 do begin ToString := '[id=0][group=0x03][itemspad=4,4,4,18][itemsbg=0x02000000][itemsbghot=0x04000000]()'; Caption := '<b><font ;14>B'; with Items do begin BackgroundExt := 'bottom[16,text=`<fgcolor A0A0A0><font ;8>Vertical`,align=0x11]'; with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopupVertical) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopupEqualHeight) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); Caption := ''; with Items do begin with Add('C1',Nil,Nil) do begin Check := True; Checked := True; end; with Add('C2',Nil,Nil) do begin Check := True; Checked := False; end; with Add('C3',Nil,Nil) do begin Check := True; Checked := True; end; end; end; end; end; Items.Add('',TObject(0),TObject(0)).Padding := '4,0,0,0'; var_Item2 := Items.Add('New Group',Nil,Nil); with var_Item2 do begin ToString := '[id=0][group=0x03][itemspad=4,4,4,18][itemsbg=0x02000000][itemsbghot=0x04000000]()'; Caption := ''; with Items do begin BackgroundExt := 'bottom[16,text=`<fgcolor A0A0A0><font ;8>Mixt`,align=0x11]'; with Add('',TObject(0),Nil) do begin AllowEdit := Integer(EXTOOLBARLib.AllowEditEnum.exItemEditVertical) Or Integer(EXTOOLBARLib.AllowEditEnum.exItemEditSlider); ItemHeight := 76; EditBorder := EXTOOLBARLib.EditBorderEnum.exEditBorderNone; EditValue := TObject(25); end; with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopupVertical) Or Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); Caption := ''; with Items do begin with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); with Items do begin with Add('Button1',TObject(2),Nil) do begin ShowAsButton := Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsSelectButtonBottom) Or Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsButtonAutoSize); with Items do begin Add('Item 1',Nil,Nil); Add('Item 2',Nil,Nil); Add('Item 3',Nil,Nil); end; end; Add('',TObject(0),TObject(0)).Padding := '4,0,0,0'; with Add('Button2',TObject(2),Nil) do begin ShowAsButton := Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsSelectButtonBottom) Or Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsButtonAutoSize); with Items do begin Add('Item 4',Nil,Nil); Add('Item 5',Nil,Nil); Add('Item 6',Nil,Nil); end; end; end; end; with Add('Popup',TObject(2),Nil) do begin Alignment := EXTOOLBARLib.AlignmentEnum.exCenter; with Items do begin Add('Item 7',Nil,Nil).Check := True; Add('Item 8',Nil,Nil); with Add('Item 9',TObject(2),Nil).Items do begin Add('Item 10',Nil,Nil); Add('Item 11',Nil,Nil); Add('Item 12',Nil,Nil); end; end; end; end; end; end; end; end; end; var_Item4 := Add('New Page',Nil,Nil); with var_Item4 do begin ToString := '[id=0][typ=2][chk=0][spchk=-1][show=1][grp=10][bghot=0x12000000][bgsel=0x11000000][bgselhot=0x14000000][group=0x03][tab=9000][pa' + 'd=4,0,4,0][popupoffset=-4,-1]([id=0][group=0x03]([id=0][group=0x03]))'; ID := 300; Caption := 'Page2'; ShowPopupAlign := EXTOOLBARLib.ShowPopupAlignEnum.exShowPopupAlignDown; with Items.Item[TObject(0)] do begin with Items do begin with Add('S1',Nil,Nil) do begin ItemHeight := 88; AllowEdit := Integer(EXTOOLBARLib.AllowEditEnum.exItemEditVertical) Or Integer(EXTOOLBARLib.AllowEditEnum.exItemEditSpin) Or Integer(EXTOOLBARLib.AllowEditEnum.exItemEditProgress); EditValue := TObject(25); end; with Add('S2',Nil,Nil) do begin ItemHeight := 88; AllowEdit := Integer(EXTOOLBARLib.AllowEditEnum.exItemEditVertical) Or Integer(EXTOOLBARLib.AllowEditEnum.exItemEditSpin) Or Integer(EXTOOLBARLib.AllowEditEnum.exItemEditProgress); EditValue := TObject(50); end; with Add('S3',Nil,Nil) do begin ItemHeight := 88; AllowEdit := Integer(EXTOOLBARLib.AllowEditEnum.exItemEditVertical) Or Integer(EXTOOLBARLib.AllowEditEnum.exItemEditSpin) Or Integer(EXTOOLBARLib.AllowEditEnum.exItemEditProgress); EditValue := TObject(75); end; end; end; end; Add('',TObject(0),TObject(0)).Padding := '8,0,0,0'; end; end; PopupFlatAppearance := False; with VisualAppearance do begin Add(1,'C:\Program Files\Exontrol\ExToolBar\Sample\EBN\MSOffice-Ribbon\msor_background.ebn'); Add(2,'C:\Program Files\Exontrol\ExToolBar\Sample\EBN\MSOffice-Ribbon\msor_groupt.ebn'); Add(3,'C:\Program Files\Exontrol\ExToolBar\Sample\EBN\MSOffice-Ribbon\msor_groupo.ebn'); Add(4,'C:\Program Files\Exontrol\ExToolBar\Sample\EBN\MSOffice-Ribbon\msor_grouphot.ebn'); Add(5,'C:\Program Files\Exontrol\ExToolBar\Sample\EBN\MSOffice-Ribbon\msor_frameh.ebn'); Add(6,'C:\Program Files\Exontrol\ExToolBar\Sample\EBN\MSOffice-Ribbon\msor_framehs.ebn'); Add(7,'C:\Program Files\Exontrol\ExToolBar\Sample\EBN\MSOffice-Ribbon\msor_framehi.ebn'); Add(8,'C:\Program Files\Exontrol\ExToolBar\Sample\EBN\MSOffice-Ribbon\msor_framehe.ebn'); Add(9,'C:\Program Files\Exontrol\ExToolBar\Sample\EBN\MSOffice-Ribbon\msor_framevs.ebn'); Add(10,'C:\Program Files\Exontrol\ExToolBar\Sample\EBN\MSOffice-Ribbon\msor_framevi.ebn'); Add(11,'C:\Program Files\Exontrol\ExToolBar\Sample\EBN\MSOffice-Ribbon\msor_frameve.ebn'); Add(12,'C:\Program Files\Exontrol\ExToolBar\Sample\EBN\MSOffice-Ribbon\msor_select.ebn'); Add(13,'C:\Program Files\Exontrol\ExToolBar\Sample\EBN\MSOffice-Ribbon\msor_bordert.ebn'); Add(14,'C:\Program Files\Exontrol\ExToolBar\Sample\EBN\MSOffice-Ribbon\msor_buttond.ebn'); Add(15,'C:\Program Files\Exontrol\ExToolBar\Sample\EBN\MSOffice-Ribbon\msor_buttonu.ebn'); Add(16,'C:\Program Files\Exontrol\ExToolBar\Sample\EBN\MSOffice-Ribbon\msor_tab.ebn'); Add(17,'CP:16 0 0 0 1'); Add(18,'C:\Program Files\Exontrol\ExToolBar\Sample\EBN\MSOffice-Ribbon\msor_tabhot.ebn'); Add(19,'C:\Program Files\Exontrol\ExToolBar\Sample\EBN\MSOffice-Ribbon\msor_tabselhot.ebn'); Add(20,'CP:19 0 0 0 1'); end; ForeColor := Color.FromArgb(21,66,139); (GetOcx() as EXTOOLBARLib.ToolBar).SelBackColor := $e000000; LocalAppearance := EXTOOLBARLib.ToolBarAppearanceEnum.ShadowBorder; Appearance := EXTOOLBARLib.ToolBarAppearanceEnum($1000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exToolTipAppearance,Appearance); set_Background(EXTOOLBARLib.BackgroundPartEnum($2),$d000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exGroupPopupFrameSingle,$5000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exGroupPopupFrameHStart,$6000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exGroupPopupFrameHIntermediate,$7000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exGroupPopupFrameHEnd,$8000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exGroupPopupFrameVStart,$9000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exGroupPopupFrameVIntermediate,$a000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exGroupPopupFrameVEnd,$b000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exMenuHotBackColor,$c000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exMenuSelHotBackColor,$f000000); Refresh(); end |
185 |
How I can assign buttons to a tab
with AxToolBar1 do begin set_Background(EXTOOLBARLib.BackgroundPartEnum.exMenuSelBorderColor,$f0f0f0); with Items do begin ToString := '[id=0][group=0x0103][itemspad=4,4,4,4]([id=-10][group=0x03](),[id=-99][bg=RGB(240,240,240)][group=0x03][itemspad=4,4,4,4]([id=-1' + '00]))'; with Item[TObject(-10)].Items do begin Add('',TObject(0),TObject(0)).Padding := '8,0,0,0'; with Add('New Page',Nil,Nil) do begin ToString := '[typ=2][chk=1][spchk=-1][show=1][grp=10][bghot=RGB(255,255,255)][bgsel=RGB(240,240,240)][bgselhot=RGB(240,240,240)][height=16][g' + 'roup=0x03][tab=-100][pad=2,0,2,0][popupalign=0x01]([id=0][group=0x03]([]))'; Caption := 'Page<off -5><font ;5><b>1</b></font></off>'; ID := -1000; with Items.Item[TObject(0)].Items do begin Add('Button 1',Nil,Nil).ShowAsButton := Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsButtonAutoSize) Or Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsButton); Add('Button 2',Nil,Nil).ShowAsButton := Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsButtonAutoSize) Or Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsButton); Add('Button 3',Nil,Nil).ShowAsButton := Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsButtonAutoSize) Or Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsButton); end; end; with Add('New Page',Nil,Nil) do begin ToString := '[typ=2][chk=0][spchk=-1][show=1][grp=10][bghot=RGB(255,255,255)][bgsel=RGB(240,240,240)][bgselhot=RGB(240,240,240)][height=16][g' + 'roup=0x03][tab=-100][pad=2,0,2,0][popupalign=0x01]([id=0][group=0x03]([]))'; Caption := 'Page<off -5><font ;5><b>2</b></font></off>'; ID := -1001; with Items.Item[TObject(0)].Items do begin Add('Button 3',Nil,Nil).ShowAsButton := Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsButtonAutoSize) Or Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsButton); Add('Button 4',Nil,Nil).ShowAsButton := Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsButtonAutoSize) Or Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsButton); end; end; Add('',TObject(0),TObject(0)).Padding := '8,0,0,0'; end; end; Refresh(); end |
184 |
How can I hide an item
with AxToolBar1 do begin with Items do begin Add('Item 1',Nil,Nil).Visible := False; Add('Item 2',Nil,Nil); end; Refresh(); end |
183 |
How do I quickly load items into the control
|
182 |
Are there any functions to get the size/width/height of the control so all items fit the control's client area
with AxToolBar1 do begin with Items do begin Add('Item 1',Nil,Nil); Add('Item 2',Nil,Nil); end; Refresh(); OutputDebugString( RequiredWidth ); OutputDebugString( RequiredHeight ); end |
181 |
How do I get the item giving its caption
with AxToolBar1 do begin with Items do begin Add('Item 1',Nil,Nil).ID := 1000; Add('Item 2',Nil,Nil).ID := 1001; end; get_Item('Item 1').Bold := True; Refresh(); end |
180 |
How do I get the item giving its identifier
with AxToolBar1 do begin with Items do begin Add('Item 1',Nil,Nil).ID := 1000; Add('Item 2',Nil,Nil).ID := 1001; end; get_Item(TObject(1000)).Bold := True; Refresh(); end |
179 |
Can I change the cursor where it hovers the item
with AxToolBar1 do begin Cursor := 'exCross'; with Items do begin Add('Item 1',Nil,Nil); Add('Item 2',Nil,Nil).Cursor := 'exNoDrop'; end; Refresh(); end |
178 |
I am using radio-buttons, the question is it possible to uncheck the radio-buttons, so no button is pressed in the group
with AxToolBar1 do begin AllowToggleRadio := True; with Items do begin with Add('Radio 1',Nil,TObject(1000)) do begin Radio := True; RadioGroup := 100; end; with Add('Radio 2',Nil,TObject(1001)) do begin Radio := True; RadioGroup := 100; end; with Add('Radio 2',Nil,TObject(1003)) do begin Radio := True; RadioGroup := 100; end; end; Refresh(); end |
177 |
Is it possible to display the item's identifiers
with AxToolBar1 do begin Debug := True; with Items do begin Add('Item 1',Nil,Nil).ID := 10001; Add('Item 2',Nil,Nil).ID := 10002; end; Refresh(); end |
176 |
How do I disable showing the tooltip for all control (method 2)
with AxToolBar1 do begin AllowToolTip := False; with Items do begin Add('Item',Nil,Nil).Tooltip := 'this is a bit of text to be shown when cursor hovers it'; Add('Item',Nil,Nil).Tooltip := 'this is a bit of text to be shown when cursor hovers it'; end; Refresh(); end |
175 |
How can I lock the control, so no events occur, but no shown in gray as Enabled do
// SelectItem event - Occurs when the user selects the item. procedure TWinForm1.AxToolBar1_SelectItem(sender: System.Object; e: AxEXTOOLBARLib._IToolBarEvents_SelectItemEvent); begin with AxToolBar1 do begin OutputDebugString( 'SelectItem should not be fired while locked' ); end end; with AxToolBar1 do begin Locked := True; with Items do begin Add('Disabled',Nil,Nil).Enabled := False; Add('Item 2',Nil,Nil); Add('Item 3',Nil,Nil); end; Refresh(); end |
174 |
How can I disable the control
with AxToolBar1 do begin Enabled := False; with Items do begin Add('Disabled',Nil,Nil).Enabled := False; Add('Item 2',Nil,Nil); Add('Item 3',Nil,Nil); end; Refresh(); end |
173 |
How can I specify a different border/visual appearance for drop down portion of the popup menu (ebn)
with AxToolBar1 do begin VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn'); PopupAppearance := EXTOOLBARLib.ToolBarAppearanceEnum($1000000); with Items do begin with Add('Popup 1',TObject(2),Nil).Items do begin Add('Item 1',Nil,Nil).Check := True; Add('Item 2',Nil,Nil).Check := True; Add('Item 3',Nil,Nil).Check := True; end; with Add('Popup 2',TObject(2),Nil).Items do begin Add('Item 4',Nil,Nil).Check := True; Add('Item 5',Nil,Nil).Check := True; Add('Item 6',Nil,Nil).Check := True; end; end; Refresh(); end |
172 |
How can I specify a different border for drop down portion of the popup menu
with AxToolBar1 do begin PopupAppearance := EXTOOLBARLib.ToolBarAppearanceEnum.ShadowBorder; with Items do begin with Add('Popup 1',TObject(2),Nil).Items do begin Add('Item 1',Nil,Nil).Check := True; Add('Item 2',Nil,Nil).Check := True; Add('Item 3',Nil,Nil).Check := True; end; with Add('Popup 2',TObject(2),Nil).Items do begin Add('Item 4',Nil,Nil).Check := True; Add('Item 5',Nil,Nil).Check := True; Add('Item 6',Nil,Nil).Check := True; end; end; Refresh(); end |
171 |
How can I specify a different border/visual appearance for drop down portion of the select buttons/combobox (ebn)
with AxToolBar1 do begin VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn'); LocalAppearance := EXTOOLBARLib.ToolBarAppearanceEnum($1000000); with Items do begin with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); with Items do begin with Add('Button',TObject(2),Nil) do begin ShowAsButton := Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsSelectButtonBottom) Or Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsButtonAutoSize); with Items do begin Add('Item 1',Nil,Nil); Add('Item 2',Nil,Nil); Add('Item 3',Nil,Nil); end; end; with Add('Button',TObject(2),Nil) do begin ShowAsButton := Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsSelectButtonBottom) Or Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsButtonAutoSize); with Items do begin Add('Item 4',Nil,Nil); Add('Item 5',Nil,Nil); Add('Item 6',Nil,Nil); end; end; end; end; end; Refresh(); end |
170 |
How can I specify a different border for drop down portion of the select buttons/combobox
|
169 |
How can I change the visual appearance for the entire control
with AxToolBar1 do begin VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn'); Appearance := EXTOOLBARLib.ToolBarAppearanceEnum($1000000); ShowCheckedAsSelected := EXTOOLBARLib.ShowCheckedAsSelectedEnum.exDisplayItemCheckHighlight; with Items do begin Padding := '4,4,4,4'; with Add('Radio 1',Nil,Nil) do begin Radio := True; Checked := True; end; Add('Radio 2',Nil,Nil).Radio := True; Add('Radio 3',Nil,Nil).Radio := True; end; Refresh(); end |
168 |
How can I show a border arround the control
with AxToolBar1 do begin Appearance := EXTOOLBARLib.ToolBarAppearanceEnum.FlatBorder; ShowCheckedAsSelected := EXTOOLBARLib.ShowCheckedAsSelectedEnum.exDisplayItemCheckHighlight; with Items do begin Padding := '4,4,4,4'; with Add('Check 1',Nil,Nil) do begin Checked := True; Check := True; end; with Add('Check 2',Nil,Nil) do begin Check := True; end; end; Refresh(); end |
167 |
Is it possible to change the item's background color when check/uncheck the item
with AxToolBar1 do begin ShowCheckedAsSelected := EXTOOLBARLib.ShowCheckedAsSelectedEnum.exDisplayItemCheckHighlight; with Items do begin Padding := '4,4,4,4'; with Add('Check 1',Nil,Nil) do begin Checked := True; Check := True; end; with Add('Check 2',Nil,Nil) do begin Check := True; end; end; Refresh(); end |
166 |
How can I change the colors for hot/hover items
with AxToolBar1 do begin set_Background(EXTOOLBARLib.BackgroundPartEnum.exMenuHotBackColor,$10000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exMenuHotForeColor,$ffffff); set_Background(EXTOOLBARLib.BackgroundPartEnum.exMenuSelHotBackColor,$808080); set_Background(EXTOOLBARLib.BackgroundPartEnum.exMenuSelHotForeColor,$ffffff); SelBackColor := Color.FromArgb(128,128,128); SelForeColor := Color.FromArgb(255,255,255); set_Background(EXTOOLBARLib.BackgroundPartEnum.exMenuSelBorderColor,$808080); ShowCheckedAsSelected := EXTOOLBARLib.ShowCheckedAsSelectedEnum.exDisplayItemCheckHighlight; with Items do begin Padding := '4,4,4,4'; Add('',Nil,Nil).ToString := '[group=3](Item 1,Item 2)'; with Add('Check 1',Nil,Nil) do begin Checked := True; Check := True; end; with Add('Check 2',Nil,Nil) do begin Check := True; end; end; Refresh(); end |
165 |
How do I change the visual appearance of the groups (vertical)
with AxToolBar1 do begin with VisualAppearance do begin Add(1,'c:\exontrol\images\normal.ebn'); Add(2,'c:\exontrol\images\pushed.ebn'); Add(3,'c:\exontrol\images\hot.ebn'); end; set_Background(EXTOOLBARLib.BackgroundPartEnum.exGroupPopupFrameSingle,$1000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exGroupPopupFrameVStart,$1000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exGroupPopupFrameVIntermediate,$2000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exGroupPopupFrameVEnd,$3000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exGroupPopupFrameSolid,$ff); with Items do begin with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); with Items do begin with Add('Vertical',TObject(2),Nil) do begin Alignment := EXTOOLBARLib.AlignmentEnum.exCenter; GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopupVertical) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); with Items do begin Add('Item 1',Nil,Nil); Add('Item 2',Nil,Nil); Add('Item 3',Nil,Nil); Add('Item 4',Nil,Nil); Add('Item 5',Nil,Nil); end; end; Add('',Nil,Nil).CaptionWidth := 12; with Add('Vertical',TObject(2),Nil) do begin Alignment := EXTOOLBARLib.AlignmentEnum.exCenter; GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopupVertical) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopupFrameThickBox) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopupFrameSolidBox) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); with Items do begin Add('Item 1',Nil,Nil); Add('Item 2',Nil,Nil); Add('Item 3',Nil,Nil); Add('Item 4',Nil,Nil); Add('Item 5',Nil,Nil); end; end; end; end; end; Refresh(); end |
164 |
How do I change the visual appearance of the groups (horizontal)
with AxToolBar1 do begin with VisualAppearance do begin Add(1,'c:\exontrol\images\normal.ebn'); Add(2,'c:\exontrol\images\pushed.ebn'); Add(3,'c:\exontrol\images\hot.ebn'); end; set_Background(EXTOOLBARLib.BackgroundPartEnum.exGroupPopupFrameSingle,$1000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exGroupPopupFrameHStart,$1000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exGroupPopupFrameHIntermediate,$2000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exGroupPopupFrameHEnd,$3000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exGroupPopupFrameSolid,$ff); with Items do begin with Add('Horizontal Group',TObject(2),Nil) do begin GroupPopup := EXTOOLBARLib.GroupPopupEnum.exGroupPopup; with Items do begin Add('Item 1',Nil,Nil); Add('Item 2',Nil,Nil); Add('Item 3',Nil,Nil); Add('Item 4',Nil,Nil); Add('Item 5',Nil,Nil); end; end; Add('',Nil,Nil).ToString := 'Horizontal Group[group=193](Item 1,Item 2,Item 3,Item 4,Item 5)'; end; Refresh(); end |
163 |
How can I change the visual appearance of the separator item
with AxToolBar1 do begin VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn'); set_Background(EXTOOLBARLib.BackgroundPartEnum.exMenuSeparatorItem,$1000000); with Items do begin Add('Item',Nil,Nil).CaptionWidth := 128; Add('',TObject(1),Nil); Add('Item',Nil,Nil).CaptionWidth := 128; Add('',Nil,Nil).ToString := '<font ;5>separator[sep]'; end; Refresh(); end |
162 |
How can I change the visual appearance of the drop down of the control (normal.2)
with AxToolBar1 do begin with VisualAppearance do begin Add(1,'c:\exontrol\images\normal.ebn'); Add(2,'c:\exontrol\images\pushed.ebn'); end; PopupFlatImageWidth := 0; with Items do begin with Add('Popup',TObject(2),Nil).Items do begin Add('Item 1',Nil,Nil).Check := True; Add('Item 2',Nil,Nil).Check := True; Add('Item 3',Nil,Nil).Check := True; PopupAppearance := EXTOOLBARLib.ToolBarAppearanceEnum($1000000); end; end; Refresh(); end |
161 |
How can I change the visual appearance of the drop down of the control (normal.1)
with AxToolBar1 do begin with VisualAppearance do begin Add(1,'c:\exontrol\images\normal.ebn'); Add(2,'c:\exontrol\images\pushed.ebn'); end; PopupFlatAppearance := False; with Items do begin with Add('Popup',TObject(2),Nil).Items do begin Add('Item 1',Nil,Nil).Check := True; Add('Item 2',Nil,Nil).Check := True; Add('Item 3',Nil,Nil).Check := True; PopupAppearance := EXTOOLBARLib.ToolBarAppearanceEnum($1000000); end; end; Refresh(); end |
160 |
How can I change the visual appearance of the drop down of the control (flat)
with AxToolBar1 do begin with VisualAppearance do begin Add(1,'c:\exontrol\images\normal.ebn'); Add(2,'c:\exontrol\images\pushed.ebn'); end; (GetOcx() as EXTOOLBARLib.ToolBar).PopupFlatBackColor := $2000000; set_Background(EXTOOLBARLib.BackgroundPartEnum.exMenuFlatLineColor,PopupFlatBackColor); with Items do begin with Add('Popup',TObject(2),Nil).Items do begin Add('Item 1',Nil,Nil).Check := True; Add('Item 2',Nil,Nil).Check := True; Add('Item 3',Nil,Nil).Check := True; PopupAppearance := EXTOOLBARLib.ToolBarAppearanceEnum($1000000); end; end; Refresh(); end |
159 |
How can I change the visual appearance of the flat portion of the drop down of the control
with AxToolBar1 do begin VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn'); (GetOcx() as EXTOOLBARLib.ToolBar).PopupFlatBackColor := $1000000; set_Background(EXTOOLBARLib.BackgroundPartEnum.exMenuFlatLineColor,PopupFlatBackColor); with Items do begin with Add('Popup',TObject(2),Nil).Items do begin Add('Item 1',Nil,Nil).Check := True; Add('Item 2',Nil,Nil).Check := True; Add('Item 3',Nil,Nil).Check := True; PopupAppearance := EXTOOLBARLib.ToolBarAppearanceEnum.ShadowBorder; end; end; Refresh(); end |
158 |
How can I change the visual appearance of the radio-buttons to be displayed in the toolbar control (ebn)
with AxToolBar1 do begin with VisualAppearance do begin Add(1,'c:\exontrol\images\normal.ebn'); Add(2,'c:\exontrol\images\pushed.ebn'); end; set_Background(EXTOOLBARLib.BackgroundPartEnum.exRadioButtonState0,$1000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exRadioButtonState1,$2000000); with Items do begin with Add('',TObject(2),Nil) do begin GroupPopup := EXTOOLBARLib.GroupPopupEnum.exGroupPopup; with Items do begin with Add('Radio 1',Nil,TObject(1000)) do begin Radio := True; RadioGroup := 100; end; with Add('Radio 2',Nil,TObject(1001)) do begin Radio := True; RadioGroup := 100; end; with Add('Radio 2',Nil,TObject(1003)) do begin Radio := True; RadioGroup := 100; end; Item[TObject(1000)].Checked := True; end; end; end; Refresh(); end |
157 |
How can I change the visual appearance of the check-boxes to be displayed in the toolbar control (ebn)
with AxToolBar1 do begin with VisualAppearance do begin Add(1,'c:\exontrol\images\normal.ebn'); Add(2,'c:\exontrol\images\pushed.ebn'); end; set_Background(EXTOOLBARLib.BackgroundPartEnum.exCheckBoxState0,$1000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exCheckBoxState1,$2000000); with Items do begin with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); with Items do begin with Add('Check 1',Nil,Nil) do begin Check := True; Checked := True; end; Add('Check 2',Nil,Nil).Check := True; end; end; end; Refresh(); end |
156 |
How can I change the visual appearance of the tooltips to be displayed in the toolbar control (ebn)
with AxToolBar1 do begin with VisualAppearance do begin Add(1,'c:\exontrol\images\normal.ebn'); Add(2,'c:\exontrol\images\pushed.ebn'); end; ToolTipDelay := 1; set_Background(EXTOOLBARLib.BackgroundPartEnum.exToolTipAppearance,$1000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exToolTipForeColor,$ff); with Items do begin Add('Item',Nil,Nil).Tooltip := 'this is a bit of text to be shown when cursor hovers it'; Add('Item',Nil,Nil).Tooltip := 'this is a bit of text to be shown when cursor hovers it'; end; Refresh(); end |
155 |
Is it possible to change the visual appearance of the buttons to be displayed in the toolbar control (ebn)
with AxToolBar1 do begin with VisualAppearance do begin Add(1,'c:\exontrol\images\normal.ebn'); Add(2,'c:\exontrol\images\pushed.ebn'); end; set_Background(EXTOOLBARLib.BackgroundPartEnum($2),$1000000); set_Background(EXTOOLBARLib.BackgroundPartEnum($3),$2000000); set_Background(EXTOOLBARLib.BackgroundPartEnum.exMenuSeparatorSelectButton,$ff); set_Background(EXTOOLBARLib.BackgroundPartEnum.exMenuSeparatorSelectButtonBottom,$ff0000); with Items do begin Padding := '4,4,4,4'; Add('Button',Nil,Nil).ShowAsButton := Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsButtonAutoSize) Or Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsButton); with Add('',Nil,Nil) do begin Enabled := False; ItemHeight := 4; end; with Add('Button',TObject(2),Nil) do begin ShowAsButton := Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsSelectButtonBottom) Or Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsButtonAutoSize); with Items do begin PopupAppearance := EXTOOLBARLib.ToolBarAppearanceEnum.ShadowBorder; Add('Item 1',Nil,Nil); Add('Item 2',Nil,Nil); Add('Item 3',Nil,Nil); end; end; with Add('',Nil,Nil) do begin Enabled := False; ItemHeight := 4; end; with Add('Button',TObject(2),Nil) do begin ShowAsButton := Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsSelectButton) Or Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsButtonAutoSize); with Items do begin PopupAppearance := EXTOOLBARLib.ToolBarAppearanceEnum.ShadowBorder; Add('Item 1',Nil,Nil); Add('Item 2',Nil,Nil); Add('Item 3',Nil,Nil); end; end; end; Refresh(); end |
154 |
I've seen that the width of the tooltip is variable. Can I make it larger
|
153 |
How do I disable showing the tooltip for all control (method 1)
|
152 |
How do I let the tooltip being displayed longer
|
151 |
How do I show the tooltip quicker
|
150 |
How can I get the version of the control I am running
|
149 |
How can I align the picture on the control's background
|
148 |
Is it possible to place a picture on the control's background
|
147 |
How can I display the item using a different font/size
with AxToolBar1 do begin with Items do begin Add('',Nil,Nil).Caption := '<font ;14>This is a bit of text'; Add('<font ;6>This is a bit of text',Nil,Nil); Add('',Nil,Nil).Caption := '<font Times New Roman;22>This is a bit of text</font>. Default'; end; Refresh(); end |
146 |
How can I use the Event event, available for /COM version
// Event event - Notifies the application once the control fires an event. procedure TWinForm1.AxToolBar1_Event(sender: System.Object; e: AxEXTOOLBARLib._IToolBarEvents_EventEvent); begin with AxToolBar1 do begin OutputDebugString( 'Event' ); OutputDebugString( get_EventParam(-2) ); end end; with AxToolBar1 do begin with Items do begin Add('Check',Nil,Nil).Check := True; with Add('Slider',Nil,Nil) do begin AllowEdit := EXTOOLBARLib.AllowEditEnum.exItemEditSlider; EditWidth := 128; EditBorder := EXTOOLBARLib.EditBorderEnum.exEditBorderNone; EditValue := TObject(25); end; end; Refresh(); end |
145 |
Is it possible to get notified once the user edits the field, or change the slider value
// EditChange event - Occurs when the user alters the item's text box field. procedure TWinForm1.AxToolBar1_EditChange(sender: System.Object; e: AxEXTOOLBARLib._IToolBarEvents_EditChangeEvent); begin with AxToolBar1 do begin OutputDebugString( 'EditChange event on Itm object' ); end end; with AxToolBar1 do begin with Items do begin with Add('Item',Nil,Nil) do begin AllowEdit := EXTOOLBARLib.AllowEditEnum.exItemEditSlider; EditWidth := 128; EditBorder := EXTOOLBARLib.EditBorderEnum.exEditBorderNone; EditValue := TObject(25); end; end; Refresh(); end |
144 |
How do I get notified once I uncheck an item
// UncheckItem event - Occurs when the user unchecks the item. procedure TWinForm1.AxToolBar1_UncheckItem(sender: System.Object; e: AxEXTOOLBARLib._IToolBarEvents_UncheckItemEvent); begin with AxToolBar1 do begin OutputDebugString( 'UncheckItem event on Itm object' ); end end; with AxToolBar1 do begin with Items do begin Add('Item',Nil,Nil).Check := True; Add('Item',Nil,Nil).Check := True; end; Refresh(); end |
143 |
How do I get notified once I check an item
// CheckItem event - Occurs when the user checks the item. procedure TWinForm1.AxToolBar1_CheckItem(sender: System.Object; e: AxEXTOOLBARLib._IToolBarEvents_CheckItemEvent); begin with AxToolBar1 do begin OutputDebugString( 'CheckItem event on Itm object' ); end end; with AxToolBar1 do begin with Items do begin Add('Item',Nil,Nil).Check := True; Add('Item',Nil,Nil).Check := True; end; Refresh(); end |
142 |
How do I get notified once I click/select an item
// SelectItem event - Occurs when the user selects the item. procedure TWinForm1.AxToolBar1_SelectItem(sender: System.Object; e: AxEXTOOLBARLib._IToolBarEvents_SelectItemEvent); begin with AxToolBar1 do begin OutputDebugString( 'SelectItem event on Itm object' ); end end; with AxToolBar1 do begin with Items do begin Add('Item',Nil,Nil); Add('Item',Nil,Nil); end; Refresh(); end |
141 |
Does your control support padding for items
with AxToolBar1 do begin PopupFlatAppearance := False; with Items do begin Padding := '2,12,2,2'; with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); with Items do begin Add('Item 1',Nil,Nil); Add('Item 2',Nil,Nil); Add('Item 3',Nil,Nil); end; end; BackColor := $ffffff; BackgroundExt := 'root[pattern=0x000,frame=RGB(128,128,128)](top[2],top[10,text=`<font ;6><fgcolor 808080> group </font></fgcolor>`,align=0x11])'; end; Refresh(); end |
140 |
How can I display the drop down popup to a different position ( method 2 )
with AxToolBar1 do begin with Items do begin with Add('Popup',TObject(2),TObject(100)) do begin ShowPopupAlign := EXTOOLBARLib.ShowPopupAlignEnum.exShowPopupAlignDown; ShowPopupArrow := False; ShowPopupOffset := '-12,-48'; with Items do begin PopupAppearance := EXTOOLBARLib.ToolBarAppearanceEnum.RaisedBorder; Add('Item 1',Nil,Nil); Add('Item 2',Nil,Nil); Add('Item 3',Nil,Nil); end; end; end; Refresh(); end |
139 |
How can I display the drop down popup to a different position ( method 1 )
with AxToolBar1 do begin with Items do begin with Add('',TObject(2),Nil) do begin GroupPopup := EXTOOLBARLib.GroupPopupEnum.exGroupPopup; with Items do begin with Add('Popup 1',TObject(2),TObject(100)) do begin ShowPopupAlign := EXTOOLBARLib.ShowPopupAlignEnum.exShowPopupAlignDown; ShowPopupArrow := False; with Items do begin PopupAppearance := EXTOOLBARLib.ToolBarAppearanceEnum.RaisedBorder; Add('Item 1',Nil,Nil); Add('Item 2',Nil,Nil); Add('Item 3',Nil,Nil); end; end; with Add('Popup 2',TObject(2),TObject(200)) do begin ShowPopupAt := 100; ShowPopupArrow := False; with Items do begin PopupAppearance := EXTOOLBARLib.ToolBarAppearanceEnum.RaisedBorder; Add('Item 4',Nil,Nil); Add('Item 5',Nil,Nil); Add('Item 6',Nil,Nil); end; end; end; end; end; Refresh(); end |
138 |
Is it possible to show the popup bellow to the item, rather than on the right side
with AxToolBar1 do begin with Items do begin with Add('Popup',TObject(2),Nil) do begin ShowPopupAlign := EXTOOLBARLib.ShowPopupAlignEnum.exShowPopupAlignDown; ShowPopupArrow := False; with Items do begin PopupAppearance := EXTOOLBARLib.ToolBarAppearanceEnum.FlatBorder; Add('Item 1',Nil,Nil); Add('Item 2',Nil,Nil); Add('Item 3',Nil,Nil); end; end; Add('',Nil,Nil).ToString := 'Popup[arrow=0][popupalign=1][popupapp=1](Item 1,Item 2,Item 3)'; end; Refresh(); end |
137 |
How can I change the visual appearance for items, when cursor hovers it (hot,EBN)
with AxToolBar1 do begin VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn'); with Items do begin with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); with Items do begin HotBackColor := $1000000; Padding := '4,8,4,8'; Add('Item 1',Nil,Nil); Add('Item 2',Nil,Nil); Add('Item 3',Nil,Nil); end; end; Add('',Nil,Nil).ToString := '[group=0x03][itemspad=4,8,4,8][itemsbghot=0x1000000](Item 1,Item 2,Item 3)'; end; Refresh(); end |
136 |
How can I change the background color for items, when cursor hovers it (hot)
|
135 |
How can I change the visual appearance for items (EBN)
with AxToolBar1 do begin VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn'); with Items do begin with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); with Items do begin BackColor := $1000000; Padding := '4,8,4,8'; Add('Item 1',Nil,Nil); Add('Item 2',Nil,Nil); Add('Item 3',Nil,Nil); end; end; Add('',Nil,Nil).ToString := '[group=0x03][itemspad=4,8,4,8][itemsbg=0x1000000](Item 1,Item 2,Item 3)'; end; Refresh(); end |
134 |
How can I change the background color for items
|
133 |
Is it possible to hide the popup's arrow
with AxToolBar1 do begin with Items do begin with Add('Popup',TObject(2),Nil) do begin ShowPopupArrow := False; with Items do begin PopupAppearance := EXTOOLBARLib.ToolBarAppearanceEnum.ShadowBorder; Add('Item 1',Nil,Nil); Add('Item 2',Nil,Nil); Add('Item 3',Nil,Nil); end; end; Add('',Nil,Nil).ToString := 'Popup[arrow=0][popupapp=6](Item 1,Item 2,Item 3)'; end; Refresh(); end |
132 |
How do I hide the left gray portion to be shown on the drop down menu/popup (method 2)
with AxToolBar1 do begin PopupFlatImageWidth := 0; with Items do begin with Add('Popup',TObject(2),Nil).Items do begin Add('Item 1',Nil,Nil); Add('Item 2',Nil,Nil); Add('Item 3',Nil,Nil); PopupAppearance := EXTOOLBARLib.ToolBarAppearanceEnum.ShadowBorder; end; end; Refresh(); end |
131 |
How do I hide the left gray portion to be shown on the drop down menu/popup (method 1)
with AxToolBar1 do begin PopupFlatAppearance := False; with Items do begin with Add('Popup',TObject(2),Nil).Items do begin Add('Item 1',Nil,Nil); Add('Item 2',Nil,Nil); Add('Item 3',Nil,Nil); PopupAppearance := EXTOOLBARLib.ToolBarAppearanceEnum.ShadowBorder; end; end; Refresh(); end |
130 |
How can I arrange the drop down item from left to right, rather than top to bottom
// SelectItem event - Occurs when the user selects the item. procedure TWinForm1.AxToolBar1_SelectItem(sender: System.Object; e: AxEXTOOLBARLib._IToolBarEvents_SelectItemEvent); begin with AxToolBar1 do begin OutputDebugString( 'Clicked' ); end end; with AxToolBar1 do begin PopupFlatAppearance := False; with Items do begin with Add('Button',TObject(2),Nil) do begin ShowAsButton := Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsSelectButtonBottom) Or Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsButtonAutoSize); with Items do begin PopupAppearance := EXTOOLBARLib.ToolBarAppearanceEnum.ShadowBorder; with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); with Items do begin Add('Item 1',Nil,Nil); Add('Item 2',Nil,Nil); Add('Item 3',Nil,Nil); end; end; end; end; Add('',Nil,Nil).ToString := 'Button[button=0x0113][popupapp=6]([group=0x03](Item 1,Item 2,Item 3))'; end; Refresh(); end |
129 |
How can I add a drop down button / combobox (method 2)
// SelectItem event - Occurs when the user selects the item. procedure TWinForm1.AxToolBar1_SelectItem(sender: System.Object; e: AxEXTOOLBARLib._IToolBarEvents_SelectItemEvent); begin with AxToolBar1 do begin OutputDebugString( 'Clicked' ); end end; with AxToolBar1 do begin with Items do begin with Add('Button',TObject(2),Nil) do begin ShowAsButton := Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsSelectButtonBottom) Or Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsButtonAutoSize); with Items do begin PopupAppearance := EXTOOLBARLib.ToolBarAppearanceEnum.ShadowBorder; Add('Item 1',Nil,Nil); Add('Item 2',Nil,Nil); Add('Item 3',Nil,Nil); end; end; Add('',Nil,Nil).ToString := 'Button[button=275][popupapp=6](Item 1[id=20],Item 2[id=30],Item 3[id=40])'; end; Refresh(); end |
128 |
How can I add a drop down button / combobox (method 1)
// SelectItem event - Occurs when the user selects the item. procedure TWinForm1.AxToolBar1_SelectItem(sender: System.Object; e: AxEXTOOLBARLib._IToolBarEvents_SelectItemEvent); begin with AxToolBar1 do begin OutputDebugString( 'Clicked' ); end end; with AxToolBar1 do begin with Items do begin with Add('Button',TObject(2),Nil) do begin ShowAsButton := Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsSelectButton) Or Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsButtonAutoSize); with Items do begin PopupAppearance := EXTOOLBARLib.ToolBarAppearanceEnum.ShadowBorder; Add('Item 1',Nil,Nil); Add('Item 2',Nil,Nil); Add('Item 3',Nil,Nil); end; end; Add('',Nil,Nil).ToString := 'Button[button=0x13][popupapp=6](Item 1[id=20],Item 2[id=30],Item 3[id=40])'; end; Refresh(); end |
127 |
I am using exShowAsSelectButton/exShowAsSelectButtonBottom but none of them works. What could be wrong
// SelectItem event - Occurs when the user selects the item. procedure TWinForm1.AxToolBar1_SelectItem(sender: System.Object; e: AxEXTOOLBARLib._IToolBarEvents_SelectItemEvent); begin with AxToolBar1 do begin OutputDebugString( 'Clicked' ); end end; with AxToolBar1 do begin with Items do begin with Add('Button',TObject(2),Nil) do begin ShowAsButton := Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsSelectButton) Or Integer(EXTOOLBARLib.ShowAsButtonEnum.exShowAsButtonAutoSize); with Items do begin PopupAppearance := EXTOOLBARLib.ToolBarAppearanceEnum.ShadowBorder; Add('Item 1',Nil,Nil); Add('Item 2',Nil,Nil); Add('Item 3',Nil,Nil); end; end; end; Refresh(); end |
126 |
How can I add a button (push button)
|
125 |
How can I display grouping items with no frame arround
|
124 |
How can I display grouping items of the same size/width/height
|
123 |
Is it possible to display a ticker frame arround grouping items
|
122 |
How do I display items horizontally arranged
|
121 |
Is it possible to expand an item when it is clicked (tree,group,vertical)
with AxToolBar1 do begin with Items do begin with Add('Expand',TObject(2),Nil) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopupVertical) Or Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); Check := True; ShowPopupOnChecked := True; with Items do begin Padding := '22,0,0,0'; Add('Radio 1',Nil,Nil).Radio := True; Add('Radio 2',Nil,Nil).Radio := True; with Add('Radio 3',Nil,Nil) do begin Radio := True; Checked := True; end; end; Checked := True; end; Add('',Nil,Nil).ToString := 'Expand[typ=1][chk=1][spchk=-1][group=0x0103][itemspad=22,0,0,0](Radio 1[id=20][typ=2],Radio 2[id=30][typ=2],Radio 3[id=40][typ=2' + '][chk=1])'; end; Refresh(); end |
120 |
Is it possible to expand an item when it is clicked (tree,group,vertical)
with AxToolBar1 do begin with Items do begin with Add('Expand',TObject(2),Nil) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopupVertical) Or Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); Check := True; ShowPopupOnChecked := True; with Items do begin Padding := '22,0,0,0'; Add('Radio 1',Nil,Nil).Radio := True; Add('Radio 2',Nil,Nil).Radio := True; with Add('Radio 3',Nil,Nil) do begin Radio := True; Checked := True; end; end; Checked := True; end; end; Refresh(); end |
119 |
Is it possible to expand an item when it is clicked (group)
with AxToolBar1 do begin with Items do begin with Add('Expand',TObject(2),Nil) do begin GroupPopup := EXTOOLBARLib.GroupPopupEnum.exGroupPopup; ItemHeight := 24; Check := True; ShowPopupOnChecked := True; with Items do begin Add('Item 1',Nil,Nil); Add('Item 2',Nil,Nil); Add('Item 3',Nil,Nil); PopupAppearance := EXTOOLBARLib.ToolBarAppearanceEnum.ShadowBorder; end; end; end; Refresh(); end |
118 |
Is it possible to extend an item when it is clicked
with AxToolBar1 do begin with Items do begin with Add('Expand',TObject(2),Nil) do begin Check := True; ShowPopupOnChecked := True; with Items do begin Add('Item 1',Nil,Nil); Add('Item 2',Nil,Nil); Add('Item 3',Nil,Nil); PopupAppearance := EXTOOLBARLib.ToolBarAppearanceEnum.ShadowBorder; end; end; end; Refresh(); end |
117 |
Does your control implement padding for item
|
116 |
How can I add an empty item for a horizontal group
with AxToolBar1 do begin with Items do begin with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); with Items do begin Add('Item 1',Nil,Nil); with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopupCenter) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); ItemHeight := 12; with Items.Add('',Nil,Nil) do begin Enabled := False; ItemHeight := 8; CaptionWidth := 8; end; end; Add('Item 2',Nil,Nil); end; end; end; Refresh(); end |
115 |
How can I add an empty/separator item
with AxToolBar1 do begin with Items do begin Add('Item',Nil,Nil); with Add('',Nil,Nil) do begin Enabled := False; ItemHeight := 2; CaptionWidth := 8; BackColor := $f0f0f0; end; Add('Item',Nil,Nil); end; Refresh(); end |
114 |
How can I add an empty/frame item
with AxToolBar1 do begin with Items do begin Add('Item 1',Nil,Nil); with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopupCenter) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); ItemHeight := 12; with Items.Add('',Nil,Nil) do begin Enabled := False; ItemHeight := 8; CaptionWidth := 8; end; end; Add('Item 2',Nil,Nil); end; Refresh(); end |
113 |
How can I specify the height of the item
|
112 |
How can I specify the width of the item
|
111 |
How do I align the item
with AxToolBar1 do begin with Items do begin BackColor := $fafafa; Add('Item',Nil,Nil); with Add('Item',Nil,Nil) do begin Alignment := EXTOOLBARLib.AlignmentEnum.exCenter; CaptionWidth := 128; end; with Add('Item',Nil,Nil) do begin Alignment := EXTOOLBARLib.AlignmentEnum.exRight; CaptionWidth := 128; end; Add('',Nil,Nil).ToString := 'Item[align=1]'; end; Refresh(); end |
110 |
How can I underline the item
with AxToolBar1 do begin with Items do begin Add('Item',Nil,Nil).Underline := True; Add('<u>Item</u>',Nil,Nil); Add('',Nil,Nil).ToString := 'Item[und]'; end; Refresh(); end |
109 |
How can I show the item as strikeout
with AxToolBar1 do begin with Items do begin Add('Item',Nil,Nil).Strikeout := True; Add('<s>Item</s>',Nil,Nil); Add('',Nil,Nil).ToString := 'Item[stk]'; end; Refresh(); end |
108 |
How can I show the item in italics
with AxToolBar1 do begin with Items do begin Add('Item',Nil,Nil).Italic := True; Add('<i>Item</i>',Nil,Nil); Add('',Nil,Nil).ToString := 'Item[itl]'; end; Refresh(); end |
107 |
How can I show the item in bold
with AxToolBar1 do begin with Items do begin Add('Item',Nil,Nil).Bold := True; Add('<b>Item</b>',Nil,Nil); Add('',Nil,Nil).ToString := 'Item[bld]'; end; Refresh(); end |
106 |
How can I show the item as disabled but still be able to select or use it
with AxToolBar1 do begin with Items do begin Add('Item',Nil,Nil).ShowAsDisabled := True; Add('',Nil,Nil).ToString := 'Item[showdis=1]'; end; Refresh(); end |
105 |
How can I enable or disable an item
with AxToolBar1 do begin with Items do begin Add('Item',Nil,Nil).Enabled := False; Add('',Nil,Nil).ToString := 'Item[dis]'; end; Refresh(); end |
104 |
How can I add a separator item
|
103 |
How can I change the item's foreground color
|
102 |
How can I change the item's background/backcolor, when the item is selected/checked (radio-buttons)
with AxToolBar1 do begin with Items do begin with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXTOOLBARLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXTOOLBARLib.GroupPopupEnum.exGroupPopup); with Items do begin with Add('Radio 1',Nil,Nil) do begin HotBackColor := $ffffff; SelBackColor := $ff; SelHotBackColor := $ff; ShowCheckedAsSelected := EXTOOLBARLib.ShowCheckedAsSelectedEnum.exDisplayItemHighlight; Radio := True; RadioGroup := 100; Checked := True; end; with Add('Radio 2',Nil,Nil) do begin HotBackColor := $ffffff; SelBackColor := $ff; SelHotBackColor := $ff; ShowCheckedAsSelected := EXTOOLBARLib.ShowCheckedAsSelectedEnum.exDisplayItemHighlight; Radio := True; RadioGroup := 100; end; Add('',Nil,Nil).ToString := 'Radio 3[typ=2][show=1][grp=100][bghot=RGB(255,255,255)][bgsel=RGB(255,0,0)][bgselhot=RGB(255,0,0)]'; end; end; end; Refresh(); end |
101 |
How can I change the item's background/backcolor, when the item is selected/checked (check-box)
with AxToolBar1 do begin with Items do begin with Add('Check 1',Nil,Nil) do begin HotBackColor := $ffffff; SelBackColor := $ff; SelHotBackColor := $ff; ShowCheckedAsSelected := EXTOOLBARLib.ShowCheckedAsSelectedEnum.exDisplayItemHighlight; Checked := True; Check := True; end; Add('',Nil,Nil).ToString := 'Check 2[typ=1][chk=0][show=1][bghot=RGB(255,255,255)][bgsel=RGB(255,0,0)][bgselhot=RGB(255,0,0)]'; end; Refresh(); end |