property Item.Image(Type as RadialItemsEnum) as Variant
Retrieves or sets a value that indicates the item's image.

TypeDescription
Type as RadialItemsEnum A RadialItemsEnum expression that indicates the part of the item to be changed.
Variant A VARIANT expression that specifies the icon/picture/image to be displayed as described:
  • A String expression indicates:
    • a name of a picture file in the PicturePath folder. For instance, Image(exRadialItems) = "favorites.png", loads the favorites.png file if found in the PicturePath folder.
    • a picture file including its absolute path. For instance, Image(exRadialItems) = "C:\Program Files\Exontrol\ExRadialMenu\Sample\Images\favorites.png", loads the favorites.png file from absolute path
    • a key of the HTML picture, previously loaded by the HTMLPicture method. For instance, Image(exRadialItems) = "pic1", loads the HTML picture with the key pic1, so the pic1 should be load previously with a HTMLPicture call like HTMLPicture("pic1") = "C:\Program Files\Exontrol\ExRadialMenu\Sample\Images\favorites.png"
    • an encode BASE64 string of a picture file. The Exontrol's ExImages Tool encode/decode BASE64 strings from/to pictures. In this case, the string starts with "gB..", "gC.." and so on.
  • A Picture object that indicates the picture to be displayed. For instance, Image(exRadialItems) = LoadPicture("picture.jpg")
  • a long/string expression that specifies the index of the icon to be displayed (0-based). The Images method loads icons into the control. Use the ReplaceIcon method to add, remove or clear icons in the control's images collection.

If no icon/picture/image is found, the item displays no icon/picture/image.

By default, the Image property is empty, which indicates that no image is displayed. The Image property retrieves or sets a value that indicates the item's image. You can specify the image of the item using the Image parameter of the Add method. The Caption property retrieves or sets a value that indicates the item's caption. The item's caption may display any icon, picture or image, using the built-in HTML <img> tag. The ParentImage property specifies the graphics ( image, icon, picture ) to be shown on the parent zone, based on the state of the radial menu. The ItemsImageWidth / ItemsImageHeight property specifies the size to display the item's image. The DisplayCenter property specifies the ratio to determine where the image/caption of the item is displayed.

The following samples show how you can display images within the control:

VBA (MS Access, Excell...)

With RadialMenu1
	.Expanded = True
	.SubItemsSize = "48*dpi"
	.PicturesPath = "C:\Program Files\Exontrol\ExRadialMenu\Sample\Images"
	.RadialLineColor(9) = RGB(128,128,128)
	.RadialLineColor(10) = RGB(128,128,128)
	.RadialLineColor(11) = -1
	With .Items
		With .Add("")
			.Image(1) = "favorites.png"
			.Image(2) = "download.png"
		End With
	End With
End With

VB6

With RadialMenu1
	.Expanded = True
	.SubItemsSize = "48*dpi"
	.PicturesPath = "C:\Program Files\Exontrol\ExRadialMenu\Sample\Images"
	.RadialLineColor(exRadialHotItem) = RGB(128,128,128)
	.RadialLineColor(exRadialHotSubItem) = RGB(128,128,128)
	.RadialLineColor(exRadialHotFullItem) = -1
	With .Items
		With .Add("")
			.Image(exRadialItems) = "favorites.png"
			.Image(exRadialSubItems) = "download.png"
		End With
	End With
End With

VB.NET

With Exradialmenu1
	.Expanded = True
	.SubItemsSize = "48*dpi"
	.PicturesPath = "C:\Program Files\Exontrol\ExRadialMenu\Sample\Images"
	.set_RadialLineColor(exontrol.EXRADIALMENULib.RadialLineEnum.exRadialHotItem,Color.FromArgb(128,128,128))
	.set_RadialLineColor(exontrol.EXRADIALMENULib.RadialLineEnum.exRadialHotSubItem,Color.FromArgb(128,128,128))
	.set_RadialLineColor32(exontrol.EXRADIALMENULib.RadialLineEnum.exRadialHotFullItem,-1)
	With .Items
		With .Add("")
			.set_Image(exontrol.EXRADIALMENULib.RadialItemsEnum.exRadialItems,"favorites.png")
			.set_Image(exontrol.EXRADIALMENULib.RadialItemsEnum.exRadialSubItems,"download.png")
		End With
	End With
End With

VB.NET for /COM

