231
|
ImageSize property on 32 (specifies the size of control' icons/images/check-boxes/radio-buttons)

with Ribbon1 do
begin
ImageSize := 32;
Font.Size := 16;
PopupFlatImageWidth := 36;
PopupAppearance := EXRIBBONLib_TLB.EtchedBorder;
LocalAppearance := EXRIBBONLib_TLB.EtchedBorder;
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/2bj2ByVdu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GoJoKiKaJKDaDojmkChGgmIgpCoVo' +
'WiWaJZiSd4mmmSh2h6J5qAqBoiiiaY5iSeIpmqComiqKpqkqNouiuah6hqMIsmsSpWiuGhP1kOoumuSp2j6L5sAsBo54gKwWkaMZsgsJpKjKbJLDaRYxYWRpSjSbIZiS' +
'e41m2CxmlqNptksdpejebR5iSfI4m4S4W16boLiaao6m5fJ9jubwLkaco8m8S5WnaPZunuOp4j6b5Lnac4SA0PAGlgP4wEwFwGkGcIMCcCpCnCCxiA8NYAAmMJfkSbhF' +
'CcFpFnGDBnBqRpUhuEwTDeZ5lHCfw6HIQxLCaAxygyJwqgGcATE4FA6hWY4tjEAAQBAgIA==');
end;
SelBackColor := $4000000;
SelForeColor := RGB(0,0,1);
Background[EXRIBBONLib_TLB.exCheckBoxState0] := $1000000;
Background[EXRIBBONLib_TLB.exCheckBoxState1] := $2000000;
Background[EXRIBBONLib_TLB.exCheckBoxState2] := $3000000;
with Items do
begin
Add('',Null,Null).ToString := 'Popup[img=1](Item 1[chk],Item 2[chk=1],Item 3[img=1],Item 4[img=2])';
Add('',OleVariant(1),Null);
with Add('Button',OleVariant(2),Null) do
begin
Image := 2;
ShowAsButton := Integer(EXRIBBONLib_TLB.exShowAsSelectButton) Or Integer(EXRIBBONLib_TLB.exShowAsButtonAutoSize);
with Items do
begin
Add('Item 1',Null,Null);
Add('Item 2',Null,Null);
Add('Item 3',Null,Null);
end;
end;
end;
Refresh();
end
|
230
|
ImageSize property on 16 (default) (specifies the size of control' icons)

with Ribbon1 do
begin
ImageSize := 16;
PopupAppearance := EXRIBBONLib_TLB.EtchedBorder;
LocalAppearance := EXRIBBONLib_TLB.EtchedBorder;
Images('gBJJgBAIDAAEg4ACEKAD/hz/EMNh8TIRNGwAjEZAEXjAojJAjMLjABAAgjUYkUnlUrlktl0vmExmUzmk1m03nE5nU7nkrQCAntBoVDolFo1HoM/ADAplLptImdMYFOqd' +
'SqlXq1QrVbrlGpVWsFNrNdnNjsk7pQAtNroFnt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JsAaAYQgmPpolCWgSCiBJzjcEIAkQXIBm8d5UhOQgCDUIBDDJDhgggJgKgKYJIDSVoDk8KBFF4OohEMZgWDsY' +
'YDj4GoGmGSB2B6B5iAiBgYDsYRjGSbIJo4RgqDuIpIAoLoLmMCJGDKDJjJiLA7xqUAAgGTwYnYPoPmQCQGEKEJkEkFg9gGY44BoRoSmSSQ2EKEggHgRhShSZRJFYVoVm' +
'WCRmFKFAgGOTheheZgJgYYoYmYSYWGaF4lkMMJ0hqZpJjYbobmcCZGHKHJmjmJh0h2Z4JmYcIaE8WZ2H6H5oAoBoCiCaBKBYfdjGoJoKiKaJKDaDojmkChGgmIgpCoVo' +
'WiWaJZiSd4mmmSh2h6J5qAqBoiiiaY5iSeIpmqComiqKpqkqNouiuah6hqMIsmsSpWiuGhP1kOoumuSp2j6L5sAsBo54gKwWkaMZsgsJpKjKbJLDaRYxYWRpSjSbIZiS' +
'e41m2CxmlqNptksdpejebR5iSfI4m4S4W16boLiaao6m5fJ9jubwLkaco8m8S5WnaPZunuOp4j6b5Lnac4SA0PAGlgP4wEwFwGkGcIMCcCpCnCCxiA8NYAAmMJfkSbhF' +
'CcFpFnGDBnBqRpUhuEwTDeZ5lHCfw6HIQxLCaAxygyJwqgGcATE4FA6hWY4tjEAAQBAgIA==');
end;
SelBackColor := $4000000;
SelForeColor := RGB(0,0,1);
with Items do
begin
Add('',Null,Null).ToString := 'Popup[img=1](Item 1[chk],Item 2[chk=1],Item 3[img=1],Item 4[img=2])';
Add('',OleVariant(1),Null);
with Add('Button',OleVariant(2),Null) do
begin
Image := 2;
ShowAsButton := Integer(EXRIBBONLib_TLB.exShowAsSelectButton) Or Integer(EXRIBBONLib_TLB.exShowAsButtonAutoSize);
with Items do
begin
Add('Item 1',Null,Null);
Add('Item 2',Null,Null);
Add('Item 3',Null,Null);
end;
end;
end;
Refresh();
end
|
229
|
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 TForm1.Ribbon1EditChange(ASender: TObject; Itm : IItem);
begin
with Ribbon1 do
begin
OutputDebugString( Itm );
end
end;
with Ribbon1 do
begin
ToString := 'Mask[edit=98][editwidth=-128][edittype=2][mask=00000],Mask[edit=98][editwidth=-128][edittype=2][mask=00000;1]';
end
|
228
|
How can I create a progress/step bar for installation

with Ribbon1 do
begin
with VisualAppearance do
begin
Add(2,'gBFLBCJwBAEHhEJAAEhABfQCg6AADACAxRDgMQBQKAAzQFAYcBqGqGAAGIaRWgmFgAQhFcZQSKUOQTDKMIziYBYJhEMgxDREIwjEKEIhoGQcJAGQBJCjWGodQLOEgwHI' +
'ERQjEyUpIgFBIYhzEAZJ5jOioaBOCY0TxCNCQG5oOBIACqariagBUoKUwADCNdIVfIUQBFDYZabjeooJpmWJWRbJQyiLaVaQSGoYLqgO6LajWIJORpZcB1BK2Cy5FSWJ' +
'amCYpEwXBY6TpIFKXDIsOSDIqvaKpDI4WxMH4JYELOy4aYPJgAaYweSTTi8CYzMSOLIpOCcCADH4DWjAeh1DAdPzdNytY4uO5YRrzRZ5RDZOgQTq4AZrXbHJpwehZMwy' +
'DmEwMmieBch4ExDk2Cxvi4HAMi6MhTlQGBrnsA4dhQapNGqXBzCMfgaj+DgHkSYRfHiVx+EeSxIAAaBYEaVZfHQXpXngCBCEUAYkGMHQHFGSBlEGUISCgFRAkQIQ2BIR' +
'oRFQDAoEIW4WgkawGBEcRSBOAQQhaJgmgmYoIiYKoKmKSI2C6C5jAiLAkAcDpYk4NYNCMaJmDiDpjHidg6g+IxIhYMYQmQSQWEaEZiHifhKg8JI5AIToNiQKQiFKFJlE' +
'kGhNhWZJJGYT4QFAORWF6F5mAkJhahYJY5hYUBAmOeI4n+GpmkmNhuhuZwJkYcocmcSZWG+C4mEmZhjg8EIZDYaodigCgGgKIJnBmYh7hmKB5hwAIZCeegSg6I5pAmNo' +
'GiIKRIn4fYiGMSg2hGJppkmVoTh6KRKF6FYmGKWh2iaKZnHiNoghkKgqi6JILTKRonieaYJDqL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ZjIfjMmjBbjKtvMZM8ZCF0xmNx2PnALjJFjLMjL4jLjjK8jLAjLky8ZZcZIEZr+Q1Gp1' +
'WOAsZD0ZYcZf0ZfMZd8ZeG02UZYUZDcZhOr4XD4lIqIOjK6jL63cY2fO5oA2sYW8ZBkZknF7Xb7k0qN2jGUjF6jHTAHP8/R9GYjDEjJCjIPq/d+n14nZAHgABEjLIjJ4' +
'vVALoQGADcva0jFOw+0FwYujFowLSMmajJ6oyfkBPTAj0PRC6MQqjBlIyK74wbEsTK0iKMDIjJZNEjJtoydyMn3DDmIwdiMm0jMQowWKMjCv8TyFIahgqjIarYjAvoyN' +
'aMkyjJpQwaCMksjI1IyLyMikjIZpDIkvzArgaIyScZzMjBHoyGMwzZNrHtOAAsP/GKMiqjIDzdPM9Le/EkIwUyMlCjMxpHPdDUOrMjIw/iMCDL1EUhSKigG6yMskjFKU' +
'lTVN05TtPU/UFQqwiofJXUqOo/R4AJI/CMQMnKHolV6VIdWaT1qlp8njWyNHwANeMvX6W19YCMWJYdhJY3NigAzw4JbZ1oABZ6WH8B9mWtZh/k/bVuJbbdtH/cNmICA=' +
'');
with Items do
begin
with Add('',OleVariant(2),Null) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exGroupPopupEqualHeight) Or Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
with Items do
begin
with Add(' <img>5</img> Home',Null,Null) do
begin
BackColor := $7000000;
ItemHeight := 36;
Alignment := EXRIBBONLib_TLB.exRight;
ForeColor := $808080;
end;
with Add(' <img>6</img> Gebaude',Null,Null) do
begin
BackColor := $5000000;
Alignment := EXRIBBONLib_TLB.exRight;
ForeColor := $808080;
end;
with Add(' <img>6</img> Aussttung',Null,Null) do
begin
BackColor := $5000000;
Alignment := EXRIBBONLib_TLB.exRight;
ForeColor := $808080;
end;
with Add(' <img>3</img> Produkt',Null,Null) do
begin
BackColor := $3000000;
Alignment := EXRIBBONLib_TLB.exRight;
end;
with Add(' <img>4</img> Rabate',Null,Null) do
begin
Alignment := EXRIBBONLib_TLB.exRight;
BackColor := $1000000;
Enabled := False;
end;
with Add(' <img>7</img> Ergebnis',Null,Null) do
begin
Alignment := EXRIBBONLib_TLB.exRight;
BackColor := $1000000;
Enabled := False;
end;
end;
end;
end;
Refresh();
end
|
227
|
Is there any function to retrieve all available shortcut keys

with Ribbon1 do
begin
Background[EXRIBBONLib_TLB.exShortcutKeyBackColor] := $10000;
Background[EXRIBBONLib_TLB.exShortcutKeyForeColor] := $ffffff;
ShortcutKeyVisible := Integer(EXRIBBONLib_TLB.exDisplayShortcutKeysAllAvailable) Or Integer(EXRIBBONLib_TLB.exShowShortcutKeysToggleDelayed);
with Items do
begin
PopupAppearance := EXRIBBONLib_TLB.ShadowBorder;
with Add('',OleVariant(2),OleVariant(10)) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
with Items do
begin
with Add('Item 1',OleVariant(0),OleVariant(20)) do
begin
Check := True;
Shortcut := 'ALT+1';
end;
with Add('Item 2',OleVariant(0),OleVariant(30)) do
begin
Check := True;
Checked := True;
Shortcut := 'ALT+2';
end;
with Add('Item 3',OleVariant(2),OleVariant(40)) do
begin
Shortcut := 'ALT+3';
with Items do
begin
with Add('Sub-Item 3.1',OleVariant(0),OleVariant(50)) do
begin
Radio := True;
Checked := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '1';
end;
with Add('Sub-Item 3.2',OleVariant(0),OleVariant(60)) do
begin
Radio := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '2';
end;
with Add('Sub-Item 3.2',OleVariant(0),OleVariant(70)) do
begin
Radio := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '3';
end;
end;
end;
end;
end;
end;
Refresh();
OutputDebugString( ShortcutKeysInfo );
end
|
226
|
How can I display shortcut keys with a different size

with Ribbon1 do
begin
ShortcutKeyFormat := '`<font ;14>` + caption';
with Items do
begin
PopupAppearance := EXRIBBONLib_TLB.ShadowBorder;
with Add('',OleVariant(2),OleVariant(10)) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
with Items do
begin
with Add('Item 1',OleVariant(0),OleVariant(20)) do
begin
Check := True;
Shortcut := 'ALT+1';
end;
with Add('Item 2',OleVariant(0),OleVariant(30)) do
begin
Check := True;
Checked := True;
Shortcut := 'ALT+SHIFT+2';
end;
with Add('Item 3',OleVariant(2),OleVariant(40)) do
begin
Shortcut := 'ALT+3';
with Items do
begin
with Add('Sub-Item 3.1',OleVariant(0),OleVariant(50)) do
begin
Radio := True;
Checked := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '1';
end;
with Add('Sub-Item 3.2',OleVariant(0),OleVariant(60)) do
begin
Radio := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '2';
end;
with Add('Sub-Item 3.2',OleVariant(0),OleVariant(70)) do
begin
Radio := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '33+3';
end;
end;
end;
end;
end;
end;
end
|
225
|
How can I display shortcut keys with a different font

with Ribbon1 do
begin
Background[EXRIBBONLib_TLB.exShortcutKeyBackColor] := $10000;
Background[EXRIBBONLib_TLB.exShortcutKeyForeColor] := $ffffff;
ShortcutKeyFormat := '`<font Stencil>` + caption';
with Items do
begin
PopupAppearance := EXRIBBONLib_TLB.ShadowBorder;
with Add('',OleVariant(2),OleVariant(10)) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
with Items do
begin
with Add('Item 1',OleVariant(0),OleVariant(20)) do
begin
Check := True;
Shortcut := 'ALT+1';
end;
with Add('Item 2',OleVariant(0),OleVariant(30)) do
begin
Check := True;
Checked := True;
Shortcut := 'ALT+SHIFT+2';
end;
with Add('Item 3',OleVariant(2),OleVariant(40)) do
begin
Shortcut := 'ALT+3';
with Items do
begin
with Add('Sub-Item 3.1',OleVariant(0),OleVariant(50)) do
begin
Radio := True;
Checked := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '1';
end;
with Add('Sub-Item 3.2',OleVariant(0),OleVariant(60)) do
begin
Radio := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '2';
end;
with Add('Sub-Item 3.2',OleVariant(0),OleVariant(70)) do
begin
Radio := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '33+3';
end;
end;
end;
end;
end;
end;
end
|
224
|
How can I change the visual appearance of the shortcut keys (sample 3, theme)

with Ribbon1 do
begin
VisualAppearance.Add(1,'XP: Button 1 1');
Background[EXRIBBONLib_TLB.exShortcutKeyAppearance] := $1000000;
Background[EXRIBBONLib_TLB.exShortcutKeyBackColor] := $0;
Background[EXRIBBONLib_TLB.exShortcutKeyForeColor] := $0;
ShortcutKeyVisible := Integer(EXRIBBONLib_TLB.exDisplayShortcutKeysAllAvailable) Or Integer(EXRIBBONLib_TLB.exShowShortcutKeysToggleDelayed);
with Items do
begin
PopupAppearance := EXRIBBONLib_TLB.ShadowBorder;
with Add('',OleVariant(2),OleVariant(10)) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
with Items do
begin
with Add('Item 1',OleVariant(0),OleVariant(20)) do
begin
Check := True;
Shortcut := 'ALT+1';
end;
with Add('Item 2',OleVariant(0),OleVariant(30)) do
begin
Check := True;
Checked := True;
Shortcut := 'ALT+2';
end;
with Add('Item 3',OleVariant(2),OleVariant(40)) do
begin
Shortcut := 'ALT+3';
with Items do
begin
with Add('Sub-Item 3.1',OleVariant(0),OleVariant(50)) do
begin
Radio := True;
Checked := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '1';
end;
with Add('Sub-Item 3.2',OleVariant(0),OleVariant(60)) do
begin
Radio := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '2';
end;
with Add('Sub-Item 3.2',OleVariant(0),OleVariant(70)) do
begin
Radio := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '33+3';
end;
end;
end;
end;
end;
end;
end
|
223
|
It is possible somehow to show all available shortcut keys (sample 2)

// SelectItem event - Occurs when the user selects the item.
procedure TForm1.Ribbon1SelectItem(ASender: TObject; Itm : IItem);
begin
with Ribbon1 do
begin
ShortcutKeyVisible := Integer(EXRIBBONLib_TLB.exDisplayShortcutKeysAllAvailable) Or Integer(EXRIBBONLib_TLB.exShowShortcutKeysToggleDelayed);
ShortcutKeyFormat := '`<c><font ;6><fgcolor 808080>` + sca + `</fgcolor></font><br><c>Key:` + keys';
ShortcutKeyPressedModifers := EXRIBBONLib_TLB.exModifierAny;
ShortcutKeyFormat := '';
ShortcutKeyVisible := EXRIBBONLib_TLB.exShowShortcutKeysToggleDelayed;
end
end;
with Ribbon1 do
begin
with Items do
begin
PopupAppearance := EXRIBBONLib_TLB.ShadowBorder;
with Add('',OleVariant(2),OleVariant(10)) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
with Items do
begin
with Add('Item 1',OleVariant(0),OleVariant(20)) do
begin
Check := True;
Shortcut := 'ALT+CTRL+1';
end;
with Add('Item 2',OleVariant(0),OleVariant(30)) do
begin
Check := True;
Checked := True;
Shortcut := 'ALT+SHIFT+2';
end;
with Add('Item 3',OleVariant(2),OleVariant(40)) do
begin
Shortcut := 'ALT+3';
with Items do
begin
with Add('Sub-Item 3.1',OleVariant(0),OleVariant(50)) do
begin
Radio := True;
Checked := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '1';
end;
with Add('Sub-Item 3.2',OleVariant(0),OleVariant(60)) do
begin
Radio := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '2';
end;
with Add('Sub-Item 3.2',OleVariant(0),OleVariant(70)) do
begin
Radio := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '33+3';
end;
end;
end;
end;
end;
end;
end
|
222
|
It is possible somehow to show all available shortcut keys (sample 1)

// SelectItem event - Occurs when the user selects the item.
procedure TForm1.Ribbon1SelectItem(ASender: TObject; Itm : IItem);
begin
with Ribbon1 do
begin
ShortcutKeyPressedModifers := EXRIBBONLib_TLB.exModifierAny;
end
end;
with Ribbon1 do
begin
with Items do
begin
PopupAppearance := EXRIBBONLib_TLB.ShadowBorder;
with Add('',OleVariant(2),OleVariant(10)) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
with Items do
begin
with Add('Item 1',OleVariant(0),OleVariant(20)) do
begin
Check := True;
Shortcut := 'ALT+1';
end;
with Add('Item 2',OleVariant(0),OleVariant(30)) do
begin
Check := True;
Checked := True;
Shortcut := 'ALT+2';
end;
with Add('Item 3',OleVariant(2),OleVariant(40)) do
begin
Shortcut := 'ALT+3';
with Items do
begin
with Add('Sub-Item 3.1',OleVariant(0),OleVariant(50)) do
begin
Radio := True;
Checked := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '1';
end;
with Add('Sub-Item 3.2',OleVariant(0),OleVariant(60)) do
begin
Radio := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '2';
end;
with Add('Sub-Item 3.2',OleVariant(0),OleVariant(70)) do
begin
Radio := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '33+3';
end;
end;
end;
end;
end;
end;
end
|
221
|
How can I show the shortcut keys semi-transparent

