185 |
Event event
// Event event - Notifies the application once the control fires an event. procedure TWinForm1.AxExContextMenu1_Event(sender: System.Object; e: AxEXCONTEXTMENULib._IExContextMenuEvents_EventEvent); begin with AxExContextMenu1 do begin OutputDebugString( get_EventParam(-2) ); end end; AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin Images('gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql' + 'Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0' + 'ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN' + 'AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA='); Items.ToString := 'Popup 1(Check 1[typ=1],Check 2[typ=1],Check 3[typ=1],Item 1),Expand[img=2][typ=1][chk=1][spchk=-1][group=0x0103](Check 4[typ=1],' + 'Check 5[typ=1],Check 6[typ=1][chk=1],Item 2)'; Select(Nil,Nil,Nil); end |
184 |
UncheckItem event
// UncheckItem event - Occurs when the user unchecks the item. procedure TWinForm1.AxExContextMenu1_UncheckItem(sender: System.Object; e: AxEXCONTEXTMENULib._IExContextMenuEvents_UncheckItemEvent); begin with AxExContextMenu1 do begin OutputDebugString( e.itm ); end end; AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin Images('gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql' + 'Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0' + 'ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN' + 'AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA='); Items.ToString := 'Popup 1(Check 1[typ=1],Check 2[typ=1],Check 3[typ=1],Item 1),Expand[img=2][typ=1][chk=1][spchk=-1][group=0x0103](Check 4[typ=1],' + 'Check 5[typ=1],Check 6[typ=1][chk=1],Item 2)'; Select(Nil,Nil,Nil); end |
183 |
CheckItem event
// CheckItem event - Occurs when the user checks the item. procedure TWinForm1.AxExContextMenu1_CheckItem(sender: System.Object; e: AxEXCONTEXTMENULib._IExContextMenuEvents_CheckItemEvent); begin with AxExContextMenu1 do begin OutputDebugString( e.itm ); end end; AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin Images('gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql' + 'Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0' + 'ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN' + 'AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA='); Items.ToString := 'Popup 1(Check 1[typ=1],Check 2[typ=1],Check 3[typ=1],Item 1),Expand[img=2][typ=1][chk=1][spchk=-1][group=0x0103](Check 4[typ=1],' + 'Check 5[typ=1],Check 6[typ=1][chk=1],Item 2)'; Select(Nil,Nil,Nil); end |
182 |
SelectItem event
// SelectItem event - Occurs when the user selects the item. procedure TWinForm1.AxExContextMenu1_SelectItem(sender: System.Object; e: AxEXCONTEXTMENULib._IExContextMenuEvents_SelectItemEvent); begin with AxExContextMenu1 do begin OutputDebugString( e.itm ); end end; AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin Images('gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql' + 'Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0' + 'ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN' + 'AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA='); Items.ToString := 'Popup 1(Check 1[typ=1],Check 2[typ=1],Check 3[typ=1],Item 1),Expand[img=2][typ=1][chk=1][spchk=-1][group=0x0103](Check 4[typ=1],' + 'Check 5[typ=1],Check 6[typ=1][chk=1],Item 2)'; Select(Nil,Nil,Nil); end |
181 |
ImageSize property on 32 (specifies the size of control' icons/images/check-boxes/radio-buttons)
AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin ImageSize := 32; Font.Size := 16; 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+Mwpr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TwYnYPoPmQCQGEKEJkEkFg9gGY44BoRoSmSSQ2EKEggHgRhShSZRJFYVoVm' + 'WCRmFKFAgGOTheheZgJgYYoYmYSYWGaF4lkMMJ0hqZpJjYbobmcCZGHKHJmjmJh0h2Z4JmYcIaE8WZ2H6H5oAoBoCiCaBKBYfdjGoJoKiKaJKDaDojmkChGgmIgpCoVo' + 'WiWaJZiSd4mmmSh2h6J5qAqBoiiiaY5iSeIpmqComiqKpqkqNouiuah6hqMIsmsSpWiuGhP1kOoumuSp2j6L5sAsBo54gKwWkaMZsgsJpKjKbJLDaRYxYWRpSjSbIZiS' + 'e41m2CxmlqNptksdpejebR5iSfI4m4S4W16boLiaao6m5fJ9jubwLkaco8m8S5WnaPZunuOp4j6b5Lnac4SA0PAGlgP4wEwFwGkGcIMCcCpCnCCxiA8NYAAmMJfkSbhF' + 'CcFpFnGDBnBqRpUhuEwTDeZ5lHCfw6HIQxLCaAxygyJwqgGcATE4FA6hWY4tjEAAQBAgIA=='); end; (GetOcx() as EXCONTEXTMENULib.ExContextMenu).SelBackColor := $4000000; SelForeColor := Color.FromArgb(0,0,1); set_Background(EXCONTEXTMENULib.BackgroundPartEnum.exCheckBoxState0,$1000000); set_Background(EXCONTEXTMENULib.BackgroundPartEnum.exCheckBoxState1,$2000000); set_Background(EXCONTEXTMENULib.BackgroundPartEnum.exCheckBoxState2,$3000000); with Items do begin with Add('Expand',TObject(2),Nil) do begin Image := 0; GroupPopup := Integer(EXCONTEXTMENULib.GroupPopupEnum.exGroupPopupVertical) Or Integer(EXCONTEXTMENULib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXCONTEXTMENULib.GroupPopupEnum.exGroupPopup); Check := True; ShowPopupOnChecked := True; with Items do begin Padding := '22,0,0,0'; Add('Check 1',Nil,Nil).Check := True; Add('Check 2',Nil,Nil).Check := True; with Add('Check 3',Nil,Nil) do begin Check := True; Checked := True; end; end; Checked := True; end; Add('',Nil,Nil).ToString := 'Expand[typ=1][img=2][chk=1][spchk=-1][group=0x0103][itemspad=22,0,0,0](Check 1[id=20][typ=1],Check 2[id=30][typ=1],Check 3[id=40' + '][typ=1][chk=1])'; end; Select(Nil,Nil,Nil); end |
180 |
ImageSize property on 16 (default) (specifies the size of control' icons/images/check-boxes/radio-buttons)
AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin ImageSize := 16; Images('gBJJgBAIDAAEg4ACEKAD/hz/EMNh8TIRNGwAjEZAEXjAojJAjMLjABAAgjUYkUnlUrlktl0vmExmUzmk1m03nE5nU7nkrQCAntBoVDolFo1HoM/ADAplLptImdMYFOqd' + 'SqlXq1QrVbrlGpVWsFNrNdnNjsk7pQAtNroFnt0sh8Yr9iulTuNxs1Eu8OiT/vsnsNVutXlk/oGGtVKxGLxWNtsZtN8iUYuNvy0Zvd+xNYwdwvl4p870GCqc8vOeuVtt' + 'mp1knyOayWVy+WzN/ze1wOElenm+12WUz/Bv2/3UyyWrzeutux2GSyGP2dQ33C1ur3GD3M4zUNzHdlWjq/E3nGzVpjWv4HA7fRy/Tv2IrN8rPW6nZ3ve7mUlfu20Z8ac' + 'vQyb+vY9jasYoDwMm+LytVBDqKG3z8O3Cb8P+mkAuY9cCQ2uL4KaxDKvkp8RNLEjqugnrwQo/UWPzFyeQw5sNLZFENrI4kOqU66pw8uzmOKvTqNqjULJvGL1JO48GtTG' + 'sbLdEL3scxLlyiw8dQeoUVxdLTtyKmUjwGlslRPJsnK1HbAKbKCrsQo8uQk/CeP44iaR/ATnTNPLvyxPU+z9P9AUDQVBowiofJXQ6Oo+kKMpIkjztE4TKn4P6JowfgPn' + 'wD5/nAjB8AOeAPo0eAA1IAFH07UhAIMpYAVIYFHqBUhwVjV1S1EtQAHxW65V0AZwAeuQAnwB5gAPYViEDVhwAHTQBkCjB4gOhwDmCyhH0sACAg=='); with VisualAppearance do begin Add(4,'gBFLBCJwBAEHhEJA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lHCfw6HIQxLCaAxygyJwqgGcATE4FA6hWY4tjEAAQBAgIA=='); end; (GetOcx() as EXCONTEXTMENULib.ExContextMenu).SelBackColor := $4000000; SelForeColor := Color.FromArgb(0,0,1); with Items do begin with Add('Expand',TObject(2),Nil) do begin Image := 0; GroupPopup := Integer(EXCONTEXTMENULib.GroupPopupEnum.exGroupPopupVertical) Or Integer(EXCONTEXTMENULib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXCONTEXTMENULib.GroupPopupEnum.exGroupPopup); Check := True; ShowPopupOnChecked := True; with Items do begin Padding := '22,0,0,0'; Add('Check 1',Nil,Nil).Check := True; Add('Check 2',Nil,Nil).Check := True; with Add('Check 3',Nil,Nil) do begin Check := True; Checked := True; end; end; Checked := True; end; Add('',Nil,Nil).ToString := 'Expand[typ=1][img=2][chk=1][spchk=-1][group=0x0103][itemspad=22,0,0,0](Check 1[id=20][typ=1],Check 2[id=30][typ=1],Check 3[id=40' + '][typ=1][chk=1])'; end; Select(Nil,Nil,Nil); end |
179 |
How do I get the item's value without the place holders (exclude mask-characters)
// EditChange event - Occurs when the user alters the item's text box field. procedure TWinForm1.AxExContextMenu1_EditChange(sender: System.Object; e: AxEXCONTEXTMENULib._IExContextMenuEvents_EditChangeEvent); begin with AxExContextMenu1 do begin OutputDebugString( e.itm ); end end; AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin ToString := 'Mask[edit=98][editwidth=-128][edittype=2][mask=00000],Mask[edit=98][editwidth=-128][edittype=2][mask=00000;1]'; Select(Nil,Nil,Nil); end |
178 |
Is it possible to insert items at a specified position during runtime, without rebuilding the entire item which hosts the items
|
177 |
Is it possible to have a popup on a radio button when it is checked
AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin ToString := '[group=0x03][id=0](Link[id=10][typ=2][grp=100][chk=1],Move To[id=20][typ=2][grp=100][spchk][arrow=0]())'; with Items.item[TObject(20)] do begin Items.Add('Item A',TObject(0),TObject(1000)); Items.Add('Item B',TObject(0),TObject(1001)); Items.Add('Item C',TObject(0),TObject(1002)); end; OutputDebugString( Select(Nil,Nil,Nil) ); end |
176 |
How can I control the height of the control, so no scroll is required to view all items
AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin Font.Size := 6; MenuAppearance := EXCONTEXTMENULib.MenuAppearanceEnum.exMenuNormal; with Items do begin OutputDebugString( VisibleItemsCount ); VisibleItemsCount := 255; ToString := '1,2,3,4,5,6,7,8,9,10,11,12,13'; end; Select(Nil,Nil,Nil); end |
175 |
How do I specify the control's height (method 3)
AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin with Items do begin Add('Item 1',Nil,Nil).ItemHeight := 24; Add('Item 2',Nil,Nil).ItemHeight := 24; Add('Item 3',Nil,Nil).ItemHeight := 24; end; Select(Nil,Nil,Nil); end |
174 |
How do I specify the control's height (method 2)
AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin with Items do begin Add('Item 1',Nil,Nil).Padding := '0,4,0,4'; Add('Item 2',Nil,Nil).Padding := '0,4,0,4'; Add('Item 3',Nil,Nil).Padding := '0,4,0,4'; end; Select(Nil,Nil,Nil); end |
173 |
How do I specify the control's height (method 1)
|
172 |
How can I change the visual appearance of the progress bar
|
171 |
How can I change the progress's color
|
170 |
I am using the Item.Visible property on False to hide the item, but the editor is still visible
// CheckItem event - Occurs when the user checks the item. procedure TWinForm1.AxExContextMenu1_CheckItem(sender: System.Object; e: AxEXCONTEXTMENULib._IExContextMenuEvents_CheckItemEvent); begin with AxExContextMenu1 do begin with Items.item[TObject(1000)] do begin Visible := True; AllowEdit := Integer(EXCONTEXTMENULib.AllowEditEnum.exItemEditReadOnly) Or Integer(EXCONTEXTMENULib.AllowEditEnum.exItemEditProgress); end; Select(Nil,Nil,Nil); end end; // UncheckItem event - Occurs when the user unchecks the item. procedure TWinForm1.AxExContextMenu1_UncheckItem(sender: System.Object; e: AxEXCONTEXTMENULib._IExContextMenuEvents_UncheckItemEvent); begin with AxExContextMenu1 do begin with Items.item[TObject(1000)] do begin Visible := False; AllowEdit := EXCONTEXTMENULib.AllowEditEnum.exItemDisableEdit; end; Select(Nil,Nil,Nil); end end; AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin with Items do begin with Add('',TObject(2),Nil) do begin with Items do begin Add('Visible',Nil,Nil); with Add('',Nil,Nil) do begin Check := True; Checked := True; end; with Add('Item 2',Nil,TObject(1000)) do begin ItemHeight := 18; Caption := 'Percent'; AllowEdit := Integer(EXCONTEXTMENULib.AllowEditEnum.exItemEditReadOnly) Or Integer(EXCONTEXTMENULib.AllowEditEnum.exItemEditProgress); EditValue := TObject(50); Visible := True; end; Add('Visible',Nil,Nil); end; GroupPopup := Integer(EXCONTEXTMENULib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXCONTEXTMENULib.GroupPopupEnum.exGroupPopup); end; end; Select(Nil,Nil,Nil); end |
169 |
How can I change the color of a disabled item
AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin with Items do begin with Add('Disabled',TObject(2),TObject(0)) do begin ForeColor := $ff; Items.Add('',Nil,Nil); GroupPopup := Integer(EXCONTEXTMENULib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXCONTEXTMENULib.GroupPopupEnum.exGroupPopup); end; Add('Disabled',Nil,Nil).Enabled := False; end; Select(Nil,Nil,Nil); end |
168 |
Microsoft Windows 8.1 - Ribbon Like
AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin MenuAppearance := EXCONTEXTMENULib.MenuAppearanceEnum.exMenuNormal; with Items do begin ToString := '[id=0][group=0x03](),[id=-20][bg=0x01000000][group=0x03][itemspad=4,4,4,4]([id=9000])'; with item[TObject(0)].Items do begin Add('',TObject(0),TObject(0)).Padding := '8,0,0,0'; var_item3 := Add('New Page',Nil,Nil); with var_item3 do begin ToString := '[id=0][typ=2][chk=1][spchk=-1][show=1][grp=10][bghot=0x12000000][bgsel=0x11000000][bgselhot=0x14000000][group=0x03][tab=9000][pa' + 'd=4,0,4,0][popupoffset=-4,-1]([id=0][group=0x03])'; ID := 200; Caption := 'Page1'; var_item := Items.Add('New Group',Nil,Nil); with var_item do begin ToString := '[id=0][group=0x03][itemspad=4,4,4,18][itemsbg=0x02000000][itemsbghot=0x04000000]()'; Caption := '<b><font ;14>A'; with Items do begin BackgroundExt := 'bottom[16,text=`<fgcolor A0A0A0><font ;8>Horizontal`,align=0x11]'; with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXCONTEXTMENULib.GroupPopupEnum.exGroupPopupEqualWidth) Or Integer(EXCONTEXTMENULib.GroupPopupEnum.exGroupPopup); Caption := ''; with Items do begin with Add('R1',Nil,Nil) do begin RadioGroup := 100; Radio := True; ShowCheckedAsSelected := EXCONTEXTMENULib.ShowCheckedAsSelectedEnum.exDisplayItemHighlight; Checked := False; end; with Add('R2',Nil,Nil) do begin RadioGroup := 100; Radio := True; ShowCheckedAsSelected := EXCONTEXTMENULib.ShowCheckedAsSelectedEnum.exDisplayItemHighlight; Checked := True; end; with Add('R3',Nil,Nil) do begin RadioGroup := 100; Radio := True; ShowCheckedAsSelected := EXCONTEXTMENULib.ShowCheckedAsSelectedEnum.exDisplayItemHighlight; Checked := False; end; end; end; end; end; var_item1 := Items.Add('New Group',Nil,Nil); with var_item1 do begin ToString := '[id=0][group=0x03][itemspad=4,4,4,18][itemsbg=0x02000000][itemsbghot=0x04000000]()'; Caption := '<b><font ;14>B'; with Items do begin BackgroundExt := 'bottom[16,text=`<fgcolor A0A0A0><font ;8>Vertical`,align=0x11]'; with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXCONTEXTMENULib.GroupPopupEnum.exGroupPopupVertical) Or Integer(EXCONTEXTMENULib.GroupPopupEnum.exGroupPopupEqualHeight) Or Integer(EXCONTEXTMENULib.GroupPopupEnum.exGroupPopup); Caption := ''; with Items do begin with Add('C1',Nil,Nil) do begin Check := True; Checked := True; end; with Add('C2',Nil,Nil) do begin Check := True; Checked := False; end; with Add('C3',Nil,Nil) do begin Check := True; Checked := True; end; end; end; end; end; Items.Add('',TObject(0),TObject(0)).Padding := '4,0,0,0'; var_item2 := Items.Add('New Group',Nil,Nil); with var_item2 do begin ToString := '[id=0][group=0x03][itemspad=4,4,4,18][itemsbg=0x02000000][itemsbghot=0x04000000]()'; Caption := ''; with Items do begin BackgroundExt := 'bottom[16,text=`<fgcolor A0A0A0><font ;8>Mixt`,align=0x11]'; with Add('',TObject(0),Nil) do begin AllowEdit := Integer(EXCONTEXTMENULib.AllowEditEnum.exItemEditVertical) Or Integer(EXCONTEXTMENULib.AllowEditEnum.exItemEditSlider); ItemHeight := 76; EditBorder := EXCONTEXTMENULib.EditBorderEnum.exEditBorderNone; EditValue := TObject(25); end; with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXCONTEXTMENULib.GroupPopupEnum.exGroupPopupVertical) Or Integer(EXCONTEXTMENULib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXCONTEXTMENULib.GroupPopupEnum.exGroupPopup); Caption := ''; with Items do begin with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXCONTEXTMENULib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXCONTEXTMENULib.GroupPopupEnum.exGroupPopup); with Items do begin with Add('Button1',TObject(2),Nil) do begin ShowAsButton := Integer(EXCONTEXTMENULib.ShowAsButtonEnum.exShowAsSelectButtonBottom) Or Integer(EXCONTEXTMENULib.ShowAsButtonEnum.exShowAsButtonAutoSize); with Items do begin Add('Item 1',Nil,Nil); Add('Item 2',Nil,Nil); Add('Item 3',Nil,Nil); end; end; Add('',TObject(0),TObject(0)).Padding := '4,0,0,0'; with Add('Button2',TObject(2),Nil) do begin ShowAsButton := Integer(EXCONTEXTMENULib.ShowAsButtonEnum.exShowAsSelectButtonBottom) Or Integer(EXCONTEXTMENULib.ShowAsButtonEnum.exShowAsButtonAutoSize); with Items do begin Add('Item 4',Nil,Nil); Add('Item 5',Nil,Nil); Add('Item 6',Nil,Nil); end; end; end; end; with Add('Popup',TObject(2),Nil) do begin Alignment := EXCONTEXTMENULib.AlignmentEnum.exCenter; with Items do begin Add('Item 7',Nil,Nil).Check := True; Add('Item 8',Nil,Nil); with Add('Item 9',TObject(2),Nil).Items do begin Add('Item 10',Nil,Nil); Add('Item 11',Nil,Nil); Add('Item 12',Nil,Nil); end; end; end; end; end; end; end; end; var_item4 := Add('New Page',Nil,Nil); with var_item4 do begin ToString := '[id=0][typ=2][chk=0][spchk=-1][show=1][grp=10][bghot=0x12000000][bgsel=0x11000000][bgselhot=0x14000000][group=0x03][tab=9000][pa' + 'd=4,0,4,0][popupoffset=-4,-1]([id=0][group=0x03])'; ID := 300; Caption := 'Page2'; with Items do begin with Add('S1',Nil,Nil) do begin ItemHeight := 88; AllowEdit := Integer(EXCONTEXTMENULib.AllowEditEnum.exItemEditVertical) Or Integer(EXCONTEXTMENULib.AllowEditEnum.exItemEditSpin) Or Integer(EXCONTEXTMENULib.AllowEditEnum.exItemEditProgress); EditValue := TObject(25); end; with Add('S2',Nil,Nil) do begin ItemHeight := 88; AllowEdit := Integer(EXCONTEXTMENULib.AllowEditEnum.exItemEditVertical) Or Integer(EXCONTEXTMENULib.AllowEditEnum.exItemEditSpin) Or Integer(EXCONTEXTMENULib.AllowEditEnum.exItemEditProgress); EditValue := TObject(50); end; with Add('S3',Nil,Nil) do begin ItemHeight := 88; AllowEdit := Integer(EXCONTEXTMENULib.AllowEditEnum.exItemEditVertical) Or Integer(EXCONTEXTMENULib.AllowEditEnum.exItemEditSpin) Or Integer(EXCONTEXTMENULib.AllowEditEnum.exItemEditProgress); EditValue := TObject(75); end; end; end; Add('',TObject(0),TObject(0)).Padding := '8,0,0,0'; end; end; with VisualAppearance do begin Add(1,'C:/Program Files/Exontrol/ExContextMenu/Sample/EBN/MSFlat-Ribbon/msfr_background.ebn'); Add(2,'C:/Program Files/Exontrol/ExContextMenu/Sample/EBN/MSFlat-Ribbon/msfr_groupt.ebn'); Add(12,'C:/Program Files/Exontrol/ExContextMenu/Sample/EBN/MSFlat-Ribbon/msfr_hot.ebn'); Add(14,'C:/Program Files/Exontrol/ExContextMenu/Sample/EBN/MSFlat-Ribbon/msfr_select.ebn'); Add(17,'C:/Program Files/Exontrol/ExContextMenu/Sample/EBN/MSFlat-Ribbon/msfr_tab.ebn'); Add(18,'C:/Program Files/Exontrol/ExContextMenu/Sample/EBN/MSFlat-Ribbon/msfr_tabhot.ebn'); Add(32,'C:/Program Files/Exontrol/ExContextMenu/Sample/EBN/MSFlat-Ribbon/msfr_check0.ebn'); Add(33,'C:/Program Files/Exontrol/ExContextMenu/Sample/EBN/MSFlat-Ribbon/msfr_check1.ebn'); Add(34,'C:/Program Files/Exontrol/ExContextMenu/Sample/EBN/MSFlat-Ribbon/msfr_buttonu.ebn'); Add(35,'C:/Program Files/Exontrol/ExContextMenu/Sample/EBN/MSFlat-Ribbon/msfr_buttond.ebn'); end; Appearance := EXCONTEXTMENULib.MenuBorderEnum($1000000); set_Background(EXCONTEXTMENULib.BackgroundPartEnum.exToolTipAppearance,Appearance); (GetOcx() as EXCONTEXTMENULib.ExContextMenu).SelBackColor := $e000000; set_Background(EXCONTEXTMENULib.BackgroundPartEnum.exMenuHotBackColor,$c000000); set_Background(EXCONTEXTMENULib.BackgroundPartEnum.exMenuSelHotBackColor,$23000000); set_Background(EXCONTEXTMENULib.BackgroundPartEnum($2),$22000000); set_Background(EXCONTEXTMENULib.BackgroundPartEnum($3),$23000000); set_Background(EXCONTEXTMENULib.BackgroundPartEnum.exCheckBoxState0,$20000000); set_Background(EXCONTEXTMENULib.BackgroundPartEnum.exCheckBoxState1,$21000000); Select(Nil,Nil,Nil); end |
167 |
Microsoft Paint - Ribbon Like
AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin MenuAppearance := EXCONTEXTMENULib.MenuAppearanceEnum.exMenuNormal; with Items do begin ToString := '[id=0][group=0x03](),[id=-20][bg=0x01000000][group=0x03][itemspad=4,4,4,4]([id=9000])'; with item[TObject(0)].Items do begin Add('',TObject(0),TObject(0)).Padding := '8,0,0,0'; var_item3 := Add('New Page',Nil,Nil); with var_item3 do begin ToString := '[id=0][typ=2][chk=1][spchk=-1][show=1][grp=10][bghot=0x12000000][bgsel=0x11000000][bgselhot=0x14000000][group=0x03][tab=9000][pa' + 'd=4,0,4,0][popupoffset=-4,-1]([id=0][group=0x03])'; ID := 200; Caption := 'Page1'; var_item := Items.Add('New Group',Nil,Nil); with var_item do begin ToString := '[id=0][group=0x03][itemspad=4,4,4,18][itemsbg=0x02000000][itemsbghot=0x04000000]()'; Caption := '<b><font ;14>A'; with Items do begin BackgroundExt := 'bottom[16,text=`<fgcolor A0A0A0><font ;8>Horizontal`,align=0x11]'; with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXCONTEXTMENULib.GroupPopupEnum.exGroupPopupEqualWidth) Or Integer(EXCONTEXTMENULib.GroupPopupEnum.exGroupPopup); Caption := ''; with Items do begin with Add('R1',Nil,Nil) do begin RadioGroup := 100; Radio := True; ShowCheckedAsSelected := EXCONTEXTMENULib.ShowCheckedAsSelectedEnum.exDisplayItemHighlight; Checked := False; end; with Add('R2',Nil,Nil) do begin RadioGroup := 100; Radio := True; ShowCheckedAsSelected := EXCONTEXTMENULib.ShowCheckedAsSelectedEnum.exDisplayItemHighlight; Checked := True; end; with Add('R3',Nil,Nil) do begin RadioGroup := 100; Radio := True; ShowCheckedAsSelected := EXCONTEXTMENULib.ShowCheckedAsSelectedEnum.exDisplayItemHighlight; Checked := False; end; end; end; end; end; var_item1 := Items.Add('New Group',Nil,Nil); with var_item1 do begin ToString := '[id=0][group=0x03][itemspad=4,4,4,18][itemsbg=0x02000000][itemsbghot=0x04000000]()'; Caption := '<b><font ;14>B'; with Items do begin BackgroundExt := 'bottom[16,text=`<fgcolor A0A0A0><font ;8>Vertical`,align=0x11]'; with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXCONTEXTMENULib.GroupPopupEnum.exGroupPopupVertical) Or Integer(EXCONTEXTMENULib.GroupPopupEnum.exGroupPopupEqualHeight) Or Integer(EXCONTEXTMENULib.GroupPopupEnum.exGroupPopup); Caption := ''; with Items do begin with Add('C1',Nil,Nil) do begin Check := True; Checked := True; end; with Add('C2',Nil,Nil) do begin Check := True; Checked := False; end; with Add('C3',Nil,Nil) do begin Check := True; Checked := True; end; end; end; end; end; Items.Add('',TObject(0),TObject(0)).Padding := '4,0,0,0'; var_item2 := Items.Add('New Group',Nil,Nil); with var_item2 do begin ToString := '[id=0][group=0x03][itemspad=4,4,4,18][itemsbg=0x02000000][itemsbghot=0x04000000]()'; Caption := ''; with Items do begin BackgroundExt := 'bottom[16,text=`<fgcolor A0A0A0><font ;8>Mixt`,align=0x11]'; with Add('',TObject(0),Nil) do begin AllowEdit := Integer(EXCONTEXTMENULib.AllowEditEnum.exItemEditVertical) Or Integer(EXCONTEXTMENULib.AllowEditEnum.exItemEditSlider); ItemHeight := 76; EditBorder := EXCONTEXTMENULib.EditBorderEnum.exEditBorderNone; EditValue := TObject(25); end; with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXCONTEXTMENULib.GroupPopupEnum.exGroupPopupVertical) Or Integer(EXCONTEXTMENULib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXCONTEXTMENULib.GroupPopupEnum.exGroupPopup); Caption := ''; with Items do begin with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXCONTEXTMENULib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXCONTEXTMENULib.GroupPopupEnum.exGroupPopup); with Items do begin with Add('Button1',TObject(2),Nil) do begin ShowAsButton := Integer(EXCONTEXTMENULib.ShowAsButtonEnum.exShowAsSelectButtonBottom) Or Integer(EXCONTEXTMENULib.ShowAsButtonEnum.exShowAsButtonAutoSize); with Items do begin Add('Item 1',Nil,Nil); Add('Item 2',Nil,Nil); Add('Item 3',Nil,Nil); end; end; Add('',TObject(0),TObject(0)).Padding := '4,0,0,0'; with Add('Button2',TObject(2),Nil) do begin ShowAsButton := Integer(EXCONTEXTMENULib.ShowAsButtonEnum.exShowAsSelectButtonBottom) Or Integer(EXCONTEXTMENULib.ShowAsButtonEnum.exShowAsButtonAutoSize); with Items do begin Add('Item 4',Nil,Nil); Add('Item 5',Nil,Nil); Add('Item 6',Nil,Nil); end; end; end; end; with Add('Popup',TObject(2),Nil) do begin Alignment := EXCONTEXTMENULib.AlignmentEnum.exCenter; with Items do begin Add('Item 7',Nil,Nil).Check := True; Add('Item 8',Nil,Nil); with Add('Item 9',TObject(2),Nil).Items do begin Add('Item 10',Nil,Nil); Add('Item 11',Nil,Nil); Add('Item 12',Nil,Nil); end; end; end; end; end; end; end; end; var_item4 := Add('New Page',Nil,Nil); with var_item4 do begin ToString := '[id=0][typ=2][chk=0][spchk=-1][show=1][grp=10][bghot=0x12000000][bgsel=0x11000000][bgselhot=0x14000000][group=0x03][tab=9000][pa' + 'd=4,0,4,0][popupoffset=-4,-1]([id=0][group=0x03])'; ID := 300; Caption := 'Page2'; with Items do begin with Add('S1',Nil,Nil) do begin ItemHeight := 88; AllowEdit := Integer(EXCONTEXTMENULib.AllowEditEnum.exItemEditVertical) Or Integer(EXCONTEXTMENULib.AllowEditEnum.exItemEditSpin) Or Integer(EXCONTEXTMENULib.AllowEditEnum.exItemEditProgress); EditValue := TObject(25); end; with Add('S2',Nil,Nil) do begin ItemHeight := 88; AllowEdit := Integer(EXCONTEXTMENULib.AllowEditEnum.exItemEditVertical) Or Integer(EXCONTEXTMENULib.AllowEditEnum.exItemEditSpin) Or Integer(EXCONTEXTMENULib.AllowEditEnum.exItemEditProgress); EditValue := TObject(50); end; with Add('S3',Nil,Nil) do begin ItemHeight := 88; AllowEdit := Integer(EXCONTEXTMENULib.AllowEditEnum.exItemEditVertical) Or Integer(EXCONTEXTMENULib.AllowEditEnum.exItemEditSpin) Or Integer(EXCONTEXTMENULib.AllowEditEnum.exItemEditProgress); EditValue := TObject(75); end; end; end; Add('',TObject(0),TObject(0)).Padding := '8,0,0,0'; end; end; with VisualAppearance do begin Add(1,'C:/Program Files/Exontrol/ExContextMenu/Sample/EBN/MSPaint-Ribbon/mspr_background.ebn'); Add(2,'C:/Program Files/Exontrol/ExContextMenu/Sample/EBN/MSPaint-Ribbon/mspr_groupt.ebn'); Add(3,'C:/Program Files/Exontrol/ExContextMenu/Sample/EBN/MSPaint-Ribbon/mspr_groupo.ebn'); Add(4,'C:/Program Files/Exontrol/ExContextMenu/Sample/EBN/MSPaint-Ribbon/mspr_grouphot.ebn'); Add(5,'C:/Program Files/Exontrol/ExContextMenu/Sample/EBN/MSPaint-Ribbon/mspr_frameh.ebn'); Add(6,'C:/Program Files/Exontrol/ExContextMenu/Sample/EBN/MSPaint-Ribbon/mspr_framehs.ebn'); Add(7,'C:/Program Files/Exontrol/ExContextMenu/Sample/EBN/MSPaint-Ribbon/mspr_framehi.ebn'); Add(8,'C:/Program Files/Exontrol/ExContextMenu/Sample/EBN/MSPaint-Ribbon/mspr_framehe.ebn'); Add(9,'C:/Program Files/Exontrol/ExContextMenu/Sample/EBN/MSPaint-Ribbon/mspr_framevs.ebn'); Add(10,'C:/Program Files/Exontrol/ExContextMenu/Sample/EBN/MSPaint-Ribbon/mspr_framevi.ebn'); Add(11,'C:/Program Files/Exontrol/ExContextMenu/Sample/EBN/MSPaint-Ribbon/mspr_frameve.ebn'); Add(12,'C:/Program Files/Exontrol/ExContextMenu/Sample/EBN/MSPaint-Ribbon/mspr_select.ebn'); Add(13,'C:/Program Files/Exontrol/ExContextMenu/Sample/EBN/MSPaint-Ribbon/mspr_bordert.ebn'); Add(14,'C:/Program Files/Exontrol/ExContextMenu/Sample/EBN/MSPaint-Ribbon/mspr_buttond.ebn'); Add(15,'C:/Program Files/Exontrol/ExContextMenu/Sample/EBN/MSPaint-Ribbon/mspr_buttonu.ebn'); Add(16,'C:/Program Files/Exontrol/ExContextMenu/Sample/EBN/MSPaint-Ribbon/mspr_tab.ebn'); Add(17,'CP:16 0 0 0 1'); Add(18,'C:/Program Files/Exontrol/ExContextMenu/Sample/EBN/MSPaint-Ribbon/mspr_tabhot.ebn'); Add(19,'C:/Program Files/Exontrol/ExContextMenu/Sample/EBN/MSPaint-Ribbon/mspr_tabselhot.ebn'); Add(20,'CP:19 0 0 0 1'); end; LocalAppearance := EXCONTEXTMENULib.MenuBorderEnum.ShadowBorder; Appearance := EXCONTEXTMENULib.MenuBorderEnum($1000000); ForeColor := Color.FromArgb(21,66,139); (GetOcx() as EXCONTEXTMENULib.ExContextMenu).SelBackColor := $e000000; set_Background(EXCONTEXTMENULib.BackgroundPartEnum.exToolTipAppearance,Appearance); set_Background(EXCONTEXTMENULib.BackgroundPartEnum($2),$d000000); set_Background(EXCONTEXTMENULib.BackgroundPartEnum.exGroupPopupFrameSingle,$5000000); set_Background(EXCONTEXTMENULib.BackgroundPartEnum.exGroupPopupFrameHStart,$6000000); set_Background(EXCONTEXTMENULib.BackgroundPartEnum.exGroupPopupFrameHIntermediate,$7000000); set_Background(EXCONTEXTMENULib.BackgroundPartEnum.exGroupPopupFrameHEnd,$8000000); set_Background(EXCONTEXTMENULib.BackgroundPartEnum.exGroupPopupFrameVStart,$9000000); set_Background(EXCONTEXTMENULib.BackgroundPartEnum.exGroupPopupFrameVIntermediate,$a000000); set_Background(EXCONTEXTMENULib.BackgroundPartEnum.exGroupPopupFrameVEnd,$b000000); set_Background(EXCONTEXTMENULib.BackgroundPartEnum.exMenuHotBackColor,$c000000); set_Background(EXCONTEXTMENULib.BackgroundPartEnum.exMenuSelHotBackColor,$f000000); Select(Nil,Nil,Nil); end |
166 |
Microsoft Office - Ribbon Like
AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin MenuAppearance := EXCONTEXTMENULib.MenuAppearanceEnum.exMenuNormal; with Items do begin ToString := '[id=0][group=0x03](),[id=-20][bg=0x01000000][group=0x03][itemspad=4,4,4,4]([id=9000])'; with item[TObject(0)].Items do begin Add('',TObject(0),TObject(0)).Padding := '8,0,0,0'; var_item3 := Add('New Page',Nil,Nil); with var_item3 do begin ToString := '[id=0][typ=2][chk=1][spchk=-1][show=1][grp=10][bghot=0x12000000][bgsel=0x11000000][bgselhot=0x14000000][group=0x03][tab=9000][pa' + 'd=4,0,4,0][popupoffset=-4,-1]([id=0][group=0x03])'; ID := 200; Caption := 'Page1'; var_item := Items.Add('New Group',Nil,Nil); with var_item do begin ToString := '[id=0][group=0x03][itemspad=4,4,4,18][itemsbg=0x02000000][itemsbghot=0x04000000]()'; Caption := '<b><font ;14>A'; with Items do begin BackgroundExt := 'bottom[16,text=`<fgcolor A0A0A0><font ;8>Horizontal`,align=0x11]'; with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXCONTEXTMENULib.GroupPopupEnum.exGroupPopupEqualWidth) Or Integer(EXCONTEXTMENULib.GroupPopupEnum.exGroupPopup); Caption := ''; with Items do begin with Add('R1',Nil,Nil) do begin RadioGroup := 100; Radio := True; ShowCheckedAsSelected := EXCONTEXTMENULib.ShowCheckedAsSelectedEnum.exDisplayItemHighlight; Checked := False; end; with Add('R2',Nil,Nil) do begin RadioGroup := 100; Radio := True; ShowCheckedAsSelected := EXCONTEXTMENULib.ShowCheckedAsSelectedEnum.exDisplayItemHighlight; Checked := True; end; with Add('R3',Nil,Nil) do begin RadioGroup := 100; Radio := True; ShowCheckedAsSelected := EXCONTEXTMENULib.ShowCheckedAsSelectedEnum.exDisplayItemHighlight; Checked := False; end; end; end; end; end; var_item1 := Items.Add('New Group',Nil,Nil); with var_item1 do begin ToString := '[id=0][group=0x03][itemspad=4,4,4,18][itemsbg=0x02000000][itemsbghot=0x04000000]()'; Caption := '<b><font ;14>B'; with Items do begin BackgroundExt := 'bottom[16,text=`<fgcolor A0A0A0><font ;8>Vertical`,align=0x11]'; with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXCONTEXTMENULib.GroupPopupEnum.exGroupPopupVertical) Or Integer(EXCONTEXTMENULib.GroupPopupEnum.exGroupPopupEqualHeight) Or Integer(EXCONTEXTMENULib.GroupPopupEnum.exGroupPopup); Caption := ''; with Items do begin with Add('C1',Nil,Nil) do begin Check := True; Checked := True; end; with Add('C2',Nil,Nil) do begin Check := True; Checked := False; end; with Add('C3',Nil,Nil) do begin Check := True; Checked := True; end; end; end; end; end; Items.Add('',TObject(0),TObject(0)).Padding := '4,0,0,0'; var_item2 := Items.Add('New Group',Nil,Nil); with var_item2 do begin ToString := '[id=0][group=0x03][itemspad=4,4,4,18][itemsbg=0x02000000][itemsbghot=0x04000000]()'; Caption := ''; with Items do begin BackgroundExt := 'bottom[16,text=`<fgcolor A0A0A0><font ;8>Mixt`,align=0x11]'; with Add('',TObject(0),Nil) do begin AllowEdit := Integer(EXCONTEXTMENULib.AllowEditEnum.exItemEditVertical) Or Integer(EXCONTEXTMENULib.AllowEditEnum.exItemEditSlider); ItemHeight := 76; EditBorder := EXCONTEXTMENULib.EditBorderEnum.exEditBorderNone; EditValue := TObject(25); end; with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXCONTEXTMENULib.GroupPopupEnum.exGroupPopupVertical) Or Integer(EXCONTEXTMENULib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXCONTEXTMENULib.GroupPopupEnum.exGroupPopup); Caption := ''; with Items do begin with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXCONTEXTMENULib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXCONTEXTMENULib.GroupPopupEnum.exGroupPopup); with Items do begin with Add('Button1',TObject(2),Nil) do begin ShowAsButton := Integer(EXCONTEXTMENULib.ShowAsButtonEnum.exShowAsSelectButtonBottom) Or Integer(EXCONTEXTMENULib.ShowAsButtonEnum.exShowAsButtonAutoSize); with Items do begin Add('Item 1',Nil,Nil); Add('Item 2',Nil,Nil); Add('Item 3',Nil,Nil); end; end; Add('',TObject(0),TObject(0)).Padding := '4,0,0,0'; with Add('Button2',TObject(2),Nil) do begin ShowAsButton := Integer(EXCONTEXTMENULib.ShowAsButtonEnum.exShowAsSelectButtonBottom) Or Integer(EXCONTEXTMENULib.ShowAsButtonEnum.exShowAsButtonAutoSize); with Items do begin Add('Item 4',Nil,Nil); Add('Item 5',Nil,Nil); Add('Item 6',Nil,Nil); end; end; end; end; with Add('Popup',TObject(2),Nil) do begin Alignment := EXCONTEXTMENULib.AlignmentEnum.exCenter; with Items do begin Add('Item 7',Nil,Nil).Check := True; Add('Item 8',Nil,Nil); with Add('Item 9',TObject(2),Nil).Items do begin Add('Item 10',Nil,Nil); Add('Item 11',Nil,Nil); Add('Item 12',Nil,Nil); end; end; end; end; end; end; end; end; var_item4 := Add('New Page',Nil,Nil); with var_item4 do begin ToString := '[id=0][typ=2][chk=0][spchk=-1][show=1][grp=10][bghot=0x12000000][bgsel=0x11000000][bgselhot=0x14000000][group=0x03][tab=9000][pa' + 'd=4,0,4,0][popupoffset=-4,-1]([id=0][group=0x03])'; ID := 300; Caption := 'Page2'; with Items do begin with Add('S1',Nil,Nil) do begin ItemHeight := 88; AllowEdit := Integer(EXCONTEXTMENULib.AllowEditEnum.exItemEditVertical) Or Integer(EXCONTEXTMENULib.AllowEditEnum.exItemEditSpin) Or Integer(EXCONTEXTMENULib.AllowEditEnum.exItemEditProgress); EditValue := TObject(25); end; with Add('S2',Nil,Nil) do begin ItemHeight := 88; AllowEdit := Integer(EXCONTEXTMENULib.AllowEditEnum.exItemEditVertical) Or Integer(EXCONTEXTMENULib.AllowEditEnum.exItemEditSpin) Or Integer(EXCONTEXTMENULib.AllowEditEnum.exItemEditProgress); EditValue := TObject(50); end; with Add('S3',Nil,Nil) do begin ItemHeight := 88; AllowEdit := Integer(EXCONTEXTMENULib.AllowEditEnum.exItemEditVertical) Or Integer(EXCONTEXTMENULib.AllowEditEnum.exItemEditSpin) Or Integer(EXCONTEXTMENULib.AllowEditEnum.exItemEditProgress); EditValue := TObject(75); end; end; end; Add('',TObject(0),TObject(0)).Padding := '8,0,0,0'; end; end; with VisualAppearance do begin Add(1,'C:\Program Files\Exontrol\ExContextMenu\Sample\EBN\MSOffice-Ribbon\msor_background.ebn'); Add(2,'C:\Program Files\Exontrol\ExContextMenu\Sample\EBN\MSOffice-Ribbon\msor_groupt.ebn'); Add(3,'C:\Program Files\Exontrol\ExContextMenu\Sample\EBN\MSOffice-Ribbon\msor_groupo.ebn'); Add(4,'C:\Program Files\Exontrol\ExContextMenu\Sample\EBN\MSOffice-Ribbon\msor_grouphot.ebn'); Add(5,'C:\Program Files\Exontrol\ExContextMenu\Sample\EBN\MSOffice-Ribbon\msor_frameh.ebn'); Add(6,'C:\Program Files\Exontrol\ExContextMenu\Sample\EBN\MSOffice-Ribbon\msor_framehs.ebn'); Add(7,'C:\Program Files\Exontrol\ExContextMenu\Sample\EBN\MSOffice-Ribbon\msor_framehi.ebn'); Add(8,'C:\Program Files\Exontrol\ExContextMenu\Sample\EBN\MSOffice-Ribbon\msor_framehe.ebn'); Add(9,'C:\Program Files\Exontrol\ExContextMenu\Sample\EBN\MSOffice-Ribbon\msor_framevs.ebn'); Add(10,'C:\Program Files\Exontrol\ExContextMenu\Sample\EBN\MSOffice-Ribbon\msor_framevi.ebn'); Add(11,'C:\Program Files\Exontrol\ExContextMenu\Sample\EBN\MSOffice-Ribbon\msor_frameve.ebn'); Add(12,'C:\Program Files\Exontrol\ExContextMenu\Sample\EBN\MSOffice-Ribbon\msor_select.ebn'); Add(13,'C:\Program Files\Exontrol\ExContextMenu\Sample\EBN\MSOffice-Ribbon\msor_bordert.ebn'); Add(14,'C:\Program Files\Exontrol\ExContextMenu\Sample\EBN\MSOffice-Ribbon\msor_buttond.ebn'); Add(15,'C:\Program Files\Exontrol\ExContextMenu\Sample\EBN\MSOffice-Ribbon\msor_buttonu.ebn'); Add(16,'C:\Program Files\Exontrol\ExContextMenu\Sample\EBN\MSOffice-Ribbon\msor_tab.ebn'); Add(17,'CP:16 0 0 0 1'); Add(18,'C:\Program Files\Exontrol\ExContextMenu\Sample\EBN\MSOffice-Ribbon\msor_tabhot.ebn'); Add(19,'C:\Program Files\Exontrol\ExContextMenu\Sample\EBN\MSOffice-Ribbon\msor_tabselhot.ebn'); Add(20,'CP:19 0 0 0 1'); end; ForeColor := Color.FromArgb(21,66,139); (GetOcx() as EXCONTEXTMENULib.ExContextMenu).SelBackColor := $e000000; LocalAppearance := EXCONTEXTMENULib.MenuBorderEnum.ShadowBorder; Appearance := EXCONTEXTMENULib.MenuBorderEnum($1000000); set_Background(EXCONTEXTMENULib.BackgroundPartEnum.exToolTipAppearance,Appearance); set_Background(EXCONTEXTMENULib.BackgroundPartEnum($2),$d000000); set_Background(EXCONTEXTMENULib.BackgroundPartEnum.exGroupPopupFrameSingle,$5000000); set_Background(EXCONTEXTMENULib.BackgroundPartEnum.exGroupPopupFrameHStart,$6000000); set_Background(EXCONTEXTMENULib.BackgroundPartEnum.exGroupPopupFrameHIntermediate,$7000000); set_Background(EXCONTEXTMENULib.BackgroundPartEnum.exGroupPopupFrameHEnd,$8000000); set_Background(EXCONTEXTMENULib.BackgroundPartEnum.exGroupPopupFrameVStart,$9000000); set_Background(EXCONTEXTMENULib.BackgroundPartEnum.exGroupPopupFrameVIntermediate,$a000000); set_Background(EXCONTEXTMENULib.BackgroundPartEnum.exGroupPopupFrameVEnd,$b000000); set_Background(EXCONTEXTMENULib.BackgroundPartEnum.exMenuHotBackColor,$c000000); set_Background(EXCONTEXTMENULib.BackgroundPartEnum.exMenuSelHotBackColor,$f000000); Select(Nil,Nil,Nil); end |
165 |
How I can assign buttons to a tab
AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin set_Background(EXCONTEXTMENULib.BackgroundPartEnum.exMenuSelBorderColor,$f0f0f0); with Items do begin ToString := '[id=0][group=0x0103][itemspad=4,4,4,4]([id=-10][group=0x03](),[id=0][bg=RGB(240,240,240)][group=0x03][itemspad=4,4,4,4]([id=-100' + ']))'; with item[TObject(-10)].Items do begin Add('',TObject(0),TObject(0)).Padding := '8,0,0,0'; with Add('New Page',Nil,Nil) do begin ToString := '[typ=2][chk=1][spchk=-1][show=1][grp=10][bghot=RGB(255,255,255)][bgsel=RGB(240,240,240)][bgselhot=RGB(240,240,240)][height=16][g' + 'roup=0x03][tab=-100][pad=2,0,2,0]([id=50][group=0x03]([]))'; Caption := 'Page<off -5><font ;5><b>1</b></font></off>'; with Items do begin Add('Button 1',Nil,Nil).ShowAsButton := Integer(EXCONTEXTMENULib.ShowAsButtonEnum.exShowAsButtonAutoSize) Or Integer(EXCONTEXTMENULib.ShowAsButtonEnum.exShowAsButton); Add('Button 2',Nil,Nil).ShowAsButton := Integer(EXCONTEXTMENULib.ShowAsButtonEnum.exShowAsButtonAutoSize) Or Integer(EXCONTEXTMENULib.ShowAsButtonEnum.exShowAsButton); Add('Button 3',Nil,Nil).ShowAsButton := Integer(EXCONTEXTMENULib.ShowAsButtonEnum.exShowAsButtonAutoSize) Or Integer(EXCONTEXTMENULib.ShowAsButtonEnum.exShowAsButton); end; end; with Add('New Page',Nil,Nil) do begin ToString := '[typ=2][chk=0][spchk=-1][show=1][grp=10][bghot=RGB(255,255,255)][bgsel=RGB(240,240,240)][bgselhot=RGB(240,240,240)][height=16][g' + 'roup=0x03][tab=-100][pad=2,0,2,0]([id=50][group=0x03]([]))'; Caption := 'Page<off -5><font ;5><b>2</b></font></off>'; with Items do begin Add('Button 3',Nil,Nil).ShowAsButton := Integer(EXCONTEXTMENULib.ShowAsButtonEnum.exShowAsButtonAutoSize) Or Integer(EXCONTEXTMENULib.ShowAsButtonEnum.exShowAsButton); Add('Button 4',Nil,Nil).ShowAsButton := Integer(EXCONTEXTMENULib.ShowAsButtonEnum.exShowAsButtonAutoSize) Or Integer(EXCONTEXTMENULib.ShowAsButtonEnum.exShowAsButton); end; end; Add('',TObject(0),TObject(0)).Padding := '8,0,0,0'; end; end; Select(Nil,Nil,Nil); end |
164 |
How can I hide an item
AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin with Items do begin Add('Item 1',Nil,Nil).Visible := False; Add('Item 2',Nil,Nil); end; Select(Nil,Nil,Nil); end |
163 |
How do I get the item giving its caption
|
162 |
How do I get the item giving its identifier
|
161 |
Can I change the cursor where it hovers the item
AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin Cursor := 'exCross'; with Items do begin Add('Item 1',Nil,Nil); Add('Item 2',Nil,Nil).Cursor := 'exNoDrop'; end; Select(Nil,Nil,Nil); end |
160 |
I am using radio-buttons, the question is it possible to uncheck the radio-buttons, so no button is pressed in the group
AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin AllowToggleRadio := True; with Items do begin with Add('Radio 1',Nil,TObject(1000)) do begin Radio := True; RadioGroup := 100; end; with Add('Radio 2',Nil,TObject(1001)) do begin Radio := True; RadioGroup := 100; end; with Add('Radio 2',Nil,TObject(1003)) do begin Radio := True; RadioGroup := 100; end; end; Select(Nil,Nil,Nil); end |
159 |
Is it possible to display the item's identifiers
AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin Debug := True; with Items do begin Add('Item 1',Nil,Nil).ID := 10001; Add('Item 2',Nil,Nil).ID := 10002; end; Select(Nil,Nil,Nil); end |
158 |
How do I disable showing the tooltip for all control (method 2)
AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin AllowToolTip := False; with Items do begin Add('Item',Nil,Nil).Tooltip := 'this is a bit of text to be shown when cursor hovers it'; Add('Item',Nil,Nil).Tooltip := 'this is a bit of text to be shown when cursor hovers it'; end; Select(Nil,Nil,Nil); end |
157 |
How can I disable the control
AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin with Items do begin Add('Item 1',Nil,Nil).Enabled := False; Add('Item 2',Nil,Nil).Enabled := False; Add('Item 3',Nil,Nil).Enabled := False; end; Select(Nil,Nil,Nil); end |
156 |
How can I specify a different border/visual appearance for drop down portion of the select buttons/combobox (ebn)
AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn'); LocalAppearance := EXCONTEXTMENULib.MenuBorderEnum($1000000); with Items do begin with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXCONTEXTMENULib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXCONTEXTMENULib.GroupPopupEnum.exGroupPopup); with Items do begin with Add('Button',TObject(2),Nil) do begin ShowAsButton := Integer(EXCONTEXTMENULib.ShowAsButtonEnum.exShowAsSelectButtonBottom) Or Integer(EXCONTEXTMENULib.ShowAsButtonEnum.exShowAsButtonAutoSize); with Items do begin Add('Item 1',Nil,Nil); Add('Item 2',Nil,Nil); Add('Item 3',Nil,Nil); end; end; with Add('Button',TObject(2),Nil) do begin ShowAsButton := Integer(EXCONTEXTMENULib.ShowAsButtonEnum.exShowAsSelectButtonBottom) Or Integer(EXCONTEXTMENULib.ShowAsButtonEnum.exShowAsButtonAutoSize); with Items do begin Add('Item 4',Nil,Nil); Add('Item 5',Nil,Nil); Add('Item 6',Nil,Nil); end; end; end; end; end; Select(Nil,Nil,Nil); end |
155 |
How can I specify a different border for drop down portion of the select buttons/combobox
|
154 |
How can I change the visual appearance for the entire control
AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn'); Appearance := EXCONTEXTMENULib.MenuBorderEnum($1000000); ShowCheckedAsSelected := EXCONTEXTMENULib.ShowCheckedAsSelectedEnum.exDisplayItemCheckHighlight; with Items do begin Padding := '4,4,4,4'; with Add('Radio 1',Nil,Nil) do begin Radio := True; Checked := True; end; Add('Radio 2',Nil,Nil).Radio := True; Add('Radio 3',Nil,Nil).Radio := True; end; Select(Nil,Nil,Nil); end |
153 |
How can I show a border arround the control
AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin Appearance := EXCONTEXTMENULib.MenuBorderEnum.FlatBorder; ShowCheckedAsSelected := EXCONTEXTMENULib.ShowCheckedAsSelectedEnum.exDisplayItemCheckHighlight; with Items do begin Padding := '4,4,4,4'; with Add('Check 1',Nil,Nil) do begin Checked := True; Check := True; end; with Add('Check 2',Nil,Nil) do begin Check := True; end; end; Select(Nil,Nil,Nil); end |
152 |
Is it possible to change the item's background color when check/uncheck the item
AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin ShowCheckedAsSelected := EXCONTEXTMENULib.ShowCheckedAsSelectedEnum.exDisplayItemCheckHighlight; with Items do begin Padding := '4,4,4,4'; with Add('Check 1',Nil,Nil) do begin Checked := True; Check := True; end; with Add('Check 2',Nil,Nil) do begin Check := True; end; end; Select(Nil,Nil,Nil); end |
151 |
How can I change the colors for hot/hover items
AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin set_Background(EXCONTEXTMENULib.BackgroundPartEnum.exMenuHotBackColor,$10000); set_Background(EXCONTEXTMENULib.BackgroundPartEnum.exMenuHotForeColor,$ffffff); set_Background(EXCONTEXTMENULib.BackgroundPartEnum.exMenuSelHotBackColor,$808080); set_Background(EXCONTEXTMENULib.BackgroundPartEnum.exMenuSelHotForeColor,$ffffff); SelBackColor := Color.FromArgb(128,128,128); SelForeColor := Color.FromArgb(255,255,255); set_Background(EXCONTEXTMENULib.BackgroundPartEnum.exMenuSelBorderColor,$808080); ShowCheckedAsSelected := EXCONTEXTMENULib.ShowCheckedAsSelectedEnum.exDisplayItemCheckHighlight; with Items do begin Padding := '4,4,4,4'; Add('',Nil,Nil).ToString := '[group=3](Item 1,Item 2)'; with Add('Check 1',Nil,Nil) do begin Checked := True; Check := True; end; with Add('Check 2',Nil,Nil) do begin Check := True; end; end; Select(Nil,Nil,Nil); end |
150 |
How do I change the visual appearance of the groups (vertical)
AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin with VisualAppearance do begin Add(1,'c:\exontrol\images\normal.ebn'); Add(2,'c:\exontrol\images\pushed.ebn'); Add(3,'c:\exontrol\images\hot.ebn'); end; set_Background(EXCONTEXTMENULib.BackgroundPartEnum.exGroupPopupFrameSingle,$1000000); set_Background(EXCONTEXTMENULib.BackgroundPartEnum.exGroupPopupFrameVStart,$1000000); set_Background(EXCONTEXTMENULib.BackgroundPartEnum.exGroupPopupFrameVIntermediate,$2000000); set_Background(EXCONTEXTMENULib.BackgroundPartEnum.exGroupPopupFrameVEnd,$3000000); set_Background(EXCONTEXTMENULib.BackgroundPartEnum.exGroupPopupFrameSolid,$ff); with Items do begin with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXCONTEXTMENULib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXCONTEXTMENULib.GroupPopupEnum.exGroupPopup); with Items do begin with Add('Vertical',TObject(2),Nil) do begin Alignment := EXCONTEXTMENULib.AlignmentEnum.exCenter; GroupPopup := Integer(EXCONTEXTMENULib.GroupPopupEnum.exGroupPopupVertical) Or Integer(EXCONTEXTMENULib.GroupPopupEnum.exGroupPopup); with Items do begin Add('Item 1',Nil,Nil); Add('Item 2',Nil,Nil); Add('Item 3',Nil,Nil); Add('Item 4',Nil,Nil); Add('Item 5',Nil,Nil); end; end; Add('',Nil,Nil).CaptionWidth := 12; with Add('Vertical',TObject(2),Nil) do begin Alignment := EXCONTEXTMENULib.AlignmentEnum.exCenter; GroupPopup := Integer(EXCONTEXTMENULib.GroupPopupEnum.exGroupPopupVertical) Or Integer(EXCONTEXTMENULib.GroupPopupEnum.exGroupPopupFrameThickBox) Or Integer(EXCONTEXTMENULib.GroupPopupEnum.exGroupPopupFrameSolidBox) Or Integer(EXCONTEXTMENULib.GroupPopupEnum.exGroupPopup); with Items do begin Add('Item 1',Nil,Nil); Add('Item 2',Nil,Nil); Add('Item 3',Nil,Nil); Add('Item 4',Nil,Nil); Add('Item 5',Nil,Nil); end; end; end; end; end; Select(Nil,Nil,Nil); end |
149 |
How do I change the visual appearance of the groups (horizontal)
AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin with VisualAppearance do begin Add(1,'c:\exontrol\images\normal.ebn'); Add(2,'c:\exontrol\images\pushed.ebn'); Add(3,'c:\exontrol\images\hot.ebn'); end; set_Background(EXCONTEXTMENULib.BackgroundPartEnum.exGroupPopupFrameSingle,$1000000); set_Background(EXCONTEXTMENULib.BackgroundPartEnum.exGroupPopupFrameHStart,$1000000); set_Background(EXCONTEXTMENULib.BackgroundPartEnum.exGroupPopupFrameHIntermediate,$2000000); set_Background(EXCONTEXTMENULib.BackgroundPartEnum.exGroupPopupFrameHEnd,$3000000); set_Background(EXCONTEXTMENULib.BackgroundPartEnum.exGroupPopupFrameSolid,$ff); with Items do begin with Add('Horizontal Group',TObject(2),Nil) do begin GroupPopup := EXCONTEXTMENULib.GroupPopupEnum.exGroupPopup; with Items do begin Add('Item 1',Nil,Nil); Add('Item 2',Nil,Nil); Add('Item 3',Nil,Nil); Add('Item 4',Nil,Nil); Add('Item 5',Nil,Nil); end; end; Add('',Nil,Nil).ToString := 'Horizontal Group[group=193](Item 1,Item 2,Item 3,Item 4,Item 5)'; end; Select(Nil,Nil,Nil); end |
148 |
How can I change the visual appearance of the separator item
AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn'); set_Background(EXCONTEXTMENULib.BackgroundPartEnum.exMenuSeparatorItem,$1000000); with Items do begin Add('Item',Nil,Nil).CaptionWidth := 128; Add('',TObject(1),Nil); Add('Item',Nil,Nil).CaptionWidth := 128; Add('',Nil,Nil).ToString := '<font ;5>separator[sep]'; end; Select(Nil,Nil,Nil); end |
147 |
How can I change the visual appearance of the flat portion of the drop down of the control
AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn'); (GetOcx() as EXCONTEXTMENULib.ExContextMenu).FlatBackColor := $1000000; set_Background(EXCONTEXTMENULib.BackgroundPartEnum.exMenuFlatLineColor,FlatBackColor); with Items do begin with Add('Popup',TObject(2),Nil).Items do begin Add('Item 1',Nil,Nil).Check := True; Add('Item 2',Nil,Nil).Check := True; Add('Item 3',Nil,Nil).Check := True; end; end; Select(Nil,Nil,Nil); end |
146 |
How can I change the visual appearance of the radio-buttons to be displayed in the context menu (ebn)
AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin with VisualAppearance do begin Add(1,'c:\exontrol\images\normal.ebn'); Add(2,'c:\exontrol\images\pushed.ebn'); end; set_Background(EXCONTEXTMENULib.BackgroundPartEnum.exRadioButtonState0,$1000000); set_Background(EXCONTEXTMENULib.BackgroundPartEnum.exRadioButtonState1,$2000000); with Items do begin with Add('',TObject(2),Nil) do begin GroupPopup := EXCONTEXTMENULib.GroupPopupEnum.exGroupPopup; with Items do begin with Add('Radio 1',Nil,TObject(1000)) do begin Radio := True; RadioGroup := 100; end; with Add('Radio 2',Nil,TObject(1001)) do begin Radio := True; RadioGroup := 100; end; with Add('Radio 2',Nil,TObject(1003)) do begin Radio := True; RadioGroup := 100; end; item[TObject(1000)].Checked := True; end; end; end; Select(Nil,Nil,Nil); end |
145 |
How can I change the visual appearance of the check-boxes to be displayed in the context menu (ebn)
AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin with VisualAppearance do begin Add(1,'c:\exontrol\images\normal.ebn'); Add(2,'c:\exontrol\images\pushed.ebn'); end; set_Background(EXCONTEXTMENULib.BackgroundPartEnum.exCheckBoxState0,$1000000); set_Background(EXCONTEXTMENULib.BackgroundPartEnum.exCheckBoxState1,$2000000); with Items do begin with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXCONTEXTMENULib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXCONTEXTMENULib.GroupPopupEnum.exGroupPopup); with Items do begin with Add('Check 1',Nil,Nil) do begin Check := True; Checked := True; end; Add('Check 2',Nil,Nil).Check := True; end; end; end; Select(Nil,Nil,Nil); end |
144 |
How can I change the visual appearance of the tooltips to be displayed in the context menu (ebn)
AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin with VisualAppearance do begin Add(1,'c:\exontrol\images\normal.ebn'); Add(2,'c:\exontrol\images\pushed.ebn'); end; ToolTipDelay := 1; set_Background(EXCONTEXTMENULib.BackgroundPartEnum.exToolTipAppearance,$1000000); set_Background(EXCONTEXTMENULib.BackgroundPartEnum.exToolTipForeColor,$ff); with Items do begin Add('Item',Nil,Nil).Tooltip := 'this is a bit of text to be shown when cursor hovers it'; Add('Item',Nil,Nil).Tooltip := 'this is a bit of text to be shown when cursor hovers it'; end; Select(Nil,Nil,Nil); end |
143 |
Is it possible to change the visual appearance of the buttons to be displayed in the context menu (ebn)
AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin with VisualAppearance do begin Add(1,'c:\exontrol\images\normal.ebn'); Add(2,'c:\exontrol\images\pushed.ebn'); end; set_Background(EXCONTEXTMENULib.BackgroundPartEnum($2),$1000000); set_Background(EXCONTEXTMENULib.BackgroundPartEnum($3),$2000000); set_Background(EXCONTEXTMENULib.BackgroundPartEnum.exMenuSeparatorSelectButton,$ff); set_Background(EXCONTEXTMENULib.BackgroundPartEnum.exMenuSeparatorSelectButtonBottom,$ff0000); with Items do begin Padding := '4,4,4,4'; Add('Button',Nil,Nil).ShowAsButton := Integer(EXCONTEXTMENULib.ShowAsButtonEnum.exShowAsButtonAutoSize) Or Integer(EXCONTEXTMENULib.ShowAsButtonEnum.exShowAsButton); with Add('',Nil,Nil) do begin Enabled := False; ItemHeight := 4; end; with Add('Button',TObject(2),Nil) do begin ShowAsButton := Integer(EXCONTEXTMENULib.ShowAsButtonEnum.exShowAsSelectButtonBottom) Or Integer(EXCONTEXTMENULib.ShowAsButtonEnum.exShowAsButtonAutoSize); with Items do begin Add('Item 1',Nil,Nil); Add('Item 2',Nil,Nil); Add('Item 3',Nil,Nil); end; end; with Add('',Nil,Nil) do begin Enabled := False; ItemHeight := 4; end; with Add('Button',TObject(2),Nil) do begin ShowAsButton := Integer(EXCONTEXTMENULib.ShowAsButtonEnum.exShowAsSelectButton) Or Integer(EXCONTEXTMENULib.ShowAsButtonEnum.exShowAsButtonAutoSize); with Items do begin Add('Item 1',Nil,Nil); Add('Item 2',Nil,Nil); Add('Item 3',Nil,Nil); end; end; end; Select(Nil,Nil,Nil); end |
142 |
I've seen that the width of the tooltip is variable. Can I make it larger
|
141 |
How do I disable showing the tooltip for all control (method 1)
|
140 |
How do I let the tooltip being displayed longer
|
139 |
How do I show the tooltip quicker
|
138 |
How can I get the version of the control I am running
|
137 |
How can I align the picture on the control's background
|
136 |
Is it possible to place a picture on the control's background
|
135 |
How can I display the item using a different font/size
AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin with Items do begin Add('',Nil,Nil).Caption := '<font ;14>This is a bit of text'; Add('<font ;6>This is a bit of text',Nil,Nil); Add('',Nil,Nil).Caption := '<font Times New Roman;22>This is a bit of text</font>. Default'; end; Select(Nil,Nil,Nil); end |
134 |
How can I use the Event event, available for /COM version
// Event event - Notifies the application once the control fires an event. procedure TWinForm1.AxExContextMenu1_Event(sender: System.Object; e: AxEXCONTEXTMENULib._IExContextMenuEvents_EventEvent); begin with AxExContextMenu1 do begin OutputDebugString( 'Event' ); OutputDebugString( get_EventParam(-2) ); end end; AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin with Items do begin Add('Check',Nil,Nil).Check := True; with Add('Slider',Nil,Nil) do begin AllowEdit := EXCONTEXTMENULib.AllowEditEnum.exItemEditSlider; EditWidth := 128; EditBorder := EXCONTEXTMENULib.EditBorderEnum.exEditBorderNone; EditValue := TObject(25); end; end; Select(Nil,Nil,Nil); end |
133 |
Is it possible to get notified once the user edits the field, or change the slider value
// EditChange event - Occurs when the user alters the item's text box field. procedure TWinForm1.AxExContextMenu1_EditChange(sender: System.Object; e: AxEXCONTEXTMENULib._IExContextMenuEvents_EditChangeEvent); begin with AxExContextMenu1 do begin OutputDebugString( 'EditChange event on Itm object' ); end end; AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin with Items do begin with Add('Item',Nil,Nil) do begin AllowEdit := EXCONTEXTMENULib.AllowEditEnum.exItemEditSlider; EditWidth := 128; EditBorder := EXCONTEXTMENULib.EditBorderEnum.exEditBorderNone; EditValue := TObject(25); end; end; Select(Nil,Nil,Nil); end |
132 |
How do I get notified once I uncheck an item
// UncheckItem event - Occurs when the user unchecks the item. procedure TWinForm1.AxExContextMenu1_UncheckItem(sender: System.Object; e: AxEXCONTEXTMENULib._IExContextMenuEvents_UncheckItemEvent); begin with AxExContextMenu1 do begin OutputDebugString( 'UncheckItem event on Itm object' ); end end; AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin with Items do begin Add('Item',Nil,Nil).Check := True; Add('Item',Nil,Nil).Check := True; end; Select(Nil,Nil,Nil); end |
131 |
How do I get notified once I check an item
// CheckItem event - Occurs when the user checks the item. procedure TWinForm1.AxExContextMenu1_CheckItem(sender: System.Object; e: AxEXCONTEXTMENULib._IExContextMenuEvents_CheckItemEvent); begin with AxExContextMenu1 do begin OutputDebugString( 'CheckItem event on Itm object' ); end end; AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin with Items do begin Add('Item',Nil,Nil).Check := True; Add('Item',Nil,Nil).Check := True; end; Select(Nil,Nil,Nil); end |
130 |
How do I get notified once I click/select an item
// SelectItem event - Occurs when the user selects the item. procedure TWinForm1.AxExContextMenu1_SelectItem(sender: System.Object; e: AxEXCONTEXTMENULib._IExContextMenuEvents_SelectItemEvent); begin with AxExContextMenu1 do begin OutputDebugString( 'SelectItem event on Itm object' ); end end; AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin with Items do begin Add('Item',Nil,Nil); Add('Item',Nil,Nil); end; Select(Nil,Nil,Nil); end |
129 |
Does your control support padding for items
|
128 |
How can I change the visual appearance for items, when cursor hovers it (hot,EBN)
AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn'); with Items do begin with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXCONTEXTMENULib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXCONTEXTMENULib.GroupPopupEnum.exGroupPopup); with Items do begin HotBackColor := $1000000; Padding := '4,8,4,8'; Add('Item 1',Nil,Nil); Add('Item 2',Nil,Nil); Add('Item 3',Nil,Nil); end; end; Add('',Nil,Nil).ToString := '[group=0x03][itemspad=4,8,4,8][itemsbghot=0x1000000](Item 1,Item 2,Item 3)'; end; Select(Nil,Nil,Nil); end |
127 |
How can I change the background color for items, when cursor hovers it (hot)
|
126 |
How can I change the visual appearance for items (EBN)
AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn'); with Items do begin with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXCONTEXTMENULib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXCONTEXTMENULib.GroupPopupEnum.exGroupPopup); with Items do begin BackColor := $1000000; Padding := '4,8,4,8'; Add('Item 1',Nil,Nil); Add('Item 2',Nil,Nil); Add('Item 3',Nil,Nil); end; end; Add('',Nil,Nil).ToString := '[group=0x03][itemspad=4,8,4,8][itemsbg=0x1000000](Item 1,Item 2,Item 3)'; end; Select(Nil,Nil,Nil); end |
125 |
How can I change the background color for items
|
124 |
How do I hide the left gray portion to be shown on the drop down menu/popup (method 2)
AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin FlatImageWidth := 0; with Items do begin with Add('Popup',TObject(2),Nil).Items do begin Add('Item 1',Nil,Nil); Add('Item 2',Nil,Nil); Add('Item 3',Nil,Nil); end; end; Select(Nil,Nil,Nil); end |
123 |
How do I hide the left gray portion to be shown on the drop down menu/popup (method 1)
AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin MenuAppearance := EXCONTEXTMENULib.MenuAppearanceEnum.exMenuNormal; with Items do begin with Add('Popup',TObject(2),Nil).Items do begin Add('Item 1',Nil,Nil); Add('Item 2',Nil,Nil); Add('Item 3',Nil,Nil); end; end; Select(Nil,Nil,Nil); end |
122 |
How can I arrange the drop down item from left to right, rather than top to bottom
|
121 |
How can I add a drop down button / combobox (method 2)
// SelectItem event - Occurs when the user selects the item. procedure TWinForm1.AxExContextMenu1_SelectItem(sender: System.Object; e: AxEXCONTEXTMENULib._IExContextMenuEvents_SelectItemEvent); begin with AxExContextMenu1 do begin OutputDebugString( 'Clicked' ); end end; AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin with Items do begin with Add('Button',TObject(2),Nil) do begin ShowAsButton := Integer(EXCONTEXTMENULib.ShowAsButtonEnum.exShowAsSelectButtonBottom) Or Integer(EXCONTEXTMENULib.ShowAsButtonEnum.exShowAsButtonAutoSize); with Items do begin Add('Item 1',Nil,Nil); Add('Item 2',Nil,Nil); Add('Item 3',Nil,Nil); end; end; Add('',Nil,Nil).ToString := 'Button[button=275][popupapp=6](Item 1[id=20],Item 2[id=30],Item 3[id=40])'; end; Select(Nil,Nil,Nil); end |
120 |
How can I add a drop down button / combobox (method 1)
// SelectItem event - Occurs when the user selects the item. procedure TWinForm1.AxExContextMenu1_SelectItem(sender: System.Object; e: AxEXCONTEXTMENULib._IExContextMenuEvents_SelectItemEvent); begin with AxExContextMenu1 do begin OutputDebugString( 'Clicked' ); end end; AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin with Items do begin with Add('Button',TObject(2),Nil) do begin ShowAsButton := Integer(EXCONTEXTMENULib.ShowAsButtonEnum.exShowAsSelectButton) Or Integer(EXCONTEXTMENULib.ShowAsButtonEnum.exShowAsButtonAutoSize); with Items do begin Add('Item 1',Nil,Nil); Add('Item 2',Nil,Nil); Add('Item 3',Nil,Nil); end; end; Add('',Nil,Nil).ToString := 'Button[button=0x13][popupapp=6](Item 1[id=20],Item 2[id=30],Item 3[id=40])'; end; Select(Nil,Nil,Nil); end |
119 |
I am using exShowAsSelectButton/exShowAsSelectButtonBottom but none of them works. What could be wrong
// SelectItem event - Occurs when the user selects the item. procedure TWinForm1.AxExContextMenu1_SelectItem(sender: System.Object; e: AxEXCONTEXTMENULib._IExContextMenuEvents_SelectItemEvent); begin with AxExContextMenu1 do begin OutputDebugString( 'Clicked' ); end end; AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin with Items do begin with Add('Button',TObject(2),Nil) do begin ShowAsButton := Integer(EXCONTEXTMENULib.ShowAsButtonEnum.exShowAsSelectButton) Or Integer(EXCONTEXTMENULib.ShowAsButtonEnum.exShowAsButtonAutoSize); with Items do begin Add('Item 1',Nil,Nil); Add('Item 2',Nil,Nil); Add('Item 3',Nil,Nil); end; end; end; Select(Nil,Nil,Nil); end |
118 |
How can I add a button (push button)
|
117 |
How can I display grouping items with no frame arround
|
116 |
How can I display grouping items of the same size/width/height
|
115 |
Is it possible to display a ticker frame arround grouping items
|
114 |
How do I display items horizontally arranged
|
113 |
Is it possible to expand an item when it is clicked (tree,group,vertical)
AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin with Items do begin with Add('Expand',TObject(2),Nil) do begin GroupPopup := Integer(EXCONTEXTMENULib.GroupPopupEnum.exGroupPopupVertical) Or Integer(EXCONTEXTMENULib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXCONTEXTMENULib.GroupPopupEnum.exGroupPopup); Check := True; ShowPopupOnChecked := True; with Items do begin Padding := '22,0,0,0'; Add('Radio 1',Nil,Nil).Radio := True; Add('Radio 2',Nil,Nil).Radio := True; with Add('Radio 3',Nil,Nil) do begin Radio := True; Checked := True; end; end; Checked := True; end; Add('',Nil,Nil).ToString := 'Expand[typ=1][chk=1][spchk=-1][group=0x0103][itemspad=22,0,0,0](Radio 1[id=20][typ=2],Radio 2[id=30][typ=2],Radio 3[id=40][typ=2' + '][chk=1])'; end; Select(Nil,Nil,Nil); end |
112 |
Is it possible to expand an item when it is clicked (tree,group,vertical)
AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin with Items do begin with Add('Expand',TObject(2),Nil) do begin GroupPopup := Integer(EXCONTEXTMENULib.GroupPopupEnum.exGroupPopupVertical) Or Integer(EXCONTEXTMENULib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXCONTEXTMENULib.GroupPopupEnum.exGroupPopup); Check := True; ShowPopupOnChecked := True; with Items do begin Padding := '22,0,0,0'; Add('Radio 1',Nil,Nil).Radio := True; Add('Radio 2',Nil,Nil).Radio := True; with Add('Radio 3',Nil,Nil) do begin Radio := True; Checked := True; end; end; Checked := True; end; end; Select(Nil,Nil,Nil); end |
111 |
Is it possible to expand an item when it is clicked (group)
AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin with Items do begin with Add('Expand',TObject(2),Nil) do begin GroupPopup := EXCONTEXTMENULib.GroupPopupEnum.exGroupPopup; ItemHeight := 24; Check := True; ShowPopupOnChecked := True; with Items do begin Add('Item 1',Nil,Nil); Add('Item 2',Nil,Nil); Add('Item 3',Nil,Nil); end; end; end; Select(Nil,Nil,Nil); end |
110 |
Is it possible to extend an item when it is clicked
AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin with Items do begin with Add('Expand',TObject(2),Nil) do begin Check := True; ShowPopupOnChecked := True; with Items do begin Add('Item 1',Nil,Nil); Add('Item 2',Nil,Nil); Add('Item 3',Nil,Nil); end; end; end; Select(Nil,Nil,Nil); end |
109 |
Does your control implement padding for item
|
108 |
How can I add an empty item for a horizontal group
AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin with Items do begin with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXCONTEXTMENULib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXCONTEXTMENULib.GroupPopupEnum.exGroupPopup); with Items do begin Add('Item 1',Nil,Nil); with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXCONTEXTMENULib.GroupPopupEnum.exGroupPopupCenter) Or Integer(EXCONTEXTMENULib.GroupPopupEnum.exGroupPopup); ItemHeight := 12; with Items.Add('',Nil,Nil) do begin Enabled := False; ItemHeight := 8; CaptionWidth := 8; end; end; Add('Item 2',Nil,Nil); end; end; end; Select(Nil,Nil,Nil); end |
107 |
How can I add an empty/separator item
AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin with Items do begin Add('Item',Nil,Nil); with Add('',Nil,Nil) do begin Enabled := False; ItemHeight := 2; CaptionWidth := 8; BackColor := $f0f0f0; end; Add('Item',Nil,Nil); end; Select(Nil,Nil,Nil); end |
106 |
How can I add an empty/frame item
AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin with Items do begin Add('Item 1',Nil,Nil); with Add('',TObject(2),Nil) do begin GroupPopup := Integer(EXCONTEXTMENULib.GroupPopupEnum.exGroupPopupCenter) Or Integer(EXCONTEXTMENULib.GroupPopupEnum.exGroupPopup); ItemHeight := 12; with Items.Add('',Nil,Nil) do begin Enabled := False; ItemHeight := 8; CaptionWidth := 8; end; end; Add('Item 2',Nil,Nil); end; Select(Nil,Nil,Nil); end |
105 |
How can I specify the height of the item
|
104 |
How can I specify the width of the item
|
103 |
How do I align the item
AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin with Items do begin BackColor := $fafafa; Add('Item',Nil,Nil); with Add('Item',Nil,Nil) do begin Alignment := EXCONTEXTMENULib.AlignmentEnum.exCenter; CaptionWidth := 128; end; with Add('Item',Nil,Nil) do begin Alignment := EXCONTEXTMENULib.AlignmentEnum.exRight; CaptionWidth := 128; end; Add('',Nil,Nil).ToString := 'Item[align=1]'; end; Select(Nil,Nil,Nil); end |
102 |
How can I underline the item
AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin with Items do begin Add('Item',Nil,Nil).Underline := True; Add('<u>Item</u>',Nil,Nil); Add('',Nil,Nil).ToString := 'Item[und]'; end; Select(Nil,Nil,Nil); end |
101 |
How can I show the item as strikeout
AxExContextMenu1 := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.ContextMenu.1')) as EXCONTEXTMENULib.ExContextMenu); with AxExContextMenu1 do begin with Items do begin Add('Item',Nil,Nil).Strikeout := True; Add('<s>Item</s>',Nil,Nil); Add('',Nil,Nil).ToString := 'Item[stk]'; end; Select(Nil,Nil,Nil); end |