With AxRadialMenu1
	.Expanded = True
	.SubItemsSize = "48*dpi"
	.PicturesPath = "C:\Program Files\Exontrol\ExRadialMenu\Sample\Images"
	.set_RadialLineColor(EXRADIALMENULib.RadialLineEnum.exRadialHotItem,8421504)
	.set_RadialLineColor(EXRADIALMENULib.RadialLineEnum.exRadialHotSubItem,8421504)
	.set_RadialLineColor(EXRADIALMENULib.RadialLineEnum.exRadialHotFullItem,-1)
	With .Items
		With .Add("")
			.Image(EXRADIALMENULib.RadialItemsEnum.exRadialItems) = "favorites.png"
			.Image(EXRADIALMENULib.RadialItemsEnum.exRadialSubItems) = "download.png"
		End With
	End With
End With

C++

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXRADIALMENULib' for the library: 'ExRadialMenu 1.0 Control Library'

	#import <ExRadialMenu.dll>
	using namespace EXRADIALMENULib;
*/
EXRADIALMENULib::IRadialMenuPtr spRadialMenu1 = GetDlgItem(IDC_RADIALMENU1)->GetControlUnknown();
spRadialMenu1->PutExpanded(VARIANT_TRUE);
spRadialMenu1->PutSubItemsSize(L"48*dpi");
spRadialMenu1->PutPicturesPath(L"C:\\Program Files\\Exontrol\\ExRadialMenu\\Sample\\Images");
spRadialMenu1->PutRadialLineColor(EXRADIALMENULib::exRadialHotItem,RGB(128,128,128));
spRadialMenu1->PutRadialLineColor(EXRADIALMENULib::exRadialHotSubItem,RGB(128,128,128));
spRadialMenu1->PutRadialLineColor(EXRADIALMENULib::exRadialHotFullItem,-1);
EXRADIALMENULib::IItemsPtr var_Items = spRadialMenu1->GetItems();
	EXRADIALMENULib::IItemPtr var_Item = var_Items->Add(L"",vtMissing,vtMissing);
		var_Item->PutImage(EXRADIALMENULib::exRadialItems,"favorites.png");
		var_Item->PutImage(EXRADIALMENULib::exRadialSubItems,"download.png");

C++ Builder

RadialMenu1->Expanded = true;
RadialMenu1->SubItemsSize = L"48*dpi";
RadialMenu1->PicturesPath = L"C:\\Program Files\\Exontrol\\ExRadialMenu\\Sample\\Images";
RadialMenu1->RadialLineColor[Exradialmenulib_tlb::RadialLineEnum::exRadialHotItem] = RGB(128,128,128);
RadialMenu1->RadialLineColor[Exradialmenulib_tlb::RadialLineEnum::exRadialHotSubItem] = RGB(128,128,128);
RadialMenu1->RadialLineColor[Exradialmenulib_tlb::RadialLineEnum::exRadialHotFullItem] = -1;
Exradialmenulib_tlb::IItemsPtr var_Items = RadialMenu1->Items;
	Exradialmenulib_tlb::IItemPtr var_Item = var_Items->Add(L"",TNoParam(),TNoParam());
		var_Item->set_Image(Exradialmenulib_tlb::RadialItemsEnum::exRadialItems,TVariant("favorites.png"));
		var_Item->set_Image(Exradialmenulib_tlb::RadialItemsEnum::exRadialSubItems,TVariant("download.png"));

C#

exradialmenu1.Expanded = true;
exradialmenu1.SubItemsSize = "48*dpi";
exradialmenu1.PicturesPath = "C:\\Program Files\\Exontrol\\ExRadialMenu\\Sample\\Images";
exradialmenu1.set_RadialLineColor(exontrol.EXRADIALMENULib.RadialLineEnum.exRadialHotItem,Color.FromArgb(128,128,128));
exradialmenu1.set_RadialLineColor(exontrol.EXRADIALMENULib.RadialLineEnum.exRadialHotSubItem,Color.FromArgb(128,128,128));
exradialmenu1.set_RadialLineColor32(exontrol.EXRADIALMENULib.RadialLineEnum.exRadialHotFullItem,-1);
exontrol.EXRADIALMENULib.Items var_Items = exradialmenu1.Items;
	exontrol.EXRADIALMENULib.Item var_Item = var_Items.Add("",null,null);
		var_Item.set_Image(exontrol.EXRADIALMENULib.RadialItemsEnum.exRadialItems,"favorites.png");
		var_Item.set_Image(exontrol.EXRADIALMENULib.RadialItemsEnum.exRadialSubItems,"download.png");

JScript/JavaScript