with Ribbon1 do
begin
Background[EXRIBBONLib_TLB.exShortcutKeyAppearance] := $0;
Background[EXRIBBONLib_TLB.exShortcutKeyBackColor] := $10000;
Background[EXRIBBONLib_TLB.exShortcutKeyForeColor] := $ffffff;
ShortcutKeyVisible := Integer(EXRIBBONLib_TLB.exDisplayShortcutKeysAllAvailable) Or Integer(EXRIBBONLib_TLB.exShowShortcutKeysToggleDelayed);
ShortcutKeyTransparent := 50;
with Items do
begin
PopupAppearance := EXRIBBONLib_TLB.ShadowBorder;
with Add('',OleVariant(2),OleVariant(10)) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
with Items do
begin
with Add('Item 1',OleVariant(0),OleVariant(20)) do
begin
Check := True;
Shortcut := 'ALT+1';
end;
with Add('Item 2',OleVariant(0),OleVariant(30)) do
begin
Check := True;
Checked := True;
Shortcut := 'ALT+2';
end;
with Add('Item 3',OleVariant(2),OleVariant(40)) do
begin
Shortcut := 'ALT+3';
with Items do
begin
with Add('Sub-Item 3.1',OleVariant(0),OleVariant(50)) do
begin
Radio := True;
Checked := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '1';
end;
with Add('Sub-Item 3.2',OleVariant(0),OleVariant(60)) do
begin
Radio := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '2';
end;
with Add('Sub-Item 3.2',OleVariant(0),OleVariant(70)) do
begin
Radio := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '33+3';
end;
end;
end;
end;
end;
end;
end
|
220
|
Is it possible somehow to display ID of each item

with Ribbon1 do
begin
Debug := True;
with Items do
begin
PopupAppearance := EXRIBBONLib_TLB.ShadowBorder;
with Add('',OleVariant(2),OleVariant(10)) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
with Items do
begin
with Add('Item 1',OleVariant(0),OleVariant(20)) do
begin
Check := True;
Shortcut := 'ALT+1';
end;
with Add('Item 2',OleVariant(0),OleVariant(30)) do
begin
Check := True;
Checked := True;
Shortcut := 'ALT+2';
end;
with Add('Item 3',OleVariant(2),OleVariant(40)) do
begin
Shortcut := 'ALT+3';
with Items do
begin
with Add('Sub-Item 3.1',OleVariant(0),OleVariant(50)) do
begin
Radio := True;
Checked := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '1';
end;
with Add('Sub-Item 3.2',OleVariant(0),OleVariant(60)) do
begin
Radio := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '2';
end;
with Add('Sub-Item 3.2',OleVariant(0),OleVariant(70)) do
begin
Radio := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '33+3';
end;
end;
end;
end;
end;
end;
end
|
219
|
How can I change the visual appearance of the shortcut keys (sample 2, EBN)

with Ribbon1 do
begin
VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
Background[EXRIBBONLib_TLB.exShortcutKeyAppearance] := $1000000;
Background[EXRIBBONLib_TLB.exShortcutKeyBackColor] := $0;
Background[EXRIBBONLib_TLB.exShortcutKeyForeColor] := $0;
ShortcutKeyVisible := Integer(EXRIBBONLib_TLB.exDisplayShortcutKeysAllAvailable) Or Integer(EXRIBBONLib_TLB.exShowShortcutKeysToggleDelayed);
with Items do
begin
PopupAppearance := EXRIBBONLib_TLB.ShadowBorder;
with Add('',OleVariant(2),OleVariant(10)) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
with Items do
begin
with Add('Item 1',OleVariant(0),OleVariant(20)) do
begin
Check := True;
Shortcut := 'ALT+1';
end;
with Add('Item 2',OleVariant(0),OleVariant(30)) do
begin
Check := True;
Checked := True;
Shortcut := 'ALT+2';
end;
with Add('Item 3',OleVariant(2),OleVariant(40)) do
begin
Shortcut := 'ALT+3';
with Items do
begin
with Add('Sub-Item 3.1',OleVariant(0),OleVariant(50)) do
begin
Radio := True;
Checked := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '1';
end;
with Add('Sub-Item 3.2',OleVariant(0),OleVariant(60)) do
begin
Radio := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '2';
end;
with Add('Sub-Item 3.2',OleVariant(0),OleVariant(70)) do
begin
Radio := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '33+3';
end;
end;
end;
end;
end;
end;
end
|
218
|
How can I change the visual appearance of the shortcut keys (sample 1)

with Ribbon1 do
begin
Background[EXRIBBONLib_TLB.exShortcutKeyAppearance] := $0;
Background[EXRIBBONLib_TLB.exShortcutKeyBackColor] := $10000;
Background[EXRIBBONLib_TLB.exShortcutKeyForeColor] := $ffffff;
ShortcutKeyVisible := Integer(EXRIBBONLib_TLB.exDisplayShortcutKeysAllAvailable) Or Integer(EXRIBBONLib_TLB.exShowShortcutKeysToggleDelayed);
with Items do
begin
PopupAppearance := EXRIBBONLib_TLB.ShadowBorder;
with Add('',OleVariant(2),OleVariant(10)) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
with Items do
begin
with Add('Item 1',OleVariant(0),OleVariant(20)) do
begin
Check := True;
Shortcut := 'ALT+1';
end;
with Add('Item 2',OleVariant(0),OleVariant(30)) do
begin
Check := True;
Checked := True;
Shortcut := 'ALT+2';
end;
with Add('Item 3',OleVariant(2),OleVariant(40)) do
begin
Shortcut := 'ALT+3';
with Items do
begin
with Add('Sub-Item 3.1',OleVariant(0),OleVariant(50)) do
begin
Radio := True;
Checked := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '1';
end;
with Add('Sub-Item 3.2',OleVariant(0),OleVariant(60)) do
begin
Radio := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '2';
end;
with Add('Sub-Item 3.2',OleVariant(0),OleVariant(70)) do
begin
Radio := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '33+3';
end;
end;
end;
end;
end;
end;
end
|
217
|
Can I show the shortcut key right after the item so it won't overlap it (sample 2)

with Ribbon1 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(EXRIBBONLib_TLB.exDisplayShortcutKeysAllAvailable) Or Integer(EXRIBBONLib_TLB.exShowShortcutKeysToggleDelayed);
with Items do
begin
PopupAppearance := EXRIBBONLib_TLB.ShadowBorder;
with Add('',OleVariant(2),OleVariant(10)) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
with Items do
begin
with Add('Item 1',OleVariant(0),OleVariant(20)) do
begin
Check := True;
Shortcut := 'ALT+1';
end;
with Add('Item 2',OleVariant(0),OleVariant(30)) do
begin
Check := True;
Checked := True;
Shortcut := 'ALT+2';
end;
with Add('Item 3',OleVariant(2),OleVariant(40)) do
begin
Shortcut := 'ALT+3';
with Items do
begin
with Add('Sub-Item 3.1',OleVariant(0),OleVariant(50)) do
begin
Radio := True;
Checked := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '1';
end;
with Add('Sub-Item 3.2',OleVariant(0),OleVariant(60)) do
begin
Radio := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '2';
end;
with Add('Sub-Item 3.2',OleVariant(0),OleVariant(70)) do
begin
Radio := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '33+3';
end;
end;
end;
end;
end;
end;
end
|
216
|
Can I show the shortcut key right after the item so it won't overlap it (sample 1)

with Ribbon1 do
begin
ShortcutKeyExtPaddingH := 'width/2, height/2 ,width/2,height/2';
ShortcutKeyExtPaddingV := 'width/2, height/2 ,width/2,height/2';
ShortcutKeyVisible := Integer(EXRIBBONLib_TLB.exDisplayShortcutKeysAllAvailable) Or Integer(EXRIBBONLib_TLB.exShowShortcutKeysToggleDelayed);
with Items do
begin
PopupAppearance := EXRIBBONLib_TLB.ShadowBorder;
with Add('',OleVariant(2),OleVariant(10)) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
with Items do
begin
with Add('Item 1',OleVariant(0),OleVariant(20)) do
begin
Check := True;
Shortcut := 'ALT+1';
end;
with Add('Item 2',OleVariant(0),OleVariant(30)) do
begin
Check := True;
Checked := True;
Shortcut := 'ALT+2';
end;
with Add('Item 3',OleVariant(2),OleVariant(40)) do
begin
Shortcut := 'ALT+3';
with Items do
begin
with Add('Sub-Item 3.1',OleVariant(0),OleVariant(50)) do
begin
Radio := True;
Checked := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '1';
end;
with Add('Sub-Item 3.2',OleVariant(0),OleVariant(60)) do
begin
Radio := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '2';
end;
with Add('Sub-Item 3.2',OleVariant(0),OleVariant(70)) do
begin
Radio := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '33+3';
end;
end;
end;
end;
end;
end;
end
|
215
|
Can I specify padding for shortcut keys (sample 2)

with Ribbon1 do
begin
ShortcutKeyPadding := '8,8,8,8';
with Items do
begin
PopupAppearance := EXRIBBONLib_TLB.ShadowBorder;
with Add('',OleVariant(2),OleVariant(10)) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
with Items do
begin
with Add('Item 1',OleVariant(0),OleVariant(20)) do
begin
Check := True;
Shortcut := 'ALT+1';
end;
with Add('Item 2',OleVariant(0),OleVariant(30)) do
begin
Check := True;
Checked := True;
Shortcut := 'ALT+2';
end;
with Add('Item 3',OleVariant(2),OleVariant(40)) do
begin
Shortcut := 'ALT+3';
with Items do
begin
with Add('Sub-Item 3.1',OleVariant(0),OleVariant(50)) do
begin
Radio := True;
Checked := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '1';
end;
with Add('Sub-Item 3.2',OleVariant(0),OleVariant(60)) do
begin
Radio := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '2';
end;
with Add('Sub-Item 3.2',OleVariant(0),OleVariant(70)) do
begin
Radio := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '33+3';
end;
end;
end;
end;
end;
end;
end
|
214
|
Can I specify padding for shortcut keys (sample 1)

with Ribbon1 do
begin
ShortcutKeyPadding := '0,0,0,0';
with Items do
begin
PopupAppearance := EXRIBBONLib_TLB.ShadowBorder;
with Add('',OleVariant(2),OleVariant(10)) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
with Items do
begin
with Add('Item 1',OleVariant(0),OleVariant(20)) do
begin
Check := True;
Shortcut := 'ALT+1';
end;
with Add('Item 2',OleVariant(0),OleVariant(30)) do
begin
Check := True;
Checked := True;
Shortcut := 'ALT+2';
end;
with Add('Item 3',OleVariant(2),OleVariant(40)) do
begin
Shortcut := 'ALT+3';
with Items do
begin
with Add('Sub-Item 3.1',OleVariant(0),OleVariant(50)) do
begin
Radio := True;
Checked := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '1';
end;
with Add('Sub-Item 3.2',OleVariant(0),OleVariant(60)) do
begin
Radio := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '2';
end;
with Add('Sub-Item 3.2',OleVariant(0),OleVariant(70)) do
begin
Radio := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '33+3';
end;
end;
end;
end;
end;
end;
end
|
213
|
Is it possible to specify where the shortcut keys should be shown

with Ribbon1 do
begin
ShortcutKeyAlignH := EXRIBBONLib_TLB.exShortcutKeyUpperLeft;
ShortcutKeyAlignV := EXRIBBONLib_TLB.exShortcutKeyLowerRight;
ShortcutKeyVisible := Integer(EXRIBBONLib_TLB.exCloseShortcutKeysOnClick) Or Integer(EXRIBBONLib_TLB.exDisplayShortcutKeysAllAvailable) Or Integer(EXRIBBONLib_TLB.exShowShortcutKeysToggleDelayed);
with Items do
begin
PopupAppearance := EXRIBBONLib_TLB.ShadowBorder;
with Add('',OleVariant(2),OleVariant(10)) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
with Items do
begin
with Add('Item 1',OleVariant(0),OleVariant(20)) do
begin
Check := True;
Shortcut := 'ALT+1';
end;
with Add('Item 2',OleVariant(0),OleVariant(30)) do
begin
Check := True;
Checked := True;
Shortcut := 'ALT+2';
end;
with Add('Item 3',OleVariant(2),OleVariant(40)) do
begin
Shortcut := 'ALT+3';
with Items do
begin
with Add('Sub-Item 3.1',OleVariant(0),OleVariant(50)) do
begin
Radio := True;
Checked := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '1';
end;
with Add('Sub-Item 3.2',OleVariant(0),OleVariant(60)) do
begin
Radio := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '2';
end;
with Add('Sub-Item 3.2',OleVariant(0),OleVariant(70)) do
begin
Radio := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '33+3';
end;
end;
end;
end;
end;
end;
end
|
212
|
Can I use different shortcut modifier keys for items

with Ribbon1 do
begin
with Items do
begin
PopupAppearance := EXRIBBONLib_TLB.ShadowBorder;
with Add('',OleVariant(2),OleVariant(10)) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
with Items do
begin
with Add('Item 1',OleVariant(0),OleVariant(20)) do
begin
Check := True;
Shortcut := 'ALT + CTRL + 1';
end;
with Add('Item 2',OleVariant(0),OleVariant(30)) do
begin
Check := True;
Checked := True;
Shortcut := 'ALT+2';
end;
with Add('Item 3',OleVariant(2),OleVariant(40)) do
begin
Shortcut := 'CTRL + SHIFT + ALT+3';
with Items do
begin
with Add('Sub-Item 3.1',OleVariant(0),OleVariant(50)) do
begin
Radio := True;
Checked := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '1';
end;
with Add('Sub-Item 3.2',OleVariant(0),OleVariant(60)) do
begin
Radio := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '2';
end;
with Add('Sub-Item 3.2',OleVariant(0),OleVariant(70)) do
begin
Radio := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '3 + 33';
end;
end;
end;
end;
end;
Add('',Null,Null);
Add('Press <b>CTRL or ALT',Null,Null);
end;
end
|
211
|
How can I disable a shortcut key

with Ribbon1 do
begin
with Items do
begin
PopupAppearance := EXRIBBONLib_TLB.ShadowBorder;
with Add('',OleVariant(2),OleVariant(10)) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
with Items do
begin
with Add('Item 1',OleVariant(0),OleVariant(20)) do
begin
Check := True;
Shortcut := 'ALT+1';
end;
with Add('Item 2',OleVariant(0),OleVariant(30)) do
begin
Enabled := False;
Check := True;
Checked := True;
Shortcut := 'ALT+2';
end;
with Add('Item 3',OleVariant(2),OleVariant(40)) do
begin
Shortcut := 'ALT+3';
with Items do
begin
with Add('Sub-Item 3.1',OleVariant(0),OleVariant(50)) do
begin
Radio := True;
Checked := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '1';
end;
with Add('Sub-Item 3.2',OleVariant(0),OleVariant(60)) do
begin
Radio := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '2';
end;
with Add('Sub-Item 3.2',OleVariant(0),OleVariant(70)) do
begin
Radio := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '3 + 33';
end;
end;
end;
end;
end;
end;
end
|
210
|
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 Ribbon1 do
begin
ShortcutKeyVisible := Integer(EXRIBBONLib_TLB.exCloseShortcutKeysOnClick) Or Integer(EXRIBBONLib_TLB.exShowShortcutKeysToggleDelayed);
with Items do
begin
PopupAppearance := EXRIBBONLib_TLB.ShadowBorder;
with Add('',OleVariant(2),OleVariant(10)) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
with Items do
begin
with Add('Item 1',OleVariant(0),OleVariant(20)) do
begin
Check := True;
Shortcut := 'ALT+1';
end;
with Add('Item 2',OleVariant(0),OleVariant(30)) do
begin
Check := True;
Checked := True;
Shortcut := 'ALT+2';
end;
with Add('Item 3',OleVariant(2),OleVariant(40)) do
begin
Shortcut := 'ALT+3';
with Items do
begin
with Add('Sub-Item 3.1',OleVariant(0),OleVariant(50)) do
begin
Radio := True;
Checked := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '1';
end;
with Add('Sub-Item 3.2',OleVariant(0),OleVariant(60)) do
begin
Radio := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '2';
end;
with Add('Sub-Item 3.2',OleVariant(0),OleVariant(70)) do
begin
Radio := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '3 + 33';
end;
end;
end;
end;
end;
end;
end
|
209
|
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 TForm1.Ribbon1CheckItem(ASender: TObject; Itm : IItem);
begin
with Ribbon1 do
begin
OutputDebugString( Itm );
end
end;
with Ribbon1 do
begin
ShortcutKeyVisible := Integer(EXRIBBONLib_TLB.exAllowShortcutKeysIfNotShown) Or Integer(EXRIBBONLib_TLB.exShowShortcutKeysToggleDelayed);
with Items do
begin
PopupAppearance := EXRIBBONLib_TLB.ShadowBorder;
with Add('',OleVariant(2),OleVariant(10)) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
with Items do
begin
with Add('Item 1',OleVariant(0),OleVariant(20)) do
begin
Check := True;
Shortcut := 'ALT+1';
end;
with Add('Item 2',OleVariant(0),OleVariant(30)) do
begin
Check := True;
Checked := True;
Shortcut := 'ALT+2';
end;
with Add('Item 3',OleVariant(2),OleVariant(40)) do
begin
Shortcut := 'ALT+3';
with Items do
begin
with Add('Sub-Item 3.1',OleVariant(0),OleVariant(50)) do
begin
Radio := True;
Checked := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '1';
end;
with Add('Sub-Item 3.2',OleVariant(0),OleVariant(60)) do
begin
Radio := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '2';
end;
with Add('Sub-Item 3.2',OleVariant(0),OleVariant(70)) do
begin
Radio := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := 'ALT + 4';
end;
end;
end;
end;
end;
Add('press ALT + 4',Null,Null);
end;
end
|
208
|
Can I specify a longer delay to display shortcut once the user presses any modifer keys
with Ribbon1 do
begin
ShortcutKeyVisible := Integer(EXRIBBONLib_TLB.exLongerDelayShortcutKeys) Or Integer(EXRIBBONLib_TLB.exShowShortcutKeysToggleDelayed);
with Items do
begin
PopupAppearance := EXRIBBONLib_TLB.ShadowBorder;
with Add('',OleVariant(2),OleVariant(10)) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
with Items do
begin
with Add('Item 1',OleVariant(0),OleVariant(20)) do
begin
Check := True;
Shortcut := 'ALT+1';
end;
with Add('Item 2',OleVariant(0),OleVariant(30)) do
begin
Check := True;
Checked := True;
Shortcut := 'ALT+2';
end;
with Add('Item 3',OleVariant(2),OleVariant(40)) do
begin
Shortcut := 'ALT+3';
with Items do
begin
with Add('Sub-Item 3.1',OleVariant(0),OleVariant(50)) do
begin
Radio := True;
Checked := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '1';
end;
with Add('Sub-Item 3.2',OleVariant(0),OleVariant(60)) do
begin
Radio := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '2';
end;
with Add('Sub-Item 3.2',OleVariant(0),OleVariant(70)) do
begin
Radio := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '3+33';
end;
end;
end;
end;
end;
end;
end
|
207
|
How can I display extended shortcut keys