<BODY onload="Init()">
<OBJECT CLASSID="clsid:1604BDE1-D48F-4D3F-B51B-49C0CD74236C" id="RadialMenu1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	RadialMenu1.Expanded = true;
	RadialMenu1.SubItemsSize = "48*dpi";
	RadialMenu1.PicturesPath = "C:\\Program Files\\Exontrol\\ExRadialMenu\\Sample\\Images";
	RadialMenu1.RadialLineColor(9) = 8421504;
	RadialMenu1.RadialLineColor(10) = 8421504;
	RadialMenu1.RadialLineColor(11) = -1;
	var var_Items = RadialMenu1.Items;
		var var_Item = var_Items.Add("",null,null);
			var_Item.Image(1) = "favorites.png";
			var_Item.Image(2) = "download.png";
}
</SCRIPT>
</BODY>

VBScript

<BODY onload="Init()">
<OBJECT CLASSID="clsid:1604BDE1-D48F-4D3F-B51B-49C0CD74236C" id="RadialMenu1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With RadialMenu1
		.Expanded = True
		.SubItemsSize = "48*dpi"
		.PicturesPath = "C:\Program Files\Exontrol\ExRadialMenu\Sample\Images"
		.RadialLineColor(9) = RGB(128,128,128)
		.RadialLineColor(10) = RGB(128,128,128)
		.RadialLineColor(11) = -1
		With .Items
			With .Add("")
				.Image(1) = "favorites.png"
				.Image(2) = "download.png"
			End With
		End With
	End With
End Function
</SCRIPT>
</BODY>

C# for /COM

axRadialMenu1.Expanded = true;
axRadialMenu1.SubItemsSize = "48*dpi";
axRadialMenu1.PicturesPath = "C:\\Program Files\\Exontrol\\ExRadialMenu\\Sample\\Images";
axRadialMenu1.set_RadialLineColor(EXRADIALMENULib.RadialLineEnum.exRadialHotItem,(uint)ColorTranslator.ToWin32(Color.FromArgb(128,128,128)));
axRadialMenu1.set_RadialLineColor(EXRADIALMENULib.RadialLineEnum.exRadialHotSubItem,(uint)ColorTranslator.ToWin32(Color.FromArgb(128,128,128)));
axRadialMenu1.set_RadialLineColor(EXRADIALMENULib.RadialLineEnum.exRadialHotFullItem,-1);
EXRADIALMENULib.Items var_Items = axRadialMenu1.Items;
	EXRADIALMENULib.Item var_Item = var_Items.Add("",null,null);
		var_Item.set_Image(EXRADIALMENULib.RadialItemsEnum.exRadialItems,"favorites.png");
		var_Item.set_Image(EXRADIALMENULib.RadialItemsEnum.exRadialSubItems,"download.png");

X++ (Dynamics Ax 2009)

public void init()
{
	COM com_Item,com_Items;
	anytype var_Item,var_Items;
	;

	super();

	exradialmenu1.Expanded(true);
	exradialmenu1.SubItemsSize("48*dpi");
	exradialmenu1.PicturesPath("C:\\Program Files\\Exontrol\\ExRadialMenu\\Sample\\Images");
	exradialmenu1.RadialLineColor(9/*exRadialHotItem*/,WinApi::RGB2int(128,128,128));
	exradialmenu1.RadialLineColor(10/*exRadialHotSubItem*/,WinApi::RGB2int(128,128,128));
	exradialmenu1.RadialLineColor(11/*exRadialHotFullItem*/,-1);
	var_Items = exradialmenu1.Items(); com_Items = var_Items;
		var_Item = com_Items.Add(""); com_Item = var_Item;
			com_Item.Image(1/*exRadialItems*/,"favorites.png");
			com_Item.Image(2/*exRadialSubItems*/,"download.png");
}

Delphi 8 (.NET only)

with AxRadialMenu1 do
begin
	Expanded := True;
	SubItemsSize := '48*dpi';
	PicturesPath := 'C:\Program Files\Exontrol\ExRadialMenu\Sample\Images';
	set_RadialLineColor(EXRADIALMENULib.RadialLineEnum.exRadialHotItem,$808080);
	set_RadialLineColor(EXRADIALMENULib.RadialLineEnum.exRadialHotSubItem,$808080);
	set_RadialLineColor(EXRADIALMENULib.RadialLineEnum.exRadialHotFullItem,$ffffffff);
	with Items do
	begin
		with Add('',Nil,Nil) do
		begin
			Image[EXRADIALMENULib.RadialItemsEnum.exRadialItems] := 'favorites.png';
			Image[EXRADIALMENULib.RadialItemsEnum.exRadialSubItems] := 'download.png';
		end;
	end;