with Ribbon1 do
begin
ShortcutKeyVisible := Integer(EXRIBBONLib_TLB.exDisplayShortcutKeysAllAvailable) Or Integer(EXRIBBONLib_TLB.exShowShortcutKeysToggleDelayed);
with Items do
begin
PopupAppearance := EXRIBBONLib_TLB.ShadowBorder;
with Add('',OleVariant(2),OleVariant(10)) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
with Items do
begin
with Add('Item 1',OleVariant(0),OleVariant(20)) do
begin
Check := True;
Shortcut := 'ALT+1';
end;
with Add('Item 2',OleVariant(0),OleVariant(30)) do
begin
Check := True;
Checked := True;
Shortcut := 'ALT+2';
end;
with Add('Item 3',OleVariant(2),OleVariant(40)) do
begin
Shortcut := 'ALT+3';
with Items do
begin
with Add('Sub-Item 3.1',OleVariant(0),OleVariant(50)) do
begin
Radio := True;
Checked := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '1';
end;
with Add('Sub-Item 3.2',OleVariant(0),OleVariant(60)) do
begin
Radio := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '2';
end;
with Add('Sub-Item 3.2',OleVariant(0),OleVariant(70)) do
begin
Radio := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '333';
end;
end;
end;
end;
end;
end;
end
|
206
|
Is it possible to disable the shortcut keys, whithout changing the Shortcut property

with Ribbon1 do
begin
ShortcutKeyVisible := Integer(EXRIBBONLib_TLB.exDisplayShortcutKeysAllAvailable) Or Integer(EXRIBBONLib_TLB.exDisableShortcutKeys) Or Integer(EXRIBBONLib_TLB.exShowShortcutKeysToggleDelayed);
with Items do
begin
PopupAppearance := EXRIBBONLib_TLB.ShadowBorder;
with Add('',OleVariant(2),OleVariant(10)) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
with Items do
begin
with Add('Item 1',OleVariant(0),OleVariant(20)) do
begin
Check := True;
Shortcut := 'ALT+1';
end;
with Add('Item 2',OleVariant(0),OleVariant(30)) do
begin
Check := True;
Checked := True;
Shortcut := 'ALT+2';
end;
with Add('Item 3',OleVariant(2),OleVariant(40)) do
begin
Shortcut := 'ALT+3';
with Items do
begin
with Add('Sub-Item 3.1',OleVariant(0),OleVariant(50)) do
begin
Radio := True;
Checked := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '1';
end;
with Add('Sub-Item 3.2',OleVariant(0),OleVariant(60)) do
begin
Radio := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '2';
end;
with Add('Sub-Item 3.2',OleVariant(0),OleVariant(70)) do
begin
Radio := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '33+3';
end;
end;
end;
end;
end;
end;
end
|
205
|
How can display the shortcut keys only when modifier keys are pressed

with Ribbon1 do
begin
ShortcutKeyVisible := EXRIBBONLib_TLB.exShowShortcutKeysPressOnly;
with Items do
begin
PopupAppearance := EXRIBBONLib_TLB.ShadowBorder;
with Add('',OleVariant(2),OleVariant(10)) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
with Items do
begin
with Add('Item 1',OleVariant(0),OleVariant(20)) do
begin
Check := True;
Shortcut := 'ALT+1';
end;
with Add('Item 2',OleVariant(0),OleVariant(30)) do
begin
Check := True;
Checked := True;
Shortcut := 'ALT+2';
end;
with Add('Item 3',OleVariant(2),OleVariant(40)) do
begin
Shortcut := 'ALT+3';
with Items do
begin
with Add('Sub-Item 3.1',OleVariant(0),OleVariant(50)) do
begin
Radio := True;
Checked := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '1';
end;
with Add('Sub-Item 3.2',OleVariant(0),OleVariant(60)) do
begin
Radio := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '2';
end;
with Add('Sub-Item 3.2',OleVariant(0),OleVariant(70)) do
begin
Radio := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '3+33';
end;
end;
end;
end;
end;
end;
end
|
204
|
How can I assign a shortcut key to an item

with Ribbon1 do
begin
with Items do
begin
PopupAppearance := EXRIBBONLib_TLB.ShadowBorder;
with Add('',OleVariant(2),OleVariant(10)) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
with Items do
begin
with Add('Item 1',OleVariant(0),OleVariant(20)) do
begin
Check := True;
Shortcut := 'ALT+1';
end;
with Add('Item 2',OleVariant(0),OleVariant(30)) do
begin
Check := True;
Checked := True;
Shortcut := 'ALT+2';
end;
with Add('Item 3',OleVariant(2),OleVariant(40)) do
begin
Shortcut := 'ALT+3';
with Items do
begin
with Add('Sub-Item 3.1',OleVariant(0),OleVariant(50)) do
begin
Radio := True;
Checked := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '1';
end;
with Add('Sub-Item 3.2',OleVariant(0),OleVariant(60)) do
begin
Radio := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '2';
end;
with Add('Sub-Item 3.2',OleVariant(0),OleVariant(70)) do
begin
Radio := True;
CloseOnClick := EXRIBBONLib_TLB.exCloseOnClick;
Shortcut := '33+3';
end;
end;
end;
end;
end;
end;
end
|
203
|
Is it possible to insert items at a specified position during runtime, without rebuilding the entire item which hosts the items

with Ribbon1 do
begin
with Items do
begin
Add('Item A',OleVariant(0),OleVariant(1000));
Add('Item B',OleVariant(0),OleVariant(1001));
Add('Item C',OleVariant(0),OleVariant(1002)).Position := 0;
end;
end
|
202
|
Is it possible to have a popup on a radio button when it is checked

with Ribbon1 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[OleVariant(20)] do
begin
Items.Add('Item A',OleVariant(0),OleVariant(1000));
Items.Add('Item B',OleVariant(0),OleVariant(1001));
Items.Add('Item C',OleVariant(0),OleVariant(1002));
end;
end
|
201
|
Is it possible to minimize the control, once the user clicks a button

// CheckItem event - Occurs when the user checks the item.
procedure TForm1.Ribbon1CheckItem(ASender: TObject; Itm : IItem);
begin
with Ribbon1 do
begin
Ribbon1.Items.Item[OleVariant(-99)].Visible := Ribbon1.Items.Item[OleVariant(-999)].Checked;
OutputDebugString( 'RequiredHeight' );
OutputDebugString( RequiredHeight );
end
end;
// UncheckItem event - Occurs when the user unchecks the item.
procedure TForm1.Ribbon1UncheckItem(ASender: TObject; Itm : IItem);
begin
with Ribbon1 do
begin
Ribbon1.Items.Item[OleVariant(-99)].Visible := Ribbon1.Items.Item[OleVariant(-999)].Checked;
OutputDebugString( 'RequiredHeight' );
OutputDebugString( RequiredHeight );
end
end;
with Ribbon1 do
begin
with Items do
begin
ToString := '[id=0][group=0x03]([id=-999][chk][height=18]),[id=-99][bg=0x01000000][group=0x03][itemspad=4,4,4,4]([id=9000])';
with Item[OleVariant(-999)] do
begin
Check := True;
Checked := Ribbon1.Item[OleVariant(-99)].Visible;
end;
with Item[OleVariant(0)].Items do
begin
Add('',OleVariant(0),OleVariant(0)).Padding := '8,0,0,0';
var_Item3 := Add('New Page',Null,Null);
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 := EXRIBBONLib_TLB.exShowPopupAlignDown;
with Items.Item[OleVariant(0)] do
begin
var_Item := Items.Add('New Group',Null,Null);
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('',OleVariant(2),Null) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exGroupPopupEqualWidth) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
Caption := '';
with Items do
begin
with Add('R1',Null,Null) do
begin
RadioGroup := 100;
Radio := True;
ShowCheckedAsSelected := EXRIBBONLib_TLB.exDisplayItemHighlight;
Checked := False;
end;
with Add('R2',Null,Null) do
begin
RadioGroup := 100;
Radio := True;
ShowCheckedAsSelected := EXRIBBONLib_TLB.exDisplayItemHighlight;
Checked := True;
end;
with Add('R3',Null,Null) do
begin
RadioGroup := 100;
Radio := True;
ShowCheckedAsSelected := EXRIBBONLib_TLB.exDisplayItemHighlight;
Checked := False;
end;
end;
end;
end;
end;
var_Item1 := Items.Add('New Group',Null,Null);
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('',OleVariant(2),Null) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exGroupPopupVertical) Or Integer(EXRIBBONLib_TLB.exGroupPopupEqualHeight) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
Caption := '';
with Items do
begin
with Add('C1',Null,Null) do
begin
Check := True;
Checked := True;
end;
with Add('C2',Null,Null) do
begin
Check := True;
Checked := False;
end;
with Add('C3',Null,Null) do
begin
Check := True;
Checked := True;
end;
end;
end;
end;
end;
Items.Add('',OleVariant(0),OleVariant(0)).Padding := '4,0,0,0';
var_Item2 := Items.Add('New Group',Null,Null);
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('',OleVariant(0),Null) do
begin
AllowEdit := Integer(EXRIBBONLib_TLB.exItemEditVertical) Or Integer(EXRIBBONLib_TLB.exItemEditSlider);
ItemHeight := 76;
EditBorder := EXRIBBONLib_TLB.exEditBorderNone;
EditValue := OleVariant(25);
end;
with Add('',OleVariant(2),Null) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exGroupPopupVertical) Or Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
Caption := '';
with Items do
begin
with Add('',OleVariant(2),Null) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
with Items do
begin
with Add('Button1',OleVariant(2),Null) do
begin
ShowAsButton := Integer(EXRIBBONLib_TLB.exShowAsSelectButtonBottom) Or Integer(EXRIBBONLib_TLB.exShowAsButtonAutoSize);
with Items do
begin
Add('Item 1',Null,Null);
Add('Item 2',Null,Null);
Add('Item 3',Null,Null);
end;
end;
Add('',OleVariant(0),OleVariant(0)).Padding := '4,0,0,0';
with Add('Button2',OleVariant(2),Null) do
begin
ShowAsButton := Integer(EXRIBBONLib_TLB.exShowAsSelectButtonBottom) Or Integer(EXRIBBONLib_TLB.exShowAsButtonAutoSize);
with Items do
begin
Add('Item 4',Null,Null);
Add('Item 5',Null,Null);
Add('Item 6',Null,Null);
end;
end;
end;
end;
with Add('Popup',OleVariant(2),Null) do
begin
Alignment := EXRIBBONLib_TLB.exCenter;
with Items do
begin
Add('Item 7',Null,Null).Check := True;
Add('Item 8',Null,Null);
with Add('Item 9',OleVariant(2),Null).Items do
begin
Add('Item 10',Null,Null);
Add('Item 11',Null,Null);
Add('Item 12',Null,Null);
end;
end;
end;
end;
end;
end;
end;
end;
end;
var_Item4 := Add('New Page',Null,Null);
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 := EXRIBBONLib_TLB.exShowPopupAlignDown;
with Items.Item[OleVariant(0)] do
begin
with Items do
begin
with Add('S1',Null,Null) do
begin
ItemHeight := 88;
AllowEdit := Integer(EXRIBBONLib_TLB.exItemEditVertical) Or Integer(EXRIBBONLib_TLB.exItemEditSpin) Or Integer(EXRIBBONLib_TLB.exItemEditProgress);
EditValue := OleVariant(25);
end;
with Add('S2',Null,Null) do
begin
ItemHeight := 88;
AllowEdit := Integer(EXRIBBONLib_TLB.exItemEditVertical) Or Integer(EXRIBBONLib_TLB.exItemEditSpin) Or Integer(EXRIBBONLib_TLB.exItemEditProgress);
EditValue := OleVariant(50);
end;
with Add('S3',Null,Null) do
begin
ItemHeight := 88;
AllowEdit := Integer(EXRIBBONLib_TLB.exItemEditVertical) Or Integer(EXRIBBONLib_TLB.exItemEditSpin) Or Integer(EXRIBBONLib_TLB.exItemEditProgress);
EditValue := OleVariant(75);
end;
end;
end;
end;
Add('',OleVariant(0),OleVariant(0)).Padding := '8,0,0,0';
end;
end;
PopupFlatAppearance := False;
with VisualAppearance do
begin
Add(1,'C:\Program Files\Exontrol\ExRibbon\Sample\EBN\MSOffice-Ribbon\msor_background.ebn');
Add(2,'C:\Program Files\Exontrol\ExRibbon\Sample\EBN\MSOffice-Ribbon\msor_groupt.ebn');
Add(3,'C:\Program Files\Exontrol\ExRibbon\Sample\EBN\MSOffice-Ribbon\msor_groupo.ebn');
Add(4,'C:\Program Files\Exontrol\ExRibbon\Sample\EBN\MSOffice-Ribbon\msor_grouphot.ebn');
Add(5,'C:\Program Files\Exontrol\ExRibbon\Sample\EBN\MSOffice-Ribbon\msor_frameh.ebn');
Add(6,'C:\Program Files\Exontrol\ExRibbon\Sample\EBN\MSOffice-Ribbon\msor_framehs.ebn');
Add(7,'C:\Program Files\Exontrol\ExRibbon\Sample\EBN\MSOffice-Ribbon\msor_framehi.ebn');
Add(8,'C:\Program Files\Exontrol\ExRibbon\Sample\EBN\MSOffice-Ribbon\msor_framehe.ebn');
Add(9,'C:\Program Files\Exontrol\ExRibbon\Sample\EBN\MSOffice-Ribbon\msor_framevs.ebn');
Add(10,'C:\Program Files\Exontrol\ExRibbon\Sample\EBN\MSOffice-Ribbon\msor_framevi.ebn');
Add(11,'C:\Program Files\Exontrol\ExRibbon\Sample\EBN\MSOffice-Ribbon\msor_frameve.ebn');
Add(12,'C:\Program Files\Exontrol\ExRibbon\Sample\EBN\MSOffice-Ribbon\msor_select.ebn');
Add(13,'C:\Program Files\Exontrol\ExRibbon\Sample\EBN\MSOffice-Ribbon\msor_bordert.ebn');
Add(14,'C:\Program Files\Exontrol\ExRibbon\Sample\EBN\MSOffice-Ribbon\msor_buttond.ebn');
Add(15,'C:\Program Files\Exontrol\ExRibbon\Sample\EBN\MSOffice-Ribbon\msor_buttonu.ebn');
Add(16,'C:\Program Files\Exontrol\ExRibbon\Sample\EBN\MSOffice-Ribbon\msor_tab.ebn');
Add(17,'CP:16 0 0 0 1');
Add(18,'C:\Program Files\Exontrol\ExRibbon\Sample\EBN\MSOffice-Ribbon\msor_tabhot.ebn');
Add(19,'C:\Program Files\Exontrol\ExRibbon\Sample\EBN\MSOffice-Ribbon\msor_tabselhot.ebn');
Add(20,'CP:19 0 0 0 1');
end;
ForeColor := RGB(21,66,139);
SelBackColor := $e000000;
LocalAppearance := EXRIBBONLib_TLB.ShadowBorder;
Appearance := EXRIBBONLib_TLB.AppearanceEnum($1000000);
Background[EXRIBBONLib_TLB.exToolTipAppearance] := Appearance;
Background[EXRIBBONLib_TLB.BackgroundPartEnum($2)] := $d000000;
Background[EXRIBBONLib_TLB.exGroupPopupFrameSingle] := $5000000;
Background[EXRIBBONLib_TLB.exGroupPopupFrameHStart] := $6000000;
Background[EXRIBBONLib_TLB.exGroupPopupFrameHIntermediate] := $7000000;
Background[EXRIBBONLib_TLB.exGroupPopupFrameHEnd] := $8000000;
Background[EXRIBBONLib_TLB.exGroupPopupFrameVStart] := $9000000;
Background[EXRIBBONLib_TLB.exGroupPopupFrameVIntermediate] := $a000000;
Background[EXRIBBONLib_TLB.exGroupPopupFrameVEnd] := $b000000;
Background[EXRIBBONLib_TLB.exMenuHotBackColor] := $c000000;
Background[EXRIBBONLib_TLB.exMenuSelHotBackColor] := $f000000;
Refresh();
end
|
200
|
Is there any debug option, so I can see the IDs of the items I have in the control

with Ribbon1 do
begin
Debug := True;
with Items do
begin
with Add('Expand',OleVariant(2),Null) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exGroupPopupVertical) Or Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
Check := True;
ShowPopupOnChecked := True;
with Items do
begin
Padding := '22,0,0,0';
Add('Radio 1',Null,Null).Radio := True;
Add('Radio 2',Null,Null).Radio := True;
with Add('Radio 3',Null,Null) do
begin
Radio := True;
Checked := True;
end;
end;
Checked := True;
end;
Add('',Null,Null).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
|
Microsoft Office - Ribbon Like - Minimized