end

Delphi (standard)

with RadialMenu1 do
begin
	Expanded := True;
	SubItemsSize := '48*dpi';
	PicturesPath := 'C:\Program Files\Exontrol\ExRadialMenu\Sample\Images';
	RadialLineColor[EXRADIALMENULib_TLB.exRadialHotItem] := $808080;
	RadialLineColor[EXRADIALMENULib_TLB.exRadialHotSubItem] := $808080;
	RadialLineColor[EXRADIALMENULib_TLB.exRadialHotFullItem] := $ffffffff;
	with Items do
	begin
		with Add('',Null,Null) do
		begin
			Image[EXRADIALMENULib_TLB.exRadialItems] := 'favorites.png';
			Image[EXRADIALMENULib_TLB.exRadialSubItems] := 'download.png';
		end;
	end;
end

VFP

with thisform.RadialMenu1
	.Expanded = .T.
	.SubItemsSize = "48*dpi"
	.PicturesPath = "C:\Program Files\Exontrol\ExRadialMenu\Sample\Images"
	.Object.RadialLineColor(9) = RGB(128,128,128)
	.Object.RadialLineColor(10) = RGB(128,128,128)
	.Object.RadialLineColor(11) = -1
	with .Items
		with .Add("")
			.Image(1) = "favorites.png"
			.Image(2) = "download.png"
		endwith
	endwith
endwith

dBASE Plus

local oRadialMenu,var_Item,var_Items

oRadialMenu = form.EXRADIALMENUACTIVEXCONTROL1.nativeObject
oRadialMenu.Expanded = true
oRadialMenu.SubItemsSize = "48*dpi"
oRadialMenu.PicturesPath = "C:\Program Files\Exontrol\ExRadialMenu\Sample\Images"
oRadialMenu.Template = [RadialLineColor(9) = 8421504] // oRadialMenu.RadialLineColor(9) = 0x808080
oRadialMenu.Template = [RadialLineColor(10) = 8421504] // oRadialMenu.RadialLineColor(10) = 0x808080
oRadialMenu.Template = [RadialLineColor(11) = -1] // oRadialMenu.RadialLineColor(11) = -1
var_Items = oRadialMenu.Items
	var_Item = var_Items.Add("")
		// var_Item.Image(1) = "favorites.png"
		with (oRadialMenu)
			TemplateDef = [dim var_Item]
			TemplateDef = var_Item
			Template = [var_Item.Image(1) = "favorites.png"]
		endwith
		// var_Item.Image(2) = "download.png"
		with (oRadialMenu)
			TemplateDef = [dim var_Item]
			TemplateDef = var_Item
			Template = [var_Item.Image(2) = "download.png"]
		endwith

XBasic (Alpha Five)

Dim oRadialMenu as P
Dim var_Item as P
Dim var_Items as P

oRadialMenu = topparent:CONTROL_ACTIVEX1.activex
oRadialMenu.Expanded = .t.
oRadialMenu.SubItemsSize = "48*dpi"
oRadialMenu.PicturesPath = "C:\Program Files\Exontrol\ExRadialMenu\Sample\Images"
oRadialMenu.Template = "RadialLineColor(9) = 8421504" // oRadialMenu.RadialLineColor(9) = 8421504
oRadialMenu.Template = "RadialLineColor(10) = 8421504" // oRadialMenu.RadialLineColor(10) = 8421504
oRadialMenu.Template = "RadialLineColor(11) = -1" // oRadialMenu.RadialLineColor(11) = -1
var_Items = oRadialMenu.Items
	var_Item = var_Items.Add("")
		' var_Item.Image(1) = "favorites.png"
		oRadialMenu.TemplateDef = "dim var_Item"
		oRadialMenu.TemplateDef = var_Item
		oRadialMenu.Template = "var_Item.Image(1) = `favorites.png`"

		' var_Item.Image(2) = "download.png"
		oRadialMenu.TemplateDef = "dim var_Item"
		oRadialMenu.TemplateDef = var_Item
		oRadialMenu.Template = "var_Item.Image(2) = `download.png`"


Visual Objects

local var_Item as IItem
local var_Items as IItems

oDCOCX_Exontrol1:Expanded := true
oDCOCX_Exontrol1:SubItemsSize := "48*dpi"
oDCOCX_Exontrol1:PicturesPath := "C:\Program Files\Exontrol\ExRadialMenu\Sample\Images"
oDCOCX_Exontrol1:[RadialLineColor,exRadialHotItem] := RGB(128,128,128)
oDCOCX_Exontrol1:[RadialLineColor,exRadialHotSubItem] := RGB(128,128,128)
oDCOCX_Exontrol1:[RadialLineColor,exRadialHotFullItem] := -1
var_Items := oDCOCX_Exontrol1:Items
	var_Item := var_Items:Add("",nil,nil)
		var_Item:[Image,exRadialItems] := "favorites.png"
		var_Item:[Image,exRadialSubItems] := "download.png"

PowerBuilder

OleObject oRadialMenu,var_Item,var_Items

oRadialMenu = ole_1.Object
oRadialMenu.Expanded = true
oRadialMenu.SubItemsSize = "48*dpi"
oRadialMenu.PicturesPath = "C:\Program Files\Exontrol\ExRadialMenu\Sample\Images"
oRadialMenu.RadialLineColor(9,RGB(128,128,128))
oRadialMenu.RadialLineColor(10,RGB(128,128,128))
oRadialMenu.RadialLineColor(11,-1)
var_Items = oRadialMenu.Items
	var_Item = var_Items.Add("")
		var_Item.Image(1,"favorites.png")
		var_Item.Image(2,"download.png")

Visual DataFlex

Procedure OnCreate
	Forward Send OnCreate
	Set ComExpanded to True
	Set ComSubItemsSize to "48*dpi"
	Set ComPicturesPath to "C:\Program Files\Exontrol\ExRadialMenu\Sample\Images"
	Set ComRadialLineColor OLEexRadialHotItem to (RGB(128,128,128))
	Set ComRadialLineColor OLEexRadialHotSubItem to (RGB(128,128,128))
	Set ComRadialLineColor OLEexRadialHotFullItem to -1
	Variant voItems
	Get ComItems to voItems
	Handle hoItems
	Get Create (RefClass(cComItems)) to hoItems
	Set pvComObject of hoItems to voItems
		Variant voItem
		Get ComAdd of hoItems "" Nothing Nothing to voItem
		Handle hoItem
		Get Create (RefClass(cComItem)) to hoItem
		Set pvComObject of hoItem to voItem
			Set ComImage of hoItem OLEexRadialItems to "favorites.png"
			Set ComImage of hoItem OLEexRadialSubItems to "download.png"
		Send Destroy to hoItem
	Send Destroy to hoItems
End_Procedure

XBase++

#include "AppEvent.ch"
#include "ActiveX.ch"

PROCEDURE Main
 	LOCAL oForm
	LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL
	LOCAL oItem
	LOCAL oItems
	LOCAL oRadialMenu

	oForm := XbpDialog():new( AppDesktop() )
	oForm:drawingArea:clipChildren := .T.
	oForm:create( ,,{100,100}, {640,480},, .F. )
	oForm:close  := {|| PostAppEvent( xbeP_Quit )}

	oRadialMenu := XbpActiveXControl():new( oForm:drawingArea )
	oRadialMenu:CLSID  := "Exontrol.RadialMenu.1" /*{1604BDE1-D48F-4D3F-B51B-49C0CD74236C}*/
	oRadialMenu:create(,, {10,60},{610,370} )

		oRadialMenu:Expanded := .T.
		oRadialMenu:SubItemsSize := "48*dpi"
		oRadialMenu:PicturesPath := "C:\Program Files\Exontrol\ExRadialMenu\Sample\Images"
		oRadialMenu:SetProperty("RadialLineColor",9/*exRadialHotItem*/,AutomationTranslateColor( GraMakeRGBColor  ( { 128,128,128 } )  , .F. ))
		oRadialMenu:SetProperty("RadialLineColor",10/*exRadialHotSubItem*/,AutomationTranslateColor( GraMakeRGBColor  ( { 128,128,128 } )  , .F. ))
		oRadialMenu:SetProperty("RadialLineColor",11/*exRadialHotFullItem*/,-1)
		oItems := oRadialMenu:Items()
			oItem := oItems:Add("")
				oItem:SetProperty("Image",1/*exRadialItems*/,"favorites.png")
				oItem:SetProperty("Image",2/*exRadialSubItems*/,"download.png")

	oForm:Show()
	DO WHILE nEvent != xbeP_Quit
		nEvent := AppEvent( @mp1, @mp2, @oXbp )
		oXbp:handleEvent( nEvent, mp1, mp2 )
	ENDDO 
RETURN