with Ribbon1 do
begin
ToString := '[id=0][group=0x03](),[id=-99][bg=0x01000000][group=0x03][itemspad=4,4,4,4]([id=9000])';
Item[OleVariant(-99)].Visible := False;
with Item[OleVariant(0)].Items do
begin
Add('',OleVariant(0),OleVariant(0)).Padding := '8,0,0,0';
var_Item3 := Add('New Page',Null,Null);
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 := EXRIBBONLib_TLB.exShowPopupAlignDown;
with Items.Item[OleVariant(0)] do
begin
var_Item := Items.Add('New Group',Null,Null);
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('',OleVariant(2),Null) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exGroupPopupEqualWidth) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
Caption := '';
with Items do
begin
with Add('R1',Null,Null) do
begin
RadioGroup := 100;
Radio := True;
ShowCheckedAsSelected := EXRIBBONLib_TLB.exDisplayItemHighlight;
Checked := False;
end;
with Add('R2',Null,Null) do
begin
RadioGroup := 100;
Radio := True;
ShowCheckedAsSelected := EXRIBBONLib_TLB.exDisplayItemHighlight;
Checked := True;
end;
with Add('R3',Null,Null) do
begin
RadioGroup := 100;
Radio := True;
ShowCheckedAsSelected := EXRIBBONLib_TLB.exDisplayItemHighlight;
Checked := False;
end;
end;
end;
end;
end;
var_Item1 := Items.Add('New Group',Null,Null);
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('',OleVariant(2),Null) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exGroupPopupVertical) Or Integer(EXRIBBONLib_TLB.exGroupPopupEqualHeight) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
Caption := '';
with Items do
begin
with Add('C1',Null,Null) do
begin
Check := True;
Checked := True;
end;
with Add('C2',Null,Null) do
begin
Check := True;
Checked := False;
end;
with Add('C3',Null,Null) do
begin
Check := True;
Checked := True;
end;
end;
end;
end;
end;
Items.Add('',OleVariant(0),OleVariant(0)).Padding := '4,0,0,0';
var_Item2 := Items.Add('New Group',Null,Null);
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('',OleVariant(0),Null) do
begin
AllowEdit := Integer(EXRIBBONLib_TLB.exItemEditVertical) Or Integer(EXRIBBONLib_TLB.exItemEditSlider);
ItemHeight := 76;
EditBorder := EXRIBBONLib_TLB.exEditBorderNone;
EditValue := OleVariant(25);
end;
with Add('',OleVariant(2),Null) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exGroupPopupVertical) Or Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
Caption := '';
with Items do
begin
with Add('',OleVariant(2),Null) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
with Items do
begin
with Add('Button1',OleVariant(2),Null) do
begin
ShowAsButton := Integer(EXRIBBONLib_TLB.exShowAsSelectButtonBottom) Or Integer(EXRIBBONLib_TLB.exShowAsButtonAutoSize);
with Items do
begin
Add('Item 1',Null,Null);
Add('Item 2',Null,Null);
Add('Item 3',Null,Null);
end;
end;
Add('',OleVariant(0),OleVariant(0)).Padding := '4,0,0,0';
with Add('Button2',OleVariant(2),Null) do
begin
ShowAsButton := Integer(EXRIBBONLib_TLB.exShowAsSelectButtonBottom) Or Integer(EXRIBBONLib_TLB.exShowAsButtonAutoSize);
with Items do
begin
Add('Item 4',Null,Null);
Add('Item 5',Null,Null);
Add('Item 6',Null,Null);
end;
end;
end;
end;
with Add('Popup',OleVariant(2),Null) do
begin
Alignment := EXRIBBONLib_TLB.exCenter;
with Items do
begin
Add('Item 7',Null,Null).Check := True;
Add('Item 8',Null,Null);
with Add('Item 9',OleVariant(2),Null).Items do
begin
Add('Item 10',Null,Null);
Add('Item 11',Null,Null);
Add('Item 12',Null,Null);
end;
end;
end;
end;
end;
end;
end;
end;
end;
var_Item4 := Add('New Page',Null,Null);
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 := EXRIBBONLib_TLB.exShowPopupAlignDown;
with Items.Item[OleVariant(0)] do
begin
with Items do
begin
with Add('S1',Null,Null) do
begin
ItemHeight := 88;
AllowEdit := Integer(EXRIBBONLib_TLB.exItemEditVertical) Or Integer(EXRIBBONLib_TLB.exItemEditSpin) Or Integer(EXRIBBONLib_TLB.exItemEditProgress);
EditValue := OleVariant(25);
end;
with Add('S2',Null,Null) do
begin
ItemHeight := 88;
AllowEdit := Integer(EXRIBBONLib_TLB.exItemEditVertical) Or Integer(EXRIBBONLib_TLB.exItemEditSpin) Or Integer(EXRIBBONLib_TLB.exItemEditProgress);
EditValue := OleVariant(50);
end;
with Add('S3',Null,Null) do
begin
ItemHeight := 88;
AllowEdit := Integer(EXRIBBONLib_TLB.exItemEditVertical) Or Integer(EXRIBBONLib_TLB.exItemEditSpin) Or Integer(EXRIBBONLib_TLB.exItemEditProgress);
EditValue := OleVariant(75);
end;
end;
end;
end;
Add('',OleVariant(0),OleVariant(0)).Padding := '8,0,0,0';
end;
PopupFlatAppearance := False;
with VisualAppearance do
begin
Add(1,'C:\Program Files\Exontrol\ExRibbon\Sample\EBN\MSOffice-Ribbon\msor_background.ebn');
Add(2,'C:\Program Files\Exontrol\ExRibbon\Sample\EBN\MSOffice-Ribbon\msor_groupt.ebn');
Add(3,'C:\Program Files\Exontrol\ExRibbon\Sample\EBN\MSOffice-Ribbon\msor_groupo.ebn');
Add(4,'C:\Program Files\Exontrol\ExRibbon\Sample\EBN\MSOffice-Ribbon\msor_grouphot.ebn');
Add(5,'C:\Program Files\Exontrol\ExRibbon\Sample\EBN\MSOffice-Ribbon\msor_frameh.ebn');
Add(6,'C:\Program Files\Exontrol\ExRibbon\Sample\EBN\MSOffice-Ribbon\msor_framehs.ebn');
Add(7,'C:\Program Files\Exontrol\ExRibbon\Sample\EBN\MSOffice-Ribbon\msor_framehi.ebn');
Add(8,'C:\Program Files\Exontrol\ExRibbon\Sample\EBN\MSOffice-Ribbon\msor_framehe.ebn');
Add(9,'C:\Program Files\Exontrol\ExRibbon\Sample\EBN\MSOffice-Ribbon\msor_framevs.ebn');
Add(10,'C:\Program Files\Exontrol\ExRibbon\Sample\EBN\MSOffice-Ribbon\msor_framevi.ebn');
Add(11,'C:\Program Files\Exontrol\ExRibbon\Sample\EBN\MSOffice-Ribbon\msor_frameve.ebn');
Add(12,'C:\Program Files\Exontrol\ExRibbon\Sample\EBN\MSOffice-Ribbon\msor_select.ebn');
Add(13,'C:\Program Files\Exontrol\ExRibbon\Sample\EBN\MSOffice-Ribbon\msor_bordert.ebn');
Add(14,'C:\Program Files\Exontrol\ExRibbon\Sample\EBN\MSOffice-Ribbon\msor_buttond.ebn');
Add(15,'C:\Program Files\Exontrol\ExRibbon\Sample\EBN\MSOffice-Ribbon\msor_buttonu.ebn');
Add(16,'C:\Program Files\Exontrol\ExRibbon\Sample\EBN\MSOffice-Ribbon\msor_tab.ebn');
Add(17,'CP:16 0 0 0 1');
Add(18,'C:\Program Files\Exontrol\ExRibbon\Sample\EBN\MSOffice-Ribbon\msor_tabhot.ebn');
Add(19,'C:\Program Files\Exontrol\ExRibbon\Sample\EBN\MSOffice-Ribbon\msor_tabselhot.ebn');
Add(20,'CP:19 0 0 0 1');
end;
ForeColor := RGB(21,66,139);
SelBackColor := $e000000;
LocalAppearance := EXRIBBONLib_TLB.ShadowBorder;
Appearance := EXRIBBONLib_TLB.AppearanceEnum($1000000);
Background[EXRIBBONLib_TLB.exToolTipAppearance] := Appearance;
Background[EXRIBBONLib_TLB.BackgroundPartEnum($2)] := $d000000;
Background[EXRIBBONLib_TLB.exGroupPopupFrameSingle] := $5000000;
Background[EXRIBBONLib_TLB.exGroupPopupFrameHStart] := $6000000;
Background[EXRIBBONLib_TLB.exGroupPopupFrameHIntermediate] := $7000000;
Background[EXRIBBONLib_TLB.exGroupPopupFrameHEnd] := $8000000;
Background[EXRIBBONLib_TLB.exGroupPopupFrameVStart] := $9000000;
Background[EXRIBBONLib_TLB.exGroupPopupFrameVIntermediate] := $a000000;
Background[EXRIBBONLib_TLB.exGroupPopupFrameVEnd] := $b000000;
Background[EXRIBBONLib_TLB.exMenuHotBackColor] := $c000000;
Background[EXRIBBONLib_TLB.exMenuSelHotBackColor] := $f000000;
Refresh();
end
|
198
|
Microsoft Paint - Ribbon Like - Minimized

with Ribbon1 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[OleVariant(-99)].Visible := False;
with Item[OleVariant(0)].Items do
begin
Add('',OleVariant(0),OleVariant(0)).Padding := '8,0,0,0';
var_Item3 := Add('New Page',Null,Null);
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 := EXRIBBONLib_TLB.exShowPopupAlignDown;
with Items.Item[OleVariant(0)] do
begin
var_Item := Items.Add('New Group',Null,Null);
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('',OleVariant(2),Null) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exGroupPopupEqualWidth) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
Caption := '';
with Items do
begin
with Add('R1',Null,Null) do
begin
RadioGroup := 100;
Radio := True;
ShowCheckedAsSelected := EXRIBBONLib_TLB.exDisplayItemHighlight;
Checked := False;
end;
with Add('R2',Null,Null) do
begin
RadioGroup := 100;
Radio := True;
ShowCheckedAsSelected := EXRIBBONLib_TLB.exDisplayItemHighlight;
Checked := True;
end;
with Add('R3',Null,Null) do
begin
RadioGroup := 100;
Radio := True;
ShowCheckedAsSelected := EXRIBBONLib_TLB.exDisplayItemHighlight;
Checked := False;
end;
end;
end;
end;
end;
var_Item1 := Items.Add('New Group',Null,Null);
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('',OleVariant(2),Null) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exGroupPopupVertical) Or Integer(EXRIBBONLib_TLB.exGroupPopupEqualHeight) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
Caption := '';
with Items do
begin
with Add('C1',Null,Null) do
begin
Check := True;
Checked := True;
end;
with Add('C2',Null,Null) do
begin
Check := True;
Checked := False;
end;
with Add('C3',Null,Null) do
begin
Check := True;
Checked := True;
end;
end;
end;
end;
end;
Items.Add('',OleVariant(0),OleVariant(0)).Padding := '4,0,0,0';
var_Item2 := Items.Add('New Group',Null,Null);
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('',OleVariant(0),Null) do
begin
AllowEdit := Integer(EXRIBBONLib_TLB.exItemEditVertical) Or Integer(EXRIBBONLib_TLB.exItemEditSlider);
ItemHeight := 76;
EditBorder := EXRIBBONLib_TLB.exEditBorderNone;
EditValue := OleVariant(25);
end;
with Add('',OleVariant(2),Null) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exGroupPopupVertical) Or Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
Caption := '';
with Items do
begin
with Add('',OleVariant(2),Null) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
with Items do
begin
with Add('Button1',OleVariant(2),Null) do
begin
ShowAsButton := Integer(EXRIBBONLib_TLB.exShowAsSelectButtonBottom) Or Integer(EXRIBBONLib_TLB.exShowAsButtonAutoSize);
with Items do
begin
Add('Item 1',Null,Null);
Add('Item 2',Null,Null);
Add('Item 3',Null,Null);
end;
end;
Add('',OleVariant(0),OleVariant(0)).Padding := '4,0,0,0';
with Add('Button2',OleVariant(2),Null) do
begin
ShowAsButton := Integer(EXRIBBONLib_TLB.exShowAsSelectButtonBottom) Or Integer(EXRIBBONLib_TLB.exShowAsButtonAutoSize);
with Items do
begin
Add('Item 4',Null,Null);
Add('Item 5',Null,Null);
Add('Item 6',Null,Null);
end;
end;
end;
end;
with Add('Popup',OleVariant(2),Null) do
begin
Alignment := EXRIBBONLib_TLB.exCenter;
with Items do
begin
Add('Item 7',Null,Null).Check := True;
Add('Item 8',Null,Null);
with Add('Item 9',OleVariant(2),Null).Items do
begin
Add('Item 10',Null,Null);
Add('Item 11',Null,Null);
Add('Item 12',Null,Null);
end;
end;
end;
end;
end;
end;
end;
end;
end;
var_Item4 := Add('New Page',Null,Null);
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 := EXRIBBONLib_TLB.exShowPopupAlignDown;
with Items.Item[OleVariant(0)] do
begin
with Items do
begin
with Add('S1',Null,Null) do
begin
ItemHeight := 88;
AllowEdit := Integer(EXRIBBONLib_TLB.exItemEditVertical) Or Integer(EXRIBBONLib_TLB.exItemEditSpin) Or Integer(EXRIBBONLib_TLB.exItemEditProgress);
EditValue := OleVariant(25);
end;
with Add('S2',Null,Null) do
begin
ItemHeight := 88;
AllowEdit := Integer(EXRIBBONLib_TLB.exItemEditVertical) Or Integer(EXRIBBONLib_TLB.exItemEditSpin) Or Integer(EXRIBBONLib_TLB.exItemEditProgress);
EditValue := OleVariant(50);
end;
with Add('S3',Null,Null) do
begin
ItemHeight := 88;
AllowEdit := Integer(EXRIBBONLib_TLB.exItemEditVertical) Or Integer(EXRIBBONLib_TLB.exItemEditSpin) Or Integer(EXRIBBONLib_TLB.exItemEditProgress);
EditValue := OleVariant(75);
end;
end;
end;
end;
Add('',OleVariant(0),OleVariant(0)).Padding := '8,0,0,0';
end;
end;
PopupFlatAppearance := False;
with VisualAppearance do
begin
Add(1,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSPaint-Ribbon/mspr_background.ebn');
Add(2,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSPaint-Ribbon/mspr_groupt.ebn');
Add(3,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSPaint-Ribbon/mspr_groupo.ebn');
Add(4,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSPaint-Ribbon/mspr_grouphot.ebn');
Add(5,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSPaint-Ribbon/mspr_frameh.ebn');
Add(6,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSPaint-Ribbon/mspr_framehs.ebn');
Add(7,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSPaint-Ribbon/mspr_framehi.ebn');
Add(8,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSPaint-Ribbon/mspr_framehe.ebn');
Add(9,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSPaint-Ribbon/mspr_framevs.ebn');
Add(10,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSPaint-Ribbon/mspr_framevi.ebn');
Add(11,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSPaint-Ribbon/mspr_frameve.ebn');
Add(12,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSPaint-Ribbon/mspr_select.ebn');
Add(13,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSPaint-Ribbon/mspr_bordert.ebn');
Add(14,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSPaint-Ribbon/mspr_buttond.ebn');
Add(15,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSPaint-Ribbon/mspr_buttonu.ebn');
Add(16,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSPaint-Ribbon/mspr_tab.ebn');
Add(17,'CP:16 0 0 0 1');
Add(18,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSPaint-Ribbon/mspr_tabhot.ebn');
Add(19,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSPaint-Ribbon/mspr_tabselhot.ebn');
Add(20,'CP:19 0 0 0 1');
end;
LocalAppearance := EXRIBBONLib_TLB.ShadowBorder;
Appearance := EXRIBBONLib_TLB.AppearanceEnum($1000000);
ForeColor := RGB(21,66,139);
SelBackColor := $e000000;
Background[EXRIBBONLib_TLB.exToolTipAppearance] := Appearance;
Background[EXRIBBONLib_TLB.BackgroundPartEnum($2)] := $d000000;
Background[EXRIBBONLib_TLB.exGroupPopupFrameSingle] := $5000000;
Background[EXRIBBONLib_TLB.exGroupPopupFrameHStart] := $6000000;
Background[EXRIBBONLib_TLB.exGroupPopupFrameHIntermediate] := $7000000;
Background[EXRIBBONLib_TLB.exGroupPopupFrameHEnd] := $8000000;
Background[EXRIBBONLib_TLB.exGroupPopupFrameVStart] := $9000000;
Background[EXRIBBONLib_TLB.exGroupPopupFrameVIntermediate] := $a000000;
Background[EXRIBBONLib_TLB.exGroupPopupFrameVEnd] := $b000000;
Background[EXRIBBONLib_TLB.exMenuHotBackColor] := $c000000;
Background[EXRIBBONLib_TLB.exMenuSelHotBackColor] := $f000000;
Refresh();
end
|
197
|
Microsoft Windows 8.1 - Ribbon Like - Minimized

with Ribbon1 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[OleVariant(-99)].Visible := False;
with Item[OleVariant(0)].Items do
begin
Add('',OleVariant(0),OleVariant(0)).Padding := '8,0,0,0';
var_Item3 := Add('New Page',Null,Null);
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 := EXRIBBONLib_TLB.exShowPopupAlignDown;
with Items.Item[OleVariant(0)] do
begin
var_Item := Items.Add('New Group',Null,Null);
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('',OleVariant(2),Null) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exGroupPopupEqualWidth) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
Caption := '';
with Items do
begin
with Add('R1',Null,Null) do
begin
RadioGroup := 100;
Radio := True;
ShowCheckedAsSelected := EXRIBBONLib_TLB.exDisplayItemHighlight;
Checked := False;
end;
with Add('R2',Null,Null) do
begin
RadioGroup := 100;
Radio := True;
ShowCheckedAsSelected := EXRIBBONLib_TLB.exDisplayItemHighlight;
Checked := True;
end;
with Add('R3',Null,Null) do
begin
RadioGroup := 100;
Radio := True;
ShowCheckedAsSelected := EXRIBBONLib_TLB.exDisplayItemHighlight;
Checked := False;
end;
end;
end;
end;
end;
var_Item1 := Items.Add('New Group',Null,Null);
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('',OleVariant(2),Null) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exGroupPopupVertical) Or Integer(EXRIBBONLib_TLB.exGroupPopupEqualHeight) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
Caption := '';
with Items do
begin
with Add('C1',Null,Null) do
begin
Check := True;
Checked := True;
end;
with Add('C2',Null,Null) do
begin
Check := True;
Checked := False;
end;
with Add('C3',Null,Null) do
begin
Check := True;
Checked := True;
end;
end;
end;
end;
end;
Items.Add('',OleVariant(0),OleVariant(0)).Padding := '4,0,0,0';
var_Item2 := Items.Add('New Group',Null,Null);
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('',OleVariant(0),Null) do
begin
AllowEdit := Integer(EXRIBBONLib_TLB.exItemEditVertical) Or Integer(EXRIBBONLib_TLB.exItemEditSlider);
ItemHeight := 76;
EditBorder := EXRIBBONLib_TLB.exEditBorderNone;
EditValue := OleVariant(25);
end;
with Add('',OleVariant(2),Null) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exGroupPopupVertical) Or Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
Caption := '';
with Items do
begin
with Add('',OleVariant(2),Null) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
with Items do
begin
with Add('Button1',OleVariant(2),Null) do
begin
ShowAsButton := Integer(EXRIBBONLib_TLB.exShowAsSelectButtonBottom) Or Integer(EXRIBBONLib_TLB.exShowAsButtonAutoSize);
with Items do
begin
Add('Item 1',Null,Null);
Add('Item 2',Null,Null);
Add('Item 3',Null,Null);
end;
end;
Add('',OleVariant(0),OleVariant(0)).Padding := '4,0,0,0';
with Add('Button2',OleVariant(2),Null) do
begin
ShowAsButton := Integer(EXRIBBONLib_TLB.exShowAsSelectButtonBottom) Or Integer(EXRIBBONLib_TLB.exShowAsButtonAutoSize);
with Items do
begin
Add('Item 4',Null,Null);
Add('Item 5',Null,Null);
Add('Item 6',Null,Null);
end;
end;
end;
end;
with Add('Popup',OleVariant(2),Null) do
begin
Alignment := EXRIBBONLib_TLB.exCenter;
with Items do
begin
Add('Item 7',Null,Null).Check := True;
Add('Item 8',Null,Null);
with Add('Item 9',OleVariant(2),Null).Items do
begin
Add('Item 10',Null,Null);
Add('Item 11',Null,Null);
Add('Item 12',Null,Null);
end;
end;
end;
end;
end;
end;
end;
end;
end;
var_Item4 := Add('New Page',Null,Null);
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 := EXRIBBONLib_TLB.exShowPopupAlignDown;
with Items.Item[OleVariant(0)] do
begin
with Items do
begin
with Add('S1',Null,Null) do
begin
ItemHeight := 88;
AllowEdit := Integer(EXRIBBONLib_TLB.exItemEditVertical) Or Integer(EXRIBBONLib_TLB.exItemEditSpin) Or Integer(EXRIBBONLib_TLB.exItemEditProgress);
EditValue := OleVariant(25);
end;
with Add('S2',Null,Null) do
begin
ItemHeight := 88;
AllowEdit := Integer(EXRIBBONLib_TLB.exItemEditVertical) Or Integer(EXRIBBONLib_TLB.exItemEditSpin) Or Integer(EXRIBBONLib_TLB.exItemEditProgress);
EditValue := OleVariant(50);
end;
with Add('S3',Null,Null) do
begin
ItemHeight := 88;
AllowEdit := Integer(EXRIBBONLib_TLB.exItemEditVertical) Or Integer(EXRIBBONLib_TLB.exItemEditSpin) Or Integer(EXRIBBONLib_TLB.exItemEditProgress);
EditValue := OleVariant(75);
end;
end;
end;
end;
Add('',OleVariant(0),OleVariant(0)).Padding := '8,0,0,0';
end;
end;
PopupFlatAppearance := False;
with VisualAppearance do
begin
Add(1,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSFlat-Ribbon/msfr_background.ebn');
Add(2,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSFlat-Ribbon/msfr_groupt.ebn');
Add(12,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSFlat-Ribbon/msfr_hot.ebn');
Add(14,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSFlat-Ribbon/msfr_select.ebn');
Add(17,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSFlat-Ribbon/msfr_tab.ebn');
Add(18,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSFlat-Ribbon/msfr_tabhot.ebn');
Add(32,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSFlat-Ribbon/msfr_check0.ebn');
Add(33,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSFlat-Ribbon/msfr_check1.ebn');
Add(34,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSFlat-Ribbon/msfr_buttonu.ebn');
Add(35,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSFlat-Ribbon/msfr_buttond.ebn');
end;
Appearance := EXRIBBONLib_TLB.AppearanceEnum($1000000);
Background[EXRIBBONLib_TLB.exToolTipAppearance] := Appearance;
SelBackColor := $e000000;
Background[EXRIBBONLib_TLB.exMenuHotBackColor] := $c000000;
Background[EXRIBBONLib_TLB.exMenuSelHotBackColor] := $23000000;
Background[EXRIBBONLib_TLB.BackgroundPartEnum($2)] := $22000000;
Background[EXRIBBONLib_TLB.BackgroundPartEnum($3)] := $23000000;
Background[EXRIBBONLib_TLB.exCheckBoxState0] := $20000000;
Background[EXRIBBONLib_TLB.exCheckBoxState1] := $21000000;
Refresh();
end
|
196
|
How can I display a tab into the ribbon (method 2, minimized)

with Ribbon1 do
begin
Background[EXRIBBONLib_TLB.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[OleVariant(-99)].Visible := False;
with Item[OleVariant(-10)].Items do
begin
Add('',OleVariant(0),OleVariant(0)).Padding := '8,0,0,0';
with Add('New Page',Null,Null) 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[OleVariant(0)].Items do
begin
with Add('add here fields for page 1',Null,Null) do
begin
ID := -1000;
Enabled := False;
BackColor := $ff;
end;
end;
end;
with Add('New Page',Null,Null) 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[OleVariant(0)].Items do
begin
with Add('add here fields for page 2',Null,Null) do
begin
ID := -1001;
Enabled := False;
BackColor := $ff00;
end;
end;
end;
Add('',OleVariant(0),OleVariant(0)).Padding := '8,0,0,0';
end;
end;
Refresh();
end
|
195
|
How can I display a tab into the ribbon (method 1, minimized)

with Ribbon1 do
begin
Background[EXRIBBONLib_TLB.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[OleVariant(-1000)] do
begin
BackColor := $ff;
end;
with Items.Item[OleVariant(-1001)] do
begin
BackColor := $ff00;
end;
Item[OleVariant(-99)].Visible := False;
end
|
194
|
How can I display the drop down panel to a specified location only
with Ribbon1 do
begin
PopupAppearance := EXRIBBONLib_TLB.ShadowBorder;
with Items do
begin
with Add('Popup',OleVariant(2),OleVariant(100)) do
begin
ShowPopupArrow := False;
ShowPopupAlign := EXRIBBONLib_TLB.exShowPopupAlignDown;
ShowPopupOffset := '0:screen,0:screen';
with Items do
begin
Add('Item 1',Null,Null);
Add('Item 2',Null,Null);
Add('Item 3',Null,Null);
end;
end;
end;
Refresh();
end
|
193
|
How can I displays the drop down bellow the control, rather than item itself

with Ribbon1 do
begin
PopupAppearance := EXRIBBONLib_TLB.ShadowBorder;
with Items do
begin
with Add('Popup <b>1',OleVariant(2),OleVariant(100)) do
begin
ShowPopupArrow := False;
ShowPopupAlign := EXRIBBONLib_TLB.exShowPopupAlignDown;
ShowPopupOffset := '0,0:control';
with Items do
begin
Add('Item 1',Null,Null);
Add('Item 2',Null,Null);
Add('Item 3',Null,Null);
end;
end;
with Add('Popup <b>2',OleVariant(2),OleVariant(200)) do
begin
GroupPopup := EXRIBBONLib_TLB.exGroupPopup;
with Items do
begin
Add('Item 2',Null,Null);
Add('Item 3',Null,Null);
Add('Item 4',Null,Null);
end;
end;
end;
Refresh();
end
|
192
|
How can I change the visual appearance of the progress bar

with Ribbon1 do
begin
VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
Background[EXRIBBONLib_TLB.BackgroundPartEnum($104)] := $1000000;
with Items do
begin
with Add('Progress',Null,Null) do
begin
AllowEdit := EXRIBBONLib_TLB.exItemEditProgress;
EditWidth := -128;
EditValue := OleVariant(25);
end;
end;
Refresh();
end
|
191
|
How can I change the progress's color

with Ribbon1 do
begin
Background[EXRIBBONLib_TLB.BackgroundPartEnum($104)] := $ff;
with Items do
begin
with Add('Progress',Null,Null) do
begin
AllowEdit := EXRIBBONLib_TLB.exItemEditProgress;
EditWidth := -128;
EditValue := OleVariant(25);
end;
end;
Refresh();
end
|
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 TForm1.Ribbon1CheckItem(ASender: TObject; Itm : IItem);
begin
with Ribbon1 do
begin
with Items.Item[OleVariant(1000)] do
begin
Visible := True;
AllowEdit := Integer(EXRIBBONLib_TLB.exItemEditReadOnly) Or Integer(EXRIBBONLib_TLB.exItemEditProgress);
end;
Refresh();
end
end;
// UncheckItem event - Occurs when the user unchecks the item.
procedure TForm1.Ribbon1UncheckItem(ASender: TObject; Itm : IItem);
begin
with Ribbon1 do
begin
with Items.Item[OleVariant(1000)] do
begin
Visible := False;
AllowEdit := EXRIBBONLib_TLB.exItemDisableEdit;
end;
Refresh();
end
end;
with Ribbon1 do
begin
with Items do
begin
with Add('',OleVariant(2),Null) do
begin
with Items do
begin
Add('Visible',Null,Null);
with Add('',Null,Null) do
begin
Check := True;
Checked := True;
end;
with Add('Item 2',Null,OleVariant(1000)) do
begin
ItemHeight := 18;
Caption := 'Percent';
AllowEdit := Integer(EXRIBBONLib_TLB.exItemEditReadOnly) Or Integer(EXRIBBONLib_TLB.exItemEditProgress);
EditValue := OleVariant(50);
Visible := True;
end;
Add('Visible',Null,Null);
end;
GroupPopup := Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
end;
end;
Refresh();
end
|
189
|
How can I change the color of a disabled item

with Ribbon1 do
begin
with Items do
begin
with Add('Disabled',OleVariant(2),OleVariant(0)) do
begin
ForeColor := $ff;
Items.Add('',Null,Null);
GroupPopup := Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
ShowPopupArrow := False;
end;
Add('Disabled',Null,Null).Enabled := False;
end;
Refresh();
end
|
188
|
Microsoft Windows 8.1 - Ribbon Like

with Ribbon1 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[OleVariant(0)].Items do
begin
Add('',OleVariant(0),OleVariant(0)).Padding := '8,0,0,0';
var_Item3 := Add('New Page',Null,Null);
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 := EXRIBBONLib_TLB.exShowPopupAlignDown;
with Items.Item[OleVariant(0)] do
begin
var_Item := Items.Add('New Group',Null,Null);
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('',OleVariant(2),Null) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exGroupPopupEqualWidth) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
Caption := '';
with Items do
begin
with Add('R1',Null,Null) do
begin
RadioGroup := 100;
Radio := True;
ShowCheckedAsSelected := EXRIBBONLib_TLB.exDisplayItemHighlight;
Checked := False;
end;
with Add('R2',Null,Null) do
begin
RadioGroup := 100;
Radio := True;
ShowCheckedAsSelected := EXRIBBONLib_TLB.exDisplayItemHighlight;
Checked := True;
end;
with Add('R3',Null,Null) do
begin
RadioGroup := 100;
Radio := True;
ShowCheckedAsSelected := EXRIBBONLib_TLB.exDisplayItemHighlight;
Checked := False;
end;
end;
end;
end;
end;
var_Item1 := Items.Add('New Group',Null,Null);
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('',OleVariant(2),Null) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exGroupPopupVertical) Or Integer(EXRIBBONLib_TLB.exGroupPopupEqualHeight) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
Caption := '';
with Items do
begin
with Add('C1',Null,Null) do
begin
Check := True;
Checked := True;
end;
with Add('C2',Null,Null) do
begin
Check := True;
Checked := False;
end;
with Add('C3',Null,Null) do
begin
Check := True;
Checked := True;
end;
end;
end;
end;
end;
Items.Add('',OleVariant(0),OleVariant(0)).Padding := '4,0,0,0';
var_Item2 := Items.Add('New Group',Null,Null);
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('',OleVariant(0),Null) do
begin
AllowEdit := Integer(EXRIBBONLib_TLB.exItemEditVertical) Or Integer(EXRIBBONLib_TLB.exItemEditSlider);
ItemHeight := 76;
EditBorder := EXRIBBONLib_TLB.exEditBorderNone;
EditValue := OleVariant(25);
end;
with Add('',OleVariant(2),Null) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exGroupPopupVertical) Or Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
Caption := '';
with Items do
begin
with Add('',OleVariant(2),Null) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
with Items do
begin
with Add('Button1',OleVariant(2),Null) do
begin
ShowAsButton := Integer(EXRIBBONLib_TLB.exShowAsSelectButtonBottom) Or Integer(EXRIBBONLib_TLB.exShowAsButtonAutoSize);
with Items do
begin
Add('Item 1',Null,Null);
Add('Item 2',Null,Null);
Add('Item 3',Null,Null);
end;
end;
Add('',OleVariant(0),OleVariant(0)).Padding := '4,0,0,0';
with Add('Button2',OleVariant(2),Null) do
begin
ShowAsButton := Integer(EXRIBBONLib_TLB.exShowAsSelectButtonBottom) Or Integer(EXRIBBONLib_TLB.exShowAsButtonAutoSize);
with Items do
begin
Add('Item 4',Null,Null);
Add('Item 5',Null,Null);
Add('Item 6',Null,Null);
end;
end;
end;
end;
with Add('Popup',OleVariant(2),Null) do
begin
Alignment := EXRIBBONLib_TLB.exCenter;
with Items do
begin
Add('Item 7',Null,Null).Check := True;
Add('Item 8',Null,Null);
with Add('Item 9',OleVariant(2),Null).Items do
begin
Add('Item 10',Null,Null);
Add('Item 11',Null,Null);
Add('Item 12',Null,Null);
end;
end;
end;
end;
end;
end;
end;
end;
end;
var_Item4 := Add('New Page',Null,Null);
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 := EXRIBBONLib_TLB.exShowPopupAlignDown;
with Items.Item[OleVariant(0)] do
begin
with Items do
begin
with Add('S1',Null,Null) do
begin
ItemHeight := 88;
AllowEdit := Integer(EXRIBBONLib_TLB.exItemEditVertical) Or Integer(EXRIBBONLib_TLB.exItemEditSpin) Or Integer(EXRIBBONLib_TLB.exItemEditProgress);
EditValue := OleVariant(25);
end;
with Add('S2',Null,Null) do
begin
ItemHeight := 88;
AllowEdit := Integer(EXRIBBONLib_TLB.exItemEditVertical) Or Integer(EXRIBBONLib_TLB.exItemEditSpin) Or Integer(EXRIBBONLib_TLB.exItemEditProgress);
EditValue := OleVariant(50);
end;
with Add('S3',Null,Null) do
begin
ItemHeight := 88;
AllowEdit := Integer(EXRIBBONLib_TLB.exItemEditVertical) Or Integer(EXRIBBONLib_TLB.exItemEditSpin) Or Integer(EXRIBBONLib_TLB.exItemEditProgress);
EditValue := OleVariant(75);
end;
end;
end;
end;
Add('',OleVariant(0),OleVariant(0)).Padding := '8,0,0,0';
end;
end;
PopupFlatAppearance := False;
with VisualAppearance do
begin
Add(1,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSFlat-Ribbon/msfr_background.ebn');
Add(2,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSFlat-Ribbon/msfr_groupt.ebn');
Add(12,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSFlat-Ribbon/msfr_hot.ebn');
Add(14,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSFlat-Ribbon/msfr_select.ebn');
Add(17,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSFlat-Ribbon/msfr_tab.ebn');
Add(18,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSFlat-Ribbon/msfr_tabhot.ebn');
Add(32,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSFlat-Ribbon/msfr_check0.ebn');
Add(33,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSFlat-Ribbon/msfr_check1.ebn');
Add(34,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSFlat-Ribbon/msfr_buttonu.ebn');
Add(35,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSFlat-Ribbon/msfr_buttond.ebn');
end;
Appearance := EXRIBBONLib_TLB.AppearanceEnum($1000000);
Background[EXRIBBONLib_TLB.exToolTipAppearance] := Appearance;
SelBackColor := $e000000;
Background[EXRIBBONLib_TLB.exMenuHotBackColor] := $c000000;
Background[EXRIBBONLib_TLB.exMenuSelHotBackColor] := $23000000;
Background[EXRIBBONLib_TLB.BackgroundPartEnum($2)] := $22000000;
Background[EXRIBBONLib_TLB.BackgroundPartEnum($3)] := $23000000;
Background[EXRIBBONLib_TLB.exCheckBoxState0] := $20000000;
Background[EXRIBBONLib_TLB.exCheckBoxState1] := $21000000;
Refresh();
end
|
187
|
Microsoft Paint - Ribbon Like

with Ribbon1 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[OleVariant(0)].Items do
begin
Add('',OleVariant(0),OleVariant(0)).Padding := '8,0,0,0';
var_Item3 := Add('New Page',Null,Null);
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 := EXRIBBONLib_TLB.exShowPopupAlignDown;
with Items.Item[OleVariant(0)] do
begin
var_Item := Items.Add('New Group',Null,Null);
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('',OleVariant(2),Null) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exGroupPopupEqualWidth) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
Caption := '';
with Items do
begin
with Add('R1',Null,Null) do
begin
RadioGroup := 100;
Radio := True;
ShowCheckedAsSelected := EXRIBBONLib_TLB.exDisplayItemHighlight;
Checked := False;
end;
with Add('R2',Null,Null) do
begin
RadioGroup := 100;
Radio := True;
ShowCheckedAsSelected := EXRIBBONLib_TLB.exDisplayItemHighlight;
Checked := True;
end;
with Add('R3',Null,Null) do
begin
RadioGroup := 100;
Radio := True;
ShowCheckedAsSelected := EXRIBBONLib_TLB.exDisplayItemHighlight;
Checked := False;
end;
end;
end;
end;
end;
var_Item1 := Items.Add('New Group',Null,Null);
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('',OleVariant(2),Null) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exGroupPopupVertical) Or Integer(EXRIBBONLib_TLB.exGroupPopupEqualHeight) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
Caption := '';
with Items do
begin
with Add('C1',Null,Null) do
begin
Check := True;
Checked := True;
end;
with Add('C2',Null,Null) do
begin
Check := True;
Checked := False;
end;
with Add('C3',Null,Null) do
begin
Check := True;
Checked := True;
end;
end;
end;
end;
end;
Items.Add('',OleVariant(0),OleVariant(0)).Padding := '4,0,0,0';
var_Item2 := Items.Add('New Group',Null,Null);
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('',OleVariant(0),Null) do
begin
AllowEdit := Integer(EXRIBBONLib_TLB.exItemEditVertical) Or Integer(EXRIBBONLib_TLB.exItemEditSlider);
ItemHeight := 76;
EditBorder := EXRIBBONLib_TLB.exEditBorderNone;
EditValue := OleVariant(25);
end;
with Add('',OleVariant(2),Null) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exGroupPopupVertical) Or Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
Caption := '';
with Items do
begin
with Add('',OleVariant(2),Null) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
with Items do
begin
with Add('Button1',OleVariant(2),Null) do
begin
ShowAsButton := Integer(EXRIBBONLib_TLB.exShowAsSelectButtonBottom) Or Integer(EXRIBBONLib_TLB.exShowAsButtonAutoSize);
with Items do
begin
Add('Item 1',Null,Null);
Add('Item 2',Null,Null);
Add('Item 3',Null,Null);
end;
end;
Add('',OleVariant(0),OleVariant(0)).Padding := '4,0,0,0';
with Add('Button2',OleVariant(2),Null) do
begin
ShowAsButton := Integer(EXRIBBONLib_TLB.exShowAsSelectButtonBottom) Or Integer(EXRIBBONLib_TLB.exShowAsButtonAutoSize);
with Items do
begin
Add('Item 4',Null,Null);
Add('Item 5',Null,Null);
Add('Item 6',Null,Null);
end;
end;
end;
end;
with Add('Popup',OleVariant(2),Null) do
begin
Alignment := EXRIBBONLib_TLB.exCenter;
with Items do
begin
Add('Item 7',Null,Null).Check := True;
Add('Item 8',Null,Null);
with Add('Item 9',OleVariant(2),Null).Items do
begin
Add('Item 10',Null,Null);
Add('Item 11',Null,Null);
Add('Item 12',Null,Null);
end;
end;
end;
end;
end;
end;
end;
end;
end;
var_Item4 := Add('New Page',Null,Null);
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 := EXRIBBONLib_TLB.exShowPopupAlignDown;
with Items.Item[OleVariant(0)] do
begin
with Items do
begin
with Add('S1',Null,Null) do
begin
ItemHeight := 88;
AllowEdit := Integer(EXRIBBONLib_TLB.exItemEditVertical) Or Integer(EXRIBBONLib_TLB.exItemEditSpin) Or Integer(EXRIBBONLib_TLB.exItemEditProgress);
EditValue := OleVariant(25);
end;
with Add('S2',Null,Null) do
begin
ItemHeight := 88;
AllowEdit := Integer(EXRIBBONLib_TLB.exItemEditVertical) Or Integer(EXRIBBONLib_TLB.exItemEditSpin) Or Integer(EXRIBBONLib_TLB.exItemEditProgress);
EditValue := OleVariant(50);
end;
with Add('S3',Null,Null) do
begin
ItemHeight := 88;
AllowEdit := Integer(EXRIBBONLib_TLB.exItemEditVertical) Or Integer(EXRIBBONLib_TLB.exItemEditSpin) Or Integer(EXRIBBONLib_TLB.exItemEditProgress);
EditValue := OleVariant(75);
end;
end;
end;
end;
Add('',OleVariant(0),OleVariant(0)).Padding := '8,0,0,0';
end;
end;
PopupFlatAppearance := False;
with VisualAppearance do
begin
Add(1,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSPaint-Ribbon/mspr_background.ebn');
Add(2,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSPaint-Ribbon/mspr_groupt.ebn');
Add(3,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSPaint-Ribbon/mspr_groupo.ebn');
Add(4,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSPaint-Ribbon/mspr_grouphot.ebn');
Add(5,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSPaint-Ribbon/mspr_frameh.ebn');
Add(6,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSPaint-Ribbon/mspr_framehs.ebn');
Add(7,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSPaint-Ribbon/mspr_framehi.ebn');
Add(8,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSPaint-Ribbon/mspr_framehe.ebn');
Add(9,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSPaint-Ribbon/mspr_framevs.ebn');
Add(10,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSPaint-Ribbon/mspr_framevi.ebn');
Add(11,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSPaint-Ribbon/mspr_frameve.ebn');
Add(12,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSPaint-Ribbon/mspr_select.ebn');
Add(13,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSPaint-Ribbon/mspr_bordert.ebn');
Add(14,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSPaint-Ribbon/mspr_buttond.ebn');
Add(15,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSPaint-Ribbon/mspr_buttonu.ebn');
Add(16,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSPaint-Ribbon/mspr_tab.ebn');
Add(17,'CP:16 0 0 0 1');
Add(18,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSPaint-Ribbon/mspr_tabhot.ebn');
Add(19,'C:/Program Files/Exontrol/ExRibbon/Sample/EBN/MSPaint-Ribbon/mspr_tabselhot.ebn');
Add(20,'CP:19 0 0 0 1');
end;
LocalAppearance := EXRIBBONLib_TLB.ShadowBorder;
Appearance := EXRIBBONLib_TLB.AppearanceEnum($1000000);
ForeColor := RGB(21,66,139);
SelBackColor := $e000000;
Background[EXRIBBONLib_TLB.exToolTipAppearance] := Appearance;
Background[EXRIBBONLib_TLB.BackgroundPartEnum($2)] := $d000000;
Background[EXRIBBONLib_TLB.exGroupPopupFrameSingle] := $5000000;
Background[EXRIBBONLib_TLB.exGroupPopupFrameHStart] := $6000000;
Background[EXRIBBONLib_TLB.exGroupPopupFrameHIntermediate] := $7000000;
Background[EXRIBBONLib_TLB.exGroupPopupFrameHEnd] := $8000000;
Background[EXRIBBONLib_TLB.exGroupPopupFrameVStart] := $9000000;
Background[EXRIBBONLib_TLB.exGroupPopupFrameVIntermediate] := $a000000;
Background[EXRIBBONLib_TLB.exGroupPopupFrameVEnd] := $b000000;
Background[EXRIBBONLib_TLB.exMenuHotBackColor] := $c000000;
Background[EXRIBBONLib_TLB.exMenuSelHotBackColor] := $f000000;
Refresh();
end
|
186
|
Microsoft Office - Ribbon Like

with Ribbon1 do
begin
ToString := '[id=0][group=0x03](),[id=-99][bg=0x01000000][group=0x03][itemspad=4,4,4,4]([id=9000])';
with Item[OleVariant(0)].Items do
begin
Add('',OleVariant(0),OleVariant(0)).Padding := '8,0,0,0';
var_Item3 := Add('New Page',Null,Null);
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 := EXRIBBONLib_TLB.exShowPopupAlignDown;
with Items.Item[OleVariant(0)] do
begin
var_Item := Items.Add('New Group',Null,Null);
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('',OleVariant(2),Null) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exGroupPopupEqualWidth) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
Caption := '';
with Items do
begin
with Add('R1',Null,Null) do
begin
RadioGroup := 100;
Radio := True;
ShowCheckedAsSelected := EXRIBBONLib_TLB.exDisplayItemHighlight;
Checked := False;
end;
with Add('R2',Null,Null) do
begin
RadioGroup := 100;
Radio := True;
ShowCheckedAsSelected := EXRIBBONLib_TLB.exDisplayItemHighlight;
Checked := True;
end;
with Add('R3',Null,Null) do
begin
RadioGroup := 100;
Radio := True;
ShowCheckedAsSelected := EXRIBBONLib_TLB.exDisplayItemHighlight;
Checked := False;
end;
end;
end;
end;
end;
var_Item1 := Items.Add('New Group',Null,Null);
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('',OleVariant(2),Null) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exGroupPopupVertical) Or Integer(EXRIBBONLib_TLB.exGroupPopupEqualHeight) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
Caption := '';
with Items do
begin
with Add('C1',Null,Null) do
begin
Check := True;
Checked := True;
end;
with Add('C2',Null,Null) do
begin
Check := True;
Checked := False;
end;
with Add('C3',Null,Null) do
begin
Check := True;
Checked := True;
end;
end;
end;
end;
end;
Items.Add('',OleVariant(0),OleVariant(0)).Padding := '4,0,0,0';
var_Item2 := Items.Add('New Group',Null,Null);
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('',OleVariant(0),Null) do
begin
AllowEdit := Integer(EXRIBBONLib_TLB.exItemEditVertical) Or Integer(EXRIBBONLib_TLB.exItemEditSlider);
ItemHeight := 76;
EditBorder := EXRIBBONLib_TLB.exEditBorderNone;
EditValue := OleVariant(25);
end;
with Add('',OleVariant(2),Null) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exGroupPopupVertical) Or Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
Caption := '';
with Items do
begin
with Add('',OleVariant(2),Null) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
with Items do
begin
with Add('Button1',OleVariant(2),Null) do
begin
ShowAsButton := Integer(EXRIBBONLib_TLB.exShowAsSelectButtonBottom) Or Integer(EXRIBBONLib_TLB.exShowAsButtonAutoSize);
with Items do
begin
Add('Item 1',Null,Null);
Add('Item 2',Null,Null);
Add('Item 3',Null,Null);
end;
end;
Add('',OleVariant(0),OleVariant(0)).Padding := '4,0,0,0';
with Add('Button2',OleVariant(2),Null) do
begin
ShowAsButton := Integer(EXRIBBONLib_TLB.exShowAsSelectButtonBottom) Or Integer(EXRIBBONLib_TLB.exShowAsButtonAutoSize);
with Items do
begin
Add('Item 4',Null,Null);
Add('Item 5',Null,Null);
Add('Item 6',Null,Null);
end;
end;
end;
end;
with Add('Popup',OleVariant(2),Null) do
begin
Alignment := EXRIBBONLib_TLB.exCenter;
with Items do
begin
Add('Item 7',Null,Null).Check := True;
Add('Item 8',Null,Null);
with Add('Item 9',OleVariant(2),Null).Items do
begin
Add('Item 10',Null,Null);
Add('Item 11',Null,Null);
Add('Item 12',Null,Null);
end;
end;
end;
end;
end;
end;
end;
end;
end;
var_Item4 := Add('New Page',Null,Null);
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 := EXRIBBONLib_TLB.exShowPopupAlignDown;
with Items.Item[OleVariant(0)] do
begin
with Items do
begin
with Add('S1',Null,Null) do
begin
ItemHeight := 88;
AllowEdit := Integer(EXRIBBONLib_TLB.exItemEditVertical) Or Integer(EXRIBBONLib_TLB.exItemEditSpin) Or Integer(EXRIBBONLib_TLB.exItemEditProgress);
EditValue := OleVariant(25);
end;
with Add('S2',Null,Null) do
begin
ItemHeight := 88;
AllowEdit := Integer(EXRIBBONLib_TLB.exItemEditVertical) Or Integer(EXRIBBONLib_TLB.exItemEditSpin) Or Integer(EXRIBBONLib_TLB.exItemEditProgress);
EditValue := OleVariant(50);
end;
with Add('S3',Null,Null) do
begin
ItemHeight := 88;
AllowEdit := Integer(EXRIBBONLib_TLB.exItemEditVertical) Or Integer(EXRIBBONLib_TLB.exItemEditSpin) Or Integer(EXRIBBONLib_TLB.exItemEditProgress);
EditValue := OleVariant(75);
end;
end;
end;
end;
Add('',OleVariant(0),OleVariant(0)).Padding := '8,0,0,0';
end;
PopupFlatAppearance := False;
with VisualAppearance do
begin
Add(1,'C:\Program Files\Exontrol\ExRibbon\Sample\EBN\MSOffice-Ribbon\msor_background.ebn');
Add(2,'C:\Program Files\Exontrol\ExRibbon\Sample\EBN\MSOffice-Ribbon\msor_groupt.ebn');
Add(3,'C:\Program Files\Exontrol\ExRibbon\Sample\EBN\MSOffice-Ribbon\msor_groupo.ebn');
Add(4,'C:\Program Files\Exontrol\ExRibbon\Sample\EBN\MSOffice-Ribbon\msor_grouphot.ebn');
Add(5,'C:\Program Files\Exontrol\ExRibbon\Sample\EBN\MSOffice-Ribbon\msor_frameh.ebn');
Add(6,'C:\Program Files\Exontrol\ExRibbon\Sample\EBN\MSOffice-Ribbon\msor_framehs.ebn');
Add(7,'C:\Program Files\Exontrol\ExRibbon\Sample\EBN\MSOffice-Ribbon\msor_framehi.ebn');
Add(8,'C:\Program Files\Exontrol\ExRibbon\Sample\EBN\MSOffice-Ribbon\msor_framehe.ebn');
Add(9,'C:\Program Files\Exontrol\ExRibbon\Sample\EBN\MSOffice-Ribbon\msor_framevs.ebn');
Add(10,'C:\Program Files\Exontrol\ExRibbon\Sample\EBN\MSOffice-Ribbon\msor_framevi.ebn');
Add(11,'C:\Program Files\Exontrol\ExRibbon\Sample\EBN\MSOffice-Ribbon\msor_frameve.ebn');
Add(12,'C:\Program Files\Exontrol\ExRibbon\Sample\EBN\MSOffice-Ribbon\msor_select.ebn');
Add(13,'C:\Program Files\Exontrol\ExRibbon\Sample\EBN\MSOffice-Ribbon\msor_bordert.ebn');
Add(14,'C:\Program Files\Exontrol\ExRibbon\Sample\EBN\MSOffice-Ribbon\msor_buttond.ebn');
Add(15,'C:\Program Files\Exontrol\ExRibbon\Sample\EBN\MSOffice-Ribbon\msor_buttonu.ebn');
Add(16,'C:\Program Files\Exontrol\ExRibbon\Sample\EBN\MSOffice-Ribbon\msor_tab.ebn');
Add(17,'CP:16 0 0 0 1');
Add(18,'C:\Program Files\Exontrol\ExRibbon\Sample\EBN\MSOffice-Ribbon\msor_tabhot.ebn');
Add(19,'C:\Program Files\Exontrol\ExRibbon\Sample\EBN\MSOffice-Ribbon\msor_tabselhot.ebn');
Add(20,'CP:19 0 0 0 1');
end;
ForeColor := RGB(21,66,139);
SelBackColor := $e000000;
LocalAppearance := EXRIBBONLib_TLB.ShadowBorder;
Appearance := EXRIBBONLib_TLB.AppearanceEnum($1000000);
Background[EXRIBBONLib_TLB.exToolTipAppearance] := Appearance;
Background[EXRIBBONLib_TLB.BackgroundPartEnum($2)] := $d000000;
Background[EXRIBBONLib_TLB.exGroupPopupFrameSingle] := $5000000;
Background[EXRIBBONLib_TLB.exGroupPopupFrameHStart] := $6000000;
Background[EXRIBBONLib_TLB.exGroupPopupFrameHIntermediate] := $7000000;
Background[EXRIBBONLib_TLB.exGroupPopupFrameHEnd] := $8000000;
Background[EXRIBBONLib_TLB.exGroupPopupFrameVStart] := $9000000;
Background[EXRIBBONLib_TLB.exGroupPopupFrameVIntermediate] := $a000000;
Background[EXRIBBONLib_TLB.exGroupPopupFrameVEnd] := $b000000;
Background[EXRIBBONLib_TLB.exMenuHotBackColor] := $c000000;
Background[EXRIBBONLib_TLB.exMenuSelHotBackColor] := $f000000;
Refresh();
end
|
185
|
How I can assign buttons to a tab

with Ribbon1 do
begin
Background[EXRIBBONLib_TLB.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[OleVariant(-10)].Items do
begin
Add('',OleVariant(0),OleVariant(0)).Padding := '8,0,0,0';
with Add('New Page',Null,Null) 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[OleVariant(0)].Items do
begin
Add('Button 1',Null,Null).ShowAsButton := Integer(EXRIBBONLib_TLB.exShowAsButtonAutoSize) Or Integer(EXRIBBONLib_TLB.exShowAsButton);
Add('Button 2',Null,Null).ShowAsButton := Integer(EXRIBBONLib_TLB.exShowAsButtonAutoSize) Or Integer(EXRIBBONLib_TLB.exShowAsButton);
Add('Button 3',Null,Null).ShowAsButton := Integer(EXRIBBONLib_TLB.exShowAsButtonAutoSize) Or Integer(EXRIBBONLib_TLB.exShowAsButton);
end;
end;
with Add('New Page',Null,Null) 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[OleVariant(0)].Items do
begin
Add('Button 3',Null,Null).ShowAsButton := Integer(EXRIBBONLib_TLB.exShowAsButtonAutoSize) Or Integer(EXRIBBONLib_TLB.exShowAsButton);
Add('Button 4',Null,Null).ShowAsButton := Integer(EXRIBBONLib_TLB.exShowAsButtonAutoSize) Or Integer(EXRIBBONLib_TLB.exShowAsButton);
end;
end;
Add('',OleVariant(0),OleVariant(0)).Padding := '8,0,0,0';
end;
end;
Refresh();
end
|
184
|
How can I hide an item

with Ribbon1 do
begin
with Items do
begin
Add('Item 1',Null,Null).Visible := False;
Add('Item 2',Null,Null);
end;
Refresh();
end
|
183
|
How do I quickly load items into the control

with Ribbon1 do
begin
ToString := 'Check 1[chk],Check 2[chk=1]';
end
|
182
|
Are there any functions to get the size/width/height of the control so all items fit the control's client area

with Ribbon1 do
begin
with Items do
begin
Add('Item 1',Null,Null);
Add('Item 2',Null,Null);
end;
Refresh();
OutputDebugString( RequiredWidth );
OutputDebugString( RequiredHeight );
end
|
181
|
How do I get the item giving its caption

with Ribbon1 do
begin
with Items do
begin
Add('Item 1',Null,Null).ID := 1000;
Add('Item 2',Null,Null).ID := 1001;
end;
Item['Item 1'].Bold := True;
Refresh();
end
|
180
|
How do I get the item giving its identifier

with Ribbon1 do
begin
with Items do
begin
Add('Item 1',Null,Null).ID := 1000;
Add('Item 2',Null,Null).ID := 1001;
end;
Item[OleVariant(1000)].Bold := True;
Refresh();
end
|
179
|
Can I change the cursor where it hovers the item

with Ribbon1 do
begin
Cursor := 'exCross';
with Items do
begin
Add('Item 1',Null,Null);
Add('Item 2',Null,Null).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 Ribbon1 do
begin
AllowToggleRadio := True;
with Items do
begin
with Add('Radio 1',Null,OleVariant(1000)) do
begin
Radio := True;
RadioGroup := 100;
end;
with Add('Radio 2',Null,OleVariant(1001)) do
begin
Radio := True;
RadioGroup := 100;
end;
with Add('Radio 2',Null,OleVariant(1003)) do
begin
Radio := True;
RadioGroup := 100;
end;
end;
Refresh();
end
|
177
|
Is it possible to display the item's identifiers

with Ribbon1 do
begin
Debug := True;
with Items do
begin
Add('Item 1',Null,Null).ID := 10001;
Add('Item 2',Null,Null).ID := 10002;
end;
Refresh();
end
|
176
|
How do I disable showing the tooltip for all control (method 2)

with Ribbon1 do
begin
AllowToolTip := False;
with Items do
begin
Add('Item',Null,Null).Tooltip := 'this is a bit of text to be shown when cursor hovers it';
Add('Item',Null,Null).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 TForm1.Ribbon1SelectItem(ASender: TObject; Itm : IItem);
begin
with Ribbon1 do
begin
OutputDebugString( 'SelectItem should not be fired while locked' );
end
end;
with Ribbon1 do
begin
Locked := True;
with Items do
begin
Add('Disabled',Null,Null).Enabled := False;
Add('Item 2',Null,Null);
Add('Item 3',Null,Null);
end;
Refresh();
end
|
174
|
How can I disable the control

with Ribbon1 do
begin
Enabled := False;
with Items do
begin
Add('Disabled',Null,Null).Enabled := False;
Add('Item 2',Null,Null);
Add('Item 3',Null,Null);
end;
Refresh();
end
|
173
|
How can I specify a different border/visual appearance for drop down portion of the popup menu (ebn)

with Ribbon1 do
begin
VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
PopupAppearance := EXRIBBONLib_TLB.AppearanceEnum($1000000);
with Items do
begin
with Add('Popup 1',OleVariant(2),Null).Items do
begin
Add('Item 1',Null,Null).Check := True;
Add('Item 2',Null,Null).Check := True;
Add('Item 3',Null,Null).Check := True;
end;
with Add('Popup 2',OleVariant(2),Null).Items do
begin
Add('Item 4',Null,Null).Check := True;
Add('Item 5',Null,Null).Check := True;
Add('Item 6',Null,Null).Check := True;
end;
end;
Refresh();
end
|
172
|
How can I specify a different border for drop down portion of the popup menu

with Ribbon1 do
begin
PopupAppearance := EXRIBBONLib_TLB.ShadowBorder;
with Items do
begin
with Add('Popup 1',OleVariant(2),Null).Items do
begin
Add('Item 1',Null,Null).Check := True;
Add('Item 2',Null,Null).Check := True;
Add('Item 3',Null,Null).Check := True;
end;
with Add('Popup 2',OleVariant(2),Null).Items do
begin
Add('Item 4',Null,Null).Check := True;
Add('Item 5',Null,Null).Check := True;
Add('Item 6',Null,Null).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 Ribbon1 do
begin
VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
LocalAppearance := EXRIBBONLib_TLB.AppearanceEnum($1000000);
with Items do
begin
with Add('',OleVariant(2),Null) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
with Items do
begin
with Add('Button',OleVariant(2),Null) do
begin
ShowAsButton := Integer(EXRIBBONLib_TLB.exShowAsSelectButtonBottom) Or Integer(EXRIBBONLib_TLB.exShowAsButtonAutoSize);
with Items do
begin
Add('Item 1',Null,Null);
Add('Item 2',Null,Null);
Add('Item 3',Null,Null);
end;
end;
with Add('Button',OleVariant(2),Null) do
begin
ShowAsButton := Integer(EXRIBBONLib_TLB.exShowAsSelectButtonBottom) Or Integer(EXRIBBONLib_TLB.exShowAsButtonAutoSize);
with Items do
begin
Add('Item 4',Null,Null);
Add('Item 5',Null,Null);
Add('Item 6',Null,Null);
end;
end;
end;
end;
end;
Refresh();
end
|
170
|
How can I specify a different border for drop down portion of the select buttons/combobox

with Ribbon1 do
begin
LocalAppearance := EXRIBBONLib_TLB.ShadowBorder;
with Items do
begin
with Add('',OleVariant(2),Null) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
with Items do
begin
with Add('Button',OleVariant(2),Null) do
begin
ShowAsButton := Integer(EXRIBBONLib_TLB.exShowAsSelectButtonBottom) Or Integer(EXRIBBONLib_TLB.exShowAsButtonAutoSize);
with Items do
begin
Add('Item 1',Null,Null);
Add('Item 2',Null,Null);
Add('Item 3',Null,Null);
end;
end;
with Add('Button',OleVariant(2),Null) do
begin
ShowAsButton := Integer(EXRIBBONLib_TLB.exShowAsSelectButtonBottom) Or Integer(EXRIBBONLib_TLB.exShowAsButtonAutoSize);
with Items do
begin
Add('Item 4',Null,Null);
Add('Item 5',Null,Null);
Add('Item 6',Null,Null);
end;
end;
end;
end;
end;
Refresh();
end
|
169
|
How can I change the visual appearance for the entire control

with Ribbon1 do
begin
VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
Appearance := EXRIBBONLib_TLB.AppearanceEnum($1000000);
ShowCheckedAsSelected := EXRIBBONLib_TLB.exDisplayItemCheckHighlight;
with Items do
begin
Padding := '4,4,4,4';
with Add('Radio 1',Null,Null) do
begin
Radio := True;
Checked := True;
end;
Add('Radio 2',Null,Null).Radio := True;
Add('Radio 3',Null,Null).Radio := True;
end;
Refresh();
end
|
168
|
How can I show a border arround the control

with Ribbon1 do
begin
Appearance := EXRIBBONLib_TLB.FlatBorder;
ShowCheckedAsSelected := EXRIBBONLib_TLB.exDisplayItemCheckHighlight;
with Items do
begin
Padding := '4,4,4,4';
with Add('Check 1',Null,Null) do
begin
Checked := True;
Check := True;
end;
with Add('Check 2',Null,Null) 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 Ribbon1 do
begin
ShowCheckedAsSelected := EXRIBBONLib_TLB.exDisplayItemCheckHighlight;
with Items do
begin
Padding := '4,4,4,4';
with Add('Check 1',Null,Null) do
begin
Checked := True;
Check := True;
end;
with Add('Check 2',Null,Null) do
begin
Check := True;
end;
end;
Refresh();
end
|
166
|
How can I change the colors for hot/hover items

with Ribbon1 do
begin
Background[EXRIBBONLib_TLB.exMenuHotBackColor] := $10000;
Background[EXRIBBONLib_TLB.exMenuHotForeColor] := $ffffff;
Background[EXRIBBONLib_TLB.exMenuSelHotBackColor] := $808080;
Background[EXRIBBONLib_TLB.exMenuSelHotForeColor] := $ffffff;
SelBackColor := RGB(128,128,128);
SelForeColor := RGB(255,255,255);
Background[EXRIBBONLib_TLB.exMenuSelBorderColor] := $808080;
ShowCheckedAsSelected := EXRIBBONLib_TLB.exDisplayItemCheckHighlight;
with Items do
begin
Padding := '4,4,4,4';
Add('',Null,Null).ToString := '[group=3](Item 1,Item 2)';
with Add('Check 1',Null,Null) do
begin
Checked := True;
Check := True;
end;
with Add('Check 2',Null,Null) do
begin
Check := True;
end;
end;
Refresh();
end
|
165
|
How do I change the visual appearance of the groups (vertical)

with Ribbon1 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;
Background[EXRIBBONLib_TLB.exGroupPopupFrameSingle] := $1000000;
Background[EXRIBBONLib_TLB.exGroupPopupFrameVStart] := $1000000;
Background[EXRIBBONLib_TLB.exGroupPopupFrameVIntermediate] := $2000000;
Background[EXRIBBONLib_TLB.exGroupPopupFrameVEnd] := $3000000;
Background[EXRIBBONLib_TLB.exGroupPopupFrameSolid] := $ff;
with Items do
begin
with Add('',OleVariant(2),Null) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
with Items do
begin
with Add('Vertical',OleVariant(2),Null) do
begin
Alignment := EXRIBBONLib_TLB.exCenter;
GroupPopup := Integer(EXRIBBONLib_TLB.exGroupPopupVertical) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
with Items do
begin
Add('Item 1',Null,Null);
Add('Item 2',Null,Null);
Add('Item 3',Null,Null);
Add('Item 4',Null,Null);
Add('Item 5',Null,Null);
end;
end;
Add('',Null,Null).CaptionWidth := 12;
with Add('Vertical',OleVariant(2),Null) do
begin
Alignment := EXRIBBONLib_TLB.exCenter;
GroupPopup := Integer(EXRIBBONLib_TLB.exGroupPopupVertical) Or Integer(EXRIBBONLib_TLB.exGroupPopupFrameThickBox) Or Integer(EXRIBBONLib_TLB.exGroupPopupFrameSolidBox) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
with Items do
begin
Add('Item 1',Null,Null);
Add('Item 2',Null,Null);
Add('Item 3',Null,Null);
Add('Item 4',Null,Null);
Add('Item 5',Null,Null);
end;
end;
end;
end;
end;
Refresh();
end
|
164
|
How do I change the visual appearance of the groups (horizontal)

with Ribbon1 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;
Background[EXRIBBONLib_TLB.exGroupPopupFrameSingle] := $1000000;
Background[EXRIBBONLib_TLB.exGroupPopupFrameHStart] := $1000000;
Background[EXRIBBONLib_TLB.exGroupPopupFrameHIntermediate] := $2000000;
Background[EXRIBBONLib_TLB.exGroupPopupFrameHEnd] := $3000000;
Background[EXRIBBONLib_TLB.exGroupPopupFrameSolid] := $ff;
with Items do
begin
with Add('Horizontal Group',OleVariant(2),Null) do
begin
GroupPopup := EXRIBBONLib_TLB.exGroupPopup;
with Items do
begin
Add('Item 1',Null,Null);
Add('Item 2',Null,Null);
Add('Item 3',Null,Null);
Add('Item 4',Null,Null);
Add('Item 5',Null,Null);
end;
end;
Add('',Null,Null).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 Ribbon1 do
begin
VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
Background[EXRIBBONLib_TLB.exMenuSeparatorItem] := $1000000;
with Items do
begin
Add('Item',Null,Null).CaptionWidth := 128;
Add('',OleVariant(1),Null);
Add('Item',Null,Null).CaptionWidth := 128;
Add('',Null,Null).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 Ribbon1 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',OleVariant(2),Null).Items do
begin
Add('Item 1',Null,Null).Check := True;
Add('Item 2',Null,Null).Check := True;
Add('Item 3',Null,Null).Check := True;
PopupAppearance := EXRIBBONLib_TLB.AppearanceEnum($1000000);
end;
end;
Refresh();
end
|
161
|
How can I change the visual appearance of the drop down of the control (normal.1)

with Ribbon1 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',OleVariant(2),Null).Items do
begin
Add('Item 1',Null,Null).Check := True;
Add('Item 2',Null,Null).Check := True;
Add('Item 3',Null,Null).Check := True;
PopupAppearance := EXRIBBONLib_TLB.AppearanceEnum($1000000);
end;
end;
Refresh();
end
|
160
|
How can I change the visual appearance of the drop down of the control (flat)

with Ribbon1 do
begin
with VisualAppearance do
begin
Add(1,'c:\exontrol\images\normal.ebn');
Add(2,'c:\exontrol\images\pushed.ebn');
end;
PopupFlatBackColor := $2000000;
Background[EXRIBBONLib_TLB.exMenuFlatLineColor] := PopupFlatBackColor;
with Items do
begin
with Add('Popup',OleVariant(2),Null).Items do
begin
Add('Item 1',Null,Null).Check := True;
Add('Item 2',Null,Null).Check := True;
Add('Item 3',Null,Null).Check := True;
PopupAppearance := EXRIBBONLib_TLB.AppearanceEnum($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 Ribbon1 do
begin
VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
PopupFlatBackColor := $1000000;
Background[EXRIBBONLib_TLB.exMenuFlatLineColor] := PopupFlatBackColor;
with Items do
begin
with Add('Popup',OleVariant(2),Null).Items do
begin
Add('Item 1',Null,Null).Check := True;
Add('Item 2',Null,Null).Check := True;
Add('Item 3',Null,Null).Check := True;
PopupAppearance := EXRIBBONLib_TLB.ShadowBorder;
end;
end;
Refresh();
end
|
158
|
How can I change the visual appearance of the radio-buttons to be displayed in the ribbon control (ebn)

with Ribbon1 do
begin
with VisualAppearance do
begin
Add(1,'c:\exontrol\images\normal.ebn');
Add(2,'c:\exontrol\images\pushed.ebn');
end;
Background[EXRIBBONLib_TLB.exRadioButtonState0] := $1000000;
Background[EXRIBBONLib_TLB.exRadioButtonState1] := $2000000;
with Items do
begin
with Add('',OleVariant(2),Null) do
begin
GroupPopup := EXRIBBONLib_TLB.exGroupPopup;
with Items do
begin
with Add('Radio 1',Null,OleVariant(1000)) do
begin
Radio := True;
RadioGroup := 100;
end;
with Add('Radio 2',Null,OleVariant(1001)) do
begin
Radio := True;
RadioGroup := 100;
end;
with Add('Radio 2',Null,OleVariant(1003)) do
begin
Radio := True;
RadioGroup := 100;
end;
Item[OleVariant(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 ribbon control (ebn)

with Ribbon1 do
begin
with VisualAppearance do
begin
Add(1,'c:\exontrol\images\normal.ebn');
Add(2,'c:\exontrol\images\pushed.ebn');
end;
Background[EXRIBBONLib_TLB.exCheckBoxState0] := $1000000;
Background[EXRIBBONLib_TLB.exCheckBoxState1] := $2000000;
with Items do
begin
with Add('',OleVariant(2),Null) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
with Items do
begin
with Add('Check 1',Null,Null) do
begin
Check := True;
Checked := True;
end;
Add('Check 2',Null,Null).Check := True;
end;
end;
end;
Refresh();
end
|
156
|
How can I change the visual appearance of the tooltips to be displayed in the ribbon control (ebn)

with Ribbon1 do
begin
with VisualAppearance do
begin
Add(1,'c:\exontrol\images\normal.ebn');
Add(2,'c:\exontrol\images\pushed.ebn');
end;
ToolTipDelay := 1;
Background[EXRIBBONLib_TLB.exToolTipAppearance] := $1000000;
Background[EXRIBBONLib_TLB.exToolTipForeColor] := $ff;
with Items do
begin
Add('Item',Null,Null).Tooltip := 'this is a bit of text to be shown when cursor hovers it';
Add('Item',Null,Null).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 ribbon control (ebn)

with Ribbon1 do
begin
with VisualAppearance do
begin
Add(1,'c:\exontrol\images\normal.ebn');
Add(2,'c:\exontrol\images\pushed.ebn');
end;
Background[EXRIBBONLib_TLB.BackgroundPartEnum($2)] := $1000000;
Background[EXRIBBONLib_TLB.BackgroundPartEnum($3)] := $2000000;
Background[EXRIBBONLib_TLB.exMenuSeparatorSelectButton] := $ff;
Background[EXRIBBONLib_TLB.exMenuSeparatorSelectButtonBottom] := $ff0000;
with Items do
begin
Padding := '4,4,4,4';
Add('Button',Null,Null).ShowAsButton := Integer(EXRIBBONLib_TLB.exShowAsButtonAutoSize) Or Integer(EXRIBBONLib_TLB.exShowAsButton);
with Add('',Null,Null) do
begin
Enabled := False;
ItemHeight := 4;
end;
with Add('Button',OleVariant(2),Null) do
begin
ShowAsButton := Integer(EXRIBBONLib_TLB.exShowAsSelectButtonBottom) Or Integer(EXRIBBONLib_TLB.exShowAsButtonAutoSize);
with Items do
begin
PopupAppearance := EXRIBBONLib_TLB.ShadowBorder;
Add('Item 1',Null,Null);
Add('Item 2',Null,Null);
Add('Item 3',Null,Null);
end;
end;
with Add('',Null,Null) do
begin
Enabled := False;
ItemHeight := 4;
end;
with Add('Button',OleVariant(2),Null) do
begin
ShowAsButton := Integer(EXRIBBONLib_TLB.exShowAsSelectButton) Or Integer(EXRIBBONLib_TLB.exShowAsButtonAutoSize);
with Items do
begin
PopupAppearance := EXRIBBONLib_TLB.ShadowBorder;
Add('Item 1',Null,Null);
Add('Item 2',Null,Null);
Add('Item 3',Null,Null);
end;
end;
end;
Refresh();
end
|
154
|
I've seen that the width of the tooltip is variable. Can I make it larger

with Ribbon1 do
begin
ToolTipWidth := 328;
with Items do
begin
Add('Item',Null,Null).Tooltip := 'this is a bit of text to be shown when cursor hovers it';
Add('Item',Null,Null).Tooltip := 'this is a bit of text to be shown when cursor hovers it';
end;
Refresh();
end
|
153
|
How do I disable showing the tooltip for all control (method 1)

with Ribbon1 do
begin
ToolTipDelay := 0;
with Items do
begin
Add('Item',Null,Null).Tooltip := 'this is a bit of text to be shown when cursor hovers it';
Add('Item',Null,Null).Tooltip := 'this is a bit of text to be shown when cursor hovers it';
end;
Refresh();
end
|
152
|
How do I let the tooltip being displayed longer

with Ribbon1 do
begin
ToolTipPopDelay := 10000;
with Items do
begin
Add('Item',Null,Null).Tooltip := 'this is a bit of text to be shown when cursor hovers it';
Add('Item',Null,Null).Tooltip := 'this is a bit of text to be shown when cursor hovers it';
end;
Refresh();
end
|
151
|
How do I show the tooltip quicker

with Ribbon1 do
begin
ToolTipDelay := 1;
with Items do
begin
Add('Item',Null,Null).Tooltip := 'this is a bit of text to be shown when cursor hovers it';
Add('Item',Null,Null).Tooltip := 'this is a bit of text to be shown when cursor hovers it';
end;
Refresh();
end
|
150
|
How can I get the version of the control I am running

with Ribbon1 do
begin
OutputDebugString( Version );
end
|
149
|
How can I align the picture on the control's background

with Ribbon1 do
begin
Picture := (IUnknown(Ribbon1.ExecuteTemplate('loadpicture(`c:\exontrol\images\card.png`)')) as _TLB.Object);
PictureDisplay := EXRIBBONLib_TLB.UpperRight;
with Items do
begin
Add('Item',Null,Null);
Add('Item',Null,Null);
end;
Refresh();
end
|
148
|
Is it possible to place a picture on the control's background

with Ribbon1 do
begin
Picture := (IUnknown(Ribbon1.ExecuteTemplate('loadpicture(`c:\exontrol\images\card.png`)')) as _TLB.Object);
with Items do
begin
Add('Item',Null,Null);
Add('Item',Null,Null);
end;
Refresh();
end
|
147
|
How can I display the item using a different font/size

with Ribbon1 do
begin
with Items do
begin
Add('',Null,Null).Caption := '<font ;14>This is a bit of text';
Add('<font ;6>This is a bit of text',Null,Null);
Add('',Null,Null).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 TForm1.Ribbon1Event(ASender: TObject; EventID : Integer);
begin
with Ribbon1 do
begin
OutputDebugString( 'Event' );
OutputDebugString( EventParam[-2] );
end
end;
with Ribbon1 do
begin
with Items do
begin
Add('Check',Null,Null).Check := True;
with Add('Slider',Null,Null) do
begin
AllowEdit := EXRIBBONLib_TLB.exItemEditSlider;
EditWidth := 128;
EditBorder := EXRIBBONLib_TLB.exEditBorderNone;
EditValue := OleVariant(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 TForm1.Ribbon1EditChange(ASender: TObject; Itm : IItem);
begin
with Ribbon1 do
begin
OutputDebugString( 'EditChange event on Itm object' );
end
end;
with Ribbon1 do
begin
with Items do
begin
with Add('Item',Null,Null) do
begin
AllowEdit := EXRIBBONLib_TLB.exItemEditSlider;
EditWidth := 128;
EditBorder := EXRIBBONLib_TLB.exEditBorderNone;
EditValue := OleVariant(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 TForm1.Ribbon1UncheckItem(ASender: TObject; Itm : IItem);
begin
with Ribbon1 do
begin
OutputDebugString( 'UncheckItem event on Itm object' );
end
end;
with Ribbon1 do
begin
with Items do
begin
Add('Item',Null,Null).Check := True;
Add('Item',Null,Null).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 TForm1.Ribbon1CheckItem(ASender: TObject; Itm : IItem);
begin
with Ribbon1 do
begin
OutputDebugString( 'CheckItem event on Itm object' );
end
end;
with Ribbon1 do
begin
with Items do
begin
Add('Item',Null,Null).Check := True;
Add('Item',Null,Null).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 TForm1.Ribbon1SelectItem(ASender: TObject; Itm : IItem);
begin
with Ribbon1 do
begin
OutputDebugString( 'SelectItem event on Itm object' );
end
end;
with Ribbon1 do
begin
with Items do
begin
Add('Item',Null,Null);
Add('Item',Null,Null);
end;
Refresh();
end
|
141
|
Does your control support padding for items

with Ribbon1 do
begin
PopupFlatAppearance := False;
with Items do
begin
Padding := '2,12,2,2';
with Add('',OleVariant(2),Null) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
with Items do
begin
Add('Item 1',Null,Null);
Add('Item 2',Null,Null);
Add('Item 3',Null,Null);
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 Ribbon1 do
begin
with Items do
begin
with Add('Popup',OleVariant(2),OleVariant(100)) do
begin
ShowPopupAlign := EXRIBBONLib_TLB.exShowPopupAlignDown;
ShowPopupArrow := False;
ShowPopupOffset := '-12,-48';
with Items do
begin
PopupAppearance := EXRIBBONLib_TLB.RaisedBorder;
Add('Item 1',Null,Null);
Add('Item 2',Null,Null);
Add('Item 3',Null,Null);
end;
end;
end;
Refresh();
end
|
139
|
How can I display the drop down popup to a different position ( method 1 )

with Ribbon1 do
begin
with Items do
begin
with Add('',OleVariant(2),Null) do
begin
GroupPopup := EXRIBBONLib_TLB.exGroupPopup;
with Items do
begin
with Add('Popup 1',OleVariant(2),OleVariant(100)) do
begin
ShowPopupAlign := EXRIBBONLib_TLB.exShowPopupAlignDown;
ShowPopupArrow := False;
with Items do
begin
PopupAppearance := EXRIBBONLib_TLB.RaisedBorder;
Add('Item 1',Null,Null);
Add('Item 2',Null,Null);
Add('Item 3',Null,Null);
end;
end;
with Add('Popup 2',OleVariant(2),OleVariant(200)) do
begin
ShowPopupAt := 100;
ShowPopupArrow := False;
with Items do
begin
PopupAppearance := EXRIBBONLib_TLB.RaisedBorder;
Add('Item 4',Null,Null);
Add('Item 5',Null,Null);
Add('Item 6',Null,Null);
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 Ribbon1 do
begin
with Items do
begin
with Add('Popup',OleVariant(2),Null) do
begin
ShowPopupAlign := EXRIBBONLib_TLB.exShowPopupAlignDown;
ShowPopupArrow := False;
with Items do
begin
PopupAppearance := EXRIBBONLib_TLB.FlatBorder;
Add('Item 1',Null,Null);
Add('Item 2',Null,Null);
Add('Item 3',Null,Null);
end;
end;
Add('',Null,Null).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 Ribbon1 do
begin
VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
with Items do
begin
with Add('',OleVariant(2),Null) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
with Items do
begin
HotBackColor := $1000000;
Padding := '4,8,4,8';
Add('Item 1',Null,Null);
Add('Item 2',Null,Null);
Add('Item 3',Null,Null);
end;
end;
Add('',Null,Null).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)

with Ribbon1 do
begin
with Items do
begin
with Add('',OleVariant(2),Null) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
with Items do
begin
HotBackColor := $ff;
Padding := '0,8,0,8';
Add('Item 1',Null,Null);
Add('Item 2',Null,Null);
Add('Item 3',Null,Null);
end;
end;
Add('',Null,Null).ToString := '[group=0x03][itemspad=0,8,0,8][itemsbghot=RGB(255,0,0)](Item 1,Item 2,Item 3)';
end;
Refresh();
end
|
135
|
How can I change the visual appearance for items (EBN)

with Ribbon1 do
begin
VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
with Items do
begin
with Add('',OleVariant(2),Null) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
with Items do
begin
BackColor := $1000000;
Padding := '4,8,4,8';
Add('Item 1',Null,Null);
Add('Item 2',Null,Null);
Add('Item 3',Null,Null);
end;
end;
Add('',Null,Null).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

with Ribbon1 do
begin
with Items do
begin
with Add('',OleVariant(2),Null) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
with Items do
begin
BackColor := $ff;
Padding := '0,8,0,8';
Add('Item 1',Null,Null);
Add('Item 2',Null,Null);
Add('Item 3',Null,Null);
end;
end;
Add('',Null,Null).ToString := '[group=0x03][itemspad=0,8,0,8][itemsbg=RGB(255,0,0)](Item 1,Item 2,Item 3)';
end;
Refresh();
end
|
133
|
Is it possible to hide the popup's arrow

with Ribbon1 do
begin
with Items do
begin
with Add('Popup',OleVariant(2),Null) do
begin
ShowPopupArrow := False;
with Items do
begin
PopupAppearance := EXRIBBONLib_TLB.ShadowBorder;
Add('Item 1',Null,Null);
Add('Item 2',Null,Null);
Add('Item 3',Null,Null);
end;
end;
Add('',Null,Null).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 Ribbon1 do
begin
PopupFlatImageWidth := 0;
with Items do
begin
with Add('Popup',OleVariant(2),Null).Items do
begin
Add('Item 1',Null,Null);
Add('Item 2',Null,Null);
Add('Item 3',Null,Null);
PopupAppearance := EXRIBBONLib_TLB.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 Ribbon1 do
begin
PopupFlatAppearance := False;
with Items do
begin
with Add('Popup',OleVariant(2),Null).Items do
begin
Add('Item 1',Null,Null);
Add('Item 2',Null,Null);
Add('Item 3',Null,Null);
PopupAppearance := EXRIBBONLib_TLB.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 TForm1.Ribbon1SelectItem(ASender: TObject; Itm : IItem);
begin
with Ribbon1 do
begin
OutputDebugString( 'Clicked' );
end
end;
with Ribbon1 do
begin
PopupFlatAppearance := False;
with Items do
begin
with Add('Button',OleVariant(2),Null) do
begin
ShowAsButton := Integer(EXRIBBONLib_TLB.exShowAsSelectButtonBottom) Or Integer(EXRIBBONLib_TLB.exShowAsButtonAutoSize);
with Items do
begin
PopupAppearance := EXRIBBONLib_TLB.ShadowBorder;
with Add('',OleVariant(2),Null) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
with Items do
begin
Add('Item 1',Null,Null);
Add('Item 2',Null,Null);
Add('Item 3',Null,Null);
end;
end;
end;
end;
Add('',Null,Null).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 TForm1.Ribbon1SelectItem(ASender: TObject; Itm : IItem);
begin
with Ribbon1 do
begin
OutputDebugString( 'Clicked' );
end
end;
with Ribbon1 do
begin
with Items do
begin
with Add('Button',OleVariant(2),Null) do
begin
ShowAsButton := Integer(EXRIBBONLib_TLB.exShowAsSelectButtonBottom) Or Integer(EXRIBBONLib_TLB.exShowAsButtonAutoSize);
with Items do
begin
PopupAppearance := EXRIBBONLib_TLB.ShadowBorder;
Add('Item 1',Null,Null);
Add('Item 2',Null,Null);
Add('Item 3',Null,Null);
end;
end;
Add('',Null,Null).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 TForm1.Ribbon1SelectItem(ASender: TObject; Itm : IItem);
begin
with Ribbon1 do
begin
OutputDebugString( 'Clicked' );
end
end;
with Ribbon1 do
begin
with Items do
begin
with Add('Button',OleVariant(2),Null) do
begin
ShowAsButton := Integer(EXRIBBONLib_TLB.exShowAsSelectButton) Or Integer(EXRIBBONLib_TLB.exShowAsButtonAutoSize);
with Items do
begin
PopupAppearance := EXRIBBONLib_TLB.ShadowBorder;
Add('Item 1',Null,Null);
Add('Item 2',Null,Null);
Add('Item 3',Null,Null);
end;
end;
Add('',Null,Null).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 TForm1.Ribbon1SelectItem(ASender: TObject; Itm : IItem);
begin
with Ribbon1 do
begin
OutputDebugString( 'Clicked' );
end
end;
with Ribbon1 do
begin
with Items do
begin
with Add('Button',OleVariant(2),Null) do
begin
ShowAsButton := Integer(EXRIBBONLib_TLB.exShowAsSelectButton) Or Integer(EXRIBBONLib_TLB.exShowAsButtonAutoSize);
with Items do
begin
PopupAppearance := EXRIBBONLib_TLB.ShadowBorder;
Add('Item 1',Null,Null);
Add('Item 2',Null,Null);
Add('Item 3',Null,Null);
end;
end;
end;
Refresh();
end
|
126
|
How can I add a button (push button)

// SelectItem event - Occurs when the user selects the item.
procedure TForm1.Ribbon1SelectItem(ASender: TObject; Itm : IItem);
begin
with Ribbon1 do
begin
OutputDebugString( 'Clicked' );
end
end;
with Ribbon1 do
begin
with Items do
begin
Add('Button',Null,Null).ShowAsButton := Integer(EXRIBBONLib_TLB.exShowAsButtonAutoSize) Or Integer(EXRIBBONLib_TLB.exShowAsButton);
Add('',Null,Null).ToString := 'Button[button=0x03]';
end;
Refresh();
end
|
125
|
How can I display grouping items with no frame arround

with Ribbon1 do
begin
with Items do
begin
with Add('Horizontal Group',OleVariant(2),Null) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exGroupPopupFrameThickBox) Or Integer(EXRIBBONLib_TLB.exGroupPopupFrameSolidBox) Or Integer(EXRIBBONLib_TLB.exGroupPopupEqualHeight) Or Integer(EXRIBBONLib_TLB.exGroupPopupEqualWidth) Or Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
with Items do
begin
Add('A',Null,Null).Alignment := EXRIBBONLib_TLB.exCenter;
Add('BC',Null,Null).Alignment := EXRIBBONLib_TLB.exCenter;
Add('D',Null,Null).Alignment := EXRIBBONLib_TLB.exCenter;
end;
end;
Add('',Null,Null).ToString := 'Horizontal Group[group=243](A[id=20][align=1],BC[id=30][align=1],D[id=40][align=1])';
end;
Refresh();
end
|
124
|
How can I display grouping items of the same size/width/height

with Ribbon1 do
begin
with Items do
begin
with Add('Horizontal Group',OleVariant(2),Null) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exGroupPopupFrameThickBox) Or Integer(EXRIBBONLib_TLB.exGroupPopupFrameSolidBox) Or Integer(EXRIBBONLib_TLB.exGroupPopupEqualHeight) Or Integer(EXRIBBONLib_TLB.exGroupPopupEqualWidth) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
with Items do
begin
Add('A',Null,Null).Alignment := EXRIBBONLib_TLB.exCenter;
Add('BC',Null,Null).Alignment := EXRIBBONLib_TLB.exCenter;
Add('D',Null,Null).Alignment := EXRIBBONLib_TLB.exCenter;
end;
end;
Add('',Null,Null).ToString := 'Horizontal Group[group=0xF1](A[id=20][align=1],BC[id=30][align=1],D[id=40][align=1])';
end;
Refresh();
end
|
123
|
Is it possible to display a ticker frame arround grouping items

with Ribbon1 do
begin
with Items do
begin
with Add('Horizontal Group',OleVariant(2),Null) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exGroupPopupFrameThickBox) Or Integer(EXRIBBONLib_TLB.exGroupPopupFrameSolidBox) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
with Items do
begin
Add('Item 1',Null,Null);
Add('Item 2',Null,Null);
Add('Item 3',Null,Null);
end;
end;
Add('',Null,Null).ToString := 'Horizontal Group[group=193](Item 1[id=20],Item 2[id=30],Item 3[id=40])';
end;
Refresh();
end
|
122
|
How do I display items horizontally arranged

with Ribbon1 do
begin
with Items do
begin
with Add('Horizontal Group',OleVariant(2),Null) do
begin
GroupPopup := EXRIBBONLib_TLB.exGroupPopup;
with Items do
begin
Add('Item 1',Null,Null);
Add('Item 2',Null,Null);
Add('Item 3',Null,Null);
end;
end;
Add('',Null,Null).ToString := 'Horizontal Group[group=0x01](Item 1[id=20],Item 2[id=30],Item 3[id=40])';
end;
Refresh();
end
|
121
|
Is it possible to expand an item when it is clicked (tree,group,vertical)

with Ribbon1 do
begin
with Items do
begin
with Add('Expand',OleVariant(2),Null) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exGroupPopupVertical) Or Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
Check := True;
ShowPopupOnChecked := True;
with Items do
begin
Padding := '22,0,0,0';
Add('Radio 1',Null,Null).Radio := True;
Add('Radio 2',Null,Null).Radio := True;
with Add('Radio 3',Null,Null) do
begin
Radio := True;
Checked := True;
end;
end;
Checked := True;
end;
Add('',Null,Null).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 Ribbon1 do
begin
with Items do
begin
with Add('Expand',OleVariant(2),Null) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exGroupPopupVertical) Or Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
Check := True;
ShowPopupOnChecked := True;
with Items do
begin
Padding := '22,0,0,0';
Add('Radio 1',Null,Null).Radio := True;
Add('Radio 2',Null,Null).Radio := True;
with Add('Radio 3',Null,Null) 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 Ribbon1 do
begin
with Items do
begin
with Add('Expand',OleVariant(2),Null) do
begin
GroupPopup := EXRIBBONLib_TLB.exGroupPopup;
ItemHeight := 24;
Check := True;
ShowPopupOnChecked := True;
with Items do
begin
Add('Item 1',Null,Null);
Add('Item 2',Null,Null);
Add('Item 3',Null,Null);
PopupAppearance := EXRIBBONLib_TLB.ShadowBorder;
end;
end;
end;
Refresh();
end
|
118
|
Is it possible to extend an item when it is clicked

with Ribbon1 do
begin
with Items do
begin
with Add('Expand',OleVariant(2),Null) do
begin
Check := True;
ShowPopupOnChecked := True;
with Items do
begin
Add('Item 1',Null,Null);
Add('Item 2',Null,Null);
Add('Item 3',Null,Null);
PopupAppearance := EXRIBBONLib_TLB.ShadowBorder;
end;
end;
end;
Refresh();
end
|
117
|
Does your control implement padding for item

with Ribbon1 do
begin
with Items do
begin
BackColor := $fafafa;
Add('Item',Null,Null).Padding := '4,4,4,4';
Add('',Null,Null).ToString := 'Item[pad=4,4,4,4]';
end;
Refresh();
end
|
116
|
How can I add an empty item for a horizontal group

with Ribbon1 do
begin
with Items do
begin
with Add('',OleVariant(2),Null) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
with Items do
begin
Add('Item 1',Null,Null);
with Add('',OleVariant(2),Null) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exGroupPopupCenter) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
ItemHeight := 12;
with Items.Add('',Null,Null) do
begin
Enabled := False;
ItemHeight := 8;
CaptionWidth := 8;
end;
end;
Add('Item 2',Null,Null);
end;
end;
end;
Refresh();
end
|
115
|
How can I add an empty/separator item

with Ribbon1 do
begin
with Items do
begin
Add('Item',Null,Null);
with Add('',Null,Null) do
begin
Enabled := False;
ItemHeight := 2;
CaptionWidth := 8;
BackColor := $f0f0f0;
end;
Add('Item',Null,Null);
end;
Refresh();
end
|
114
|
How can I add an empty/frame item

with Ribbon1 do
begin
with Items do
begin
Add('Item 1',Null,Null);
with Add('',OleVariant(2),Null) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exGroupPopupCenter) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
ItemHeight := 12;
with Items.Add('',Null,Null) do
begin
Enabled := False;
ItemHeight := 8;
CaptionWidth := 8;
end;
end;
Add('Item 2',Null,Null);
end;
Refresh();
end
|
113
|
How can I specify the height of the item

with Ribbon1 do
begin
with Items do
begin
BackColor := $fafafa;
Add('Item',Null,Null).ItemHeight := 64;
Add('',Null,Null).ToString := 'Item[height=64]';
end;
Refresh();
end
|
112
|
How can I specify the width of the item

with Ribbon1 do
begin
with Items do
begin
BackColor := $fafafa;
Add('Item',Null,Null).CaptionWidth := 128;
Add('',Null,Null).ToString := 'Item[captionwidth=128]';
end;
Refresh();
end
|
111
|
How do I align the item

with Ribbon1 do
begin
with Items do
begin
BackColor := $fafafa;
Add('Item',Null,Null);
with Add('Item',Null,Null) do
begin
Alignment := EXRIBBONLib_TLB.exCenter;
CaptionWidth := 128;
end;
with Add('Item',Null,Null) do
begin
Alignment := EXRIBBONLib_TLB.exRight;
CaptionWidth := 128;
end;
Add('',Null,Null).ToString := 'Item[align=1]';
end;
Refresh();
end
|
110
|
How can I underline the item

with Ribbon1 do
begin
with Items do
begin
Add('Item',Null,Null).Underline := True;
Add('<u>Item</u>',Null,Null);
Add('',Null,Null).ToString := 'Item[und]';
end;
Refresh();
end
|
109
|
How can I show the item as strikeout

with Ribbon1 do
begin
with Items do
begin
Add('Item',Null,Null).Strikeout := True;
Add('<s>Item</s>',Null,Null);
Add('',Null,Null).ToString := 'Item[stk]';
end;
Refresh();
end
|
108
|
How can I show the item in italics

with Ribbon1 do
begin
with Items do
begin
Add('Item',Null,Null).Italic := True;
Add('<i>Item</i>',Null,Null);
Add('',Null,Null).ToString := 'Item[itl]';
end;
Refresh();
end
|
107
|
How can I show the item in bold

with Ribbon1 do
begin
with Items do
begin
Add('Item',Null,Null).Bold := True;
Add('<b>Item</b>',Null,Null);
Add('',Null,Null).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 Ribbon1 do
begin
with Items do
begin
Add('Item',Null,Null).ShowAsDisabled := True;
Add('',Null,Null).ToString := 'Item[showdis=1]';
end;
Refresh();
end
|
105
|
How can I enable or disable an item

with Ribbon1 do
begin
with Items do
begin
Add('Item',Null,Null).Enabled := False;
Add('',Null,Null).ToString := 'Item[dis]';
end;
Refresh();
end
|
104
|
How can I add a separator item

with Ribbon1 do
begin
with Items do
begin
Add('Item',Null,Null).CaptionWidth := 128;
Add('<font ;6>separator',OleVariant(1),Null);
Add('Item',Null,Null).CaptionWidth := 128;
Add('',Null,Null).ToString := '<font ;6>separator[sep]';
end;
Refresh();
end
|
103
|
How can I change the item's foreground color

with Ribbon1 do
begin
with Items do
begin
Add('Item',Null,Null).ForeColor := $ff;
Add('<fgcolor FF0000>Item',Null,Null);
Add('',Null,Null).ToString := 'Item[fg=RGB(255,0,0)]';
end;
Refresh();
end
|
102
|
How can I change the item's background/backcolor, when the item is selected/checked (radio-buttons)

with Ribbon1 do
begin
with Items do
begin
with Add('',OleVariant(2),Null) do
begin
GroupPopup := Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
with Items do
begin
with Add('Radio 1',Null,Null) do
begin
HotBackColor := $ffffff;
SelBackColor := $ff;
SelHotBackColor := $ff;
ShowCheckedAsSelected := EXRIBBONLib_TLB.exDisplayItemHighlight;
Radio := True;
RadioGroup := 100;
Checked := True;
end;
with Add('Radio 2',Null,Null) do
begin
HotBackColor := $ffffff;
SelBackColor := $ff;
SelHotBackColor := $ff;
ShowCheckedAsSelected := EXRIBBONLib_TLB.exDisplayItemHighlight;
Radio := True;
RadioGroup := 100;
end;
Add('',Null,Null).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 Ribbon1 do
begin
with Items do
begin
with Add('Check 1',Null,Null) do
begin
HotBackColor := $ffffff;
SelBackColor := $ff;
SelHotBackColor := $ff;
ShowCheckedAsSelected := EXRIBBONLib_TLB.exDisplayItemHighlight;
Checked := True;
Check := True;
end;
Add('',Null,Null).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
|