property Item.GroupPopup as GroupPopupEnum
Specifies whether the items of the sub-menu are grouped and displayed on the current item.

TypeDescription
GroupPopupEnum A GroupPopupEnum expression that specifies whether the items of the sub-menu are grouped and displayed on the current item.
By default, the GroupPopup property is exNoGroupPopup, which indicates that the sub-menu is not shown as grouped. Use the GroupPopup property to show the item's sub-menu as a group in the current item. The SubMenu property indicates the item's sub-menu. The GroupPopup has no effect if the item has no sub-items.

The following screen shot shows the items with no grouping:

The following screen shot shows the items with grouping ( horizontally ):

The following screen shot shows different type of items grouped horizontally, vertically:

How can I add new items arranged horizontally to the ribbon control (method 2)?

VBA (MS Access, Excell...)

With Ribbon1
	With .Items
		With .Add("",2)
			With .Items
				.Add "Item 1"
				.Add "Item 2"
				.Add "Item 3"
			End With
			.GroupPopup = 3 ' GroupPopupEnum.exNoGroupPopupFrame Or GroupPopupEnum.exGroupPopup
		End With
	End With
	.Refresh 
End With

VB6

With Ribbon1
	With .Items
		With .Add("",2)
			With .Items
				.Add "Item 1"
				.Add "Item 2"
				.Add "Item 3"
			End With
			.GroupPopup = GroupPopupEnum.exNoGroupPopupFrame Or GroupPopupEnum.exGroupPopup
		End With
	End With
	.Refresh 
End With

VB.NET

With Exribbon1
	With .Items
		With .Add("",2)
			With .Items
				.Add("Item 1")
				.Add("Item 2")
				.Add("Item 3")
			End With
			.GroupPopup = exontrol.EXRIBBONLib.GroupPopupEnum.exNoGroupPopupFrame Or exontrol.EXRIBBONLib.GroupPopupEnum.exGroupPopup
		End With
	End With
	.Refresh()
End With

VB.NET for /COM

With AxRibbon1
	With .Items
		With .Add("",2)
			With .Items
				.Add("Item 1")
				.Add("Item 2")
				.Add("Item 3")
			End With
			.GroupPopup = EXRIBBONLib.GroupPopupEnum.exNoGroupPopupFrame Or EXRIBBONLib.GroupPopupEnum.exGroupPopup
		End With
	End With
	.Refresh()
End With

C++

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

	#import <ExRibbon.dll>
	using namespace EXRIBBONLib;
*/
EXRIBBONLib::IRibbonPtr spRibbon1 = GetDlgItem(IDC_RIBBON1)->GetControlUnknown();
EXRIBBONLib::IItemsPtr var_Items = spRibbon1->GetItems();
	EXRIBBONLib::IItemPtr var_Item = var_Items->Add(L"",long(2),vtMissing);
		EXRIBBONLib::IItemsPtr var_Items1 = var_Item->GetItems();
			var_Items1->Add(L"Item 1",vtMissing,vtMissing);
			var_Items1->Add(L"Item 2",vtMissing,vtMissing);
			var_Items1->Add(L"Item 3",vtMissing,vtMissing);
		var_Item->PutGroupPopup(EXRIBBONLib::GroupPopupEnum(EXRIBBONLib::exNoGroupPopupFrame | EXRIBBONLib::exGroupPopup));
spRibbon1->Refresh();

C++ Builder

Exribbonlib_tlb::IItemsPtr var_Items = Ribbon1->Items;
	Exribbonlib_tlb::IItemPtr var_Item = var_Items->Add(L"",TVariant(2),TNoParam());
		Exribbonlib_tlb::IItemsPtr var_Items1 = var_Item->Items;
			var_Items1->Add(L"Item 1",TNoParam(),TNoParam());
			var_Items1->Add(L"Item 2",TNoParam(),TNoParam());
			var_Items1->Add(L"Item 3",TNoParam(),TNoParam());
		var_Item->GroupPopup = Exribbonlib_tlb::GroupPopupEnum::exNoGroupPopupFrame | Exribbonlib_tlb::GroupPopupEnum::exGroupPopup;
Ribbon1->Refresh();

C#

exontrol.EXRIBBONLib.Items var_Items = exribbon1.Items;
	exontrol.EXRIBBONLib.Item var_Item = var_Items.Add("",2,null);
		exontrol.EXRIBBONLib.Items var_Items1 = var_Item.Items;
			var_Items1.Add("Item 1",null,null);
			var_Items1.Add("Item 2",null,null);
			var_Items1.Add("Item 3",null,null);
		var_Item.GroupPopup = exontrol.EXRIBBONLib.GroupPopupEnum.exNoGroupPopupFrame | exontrol.EXRIBBONLib.GroupPopupEnum.exGroupPopup;
exribbon1.Refresh();

JScript/JavaScript

<BODY onload='Init()'>
<OBJECT CLASSID="clsid:DDF58CFA-750F-45E0-8A00-CFBE431702E2" id="Ribbon1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	var var_Items = Ribbon1.Items;
		var var_Item = var_Items.Add("",2,null);
			var var_Items1 = var_Item.Items;
				var_Items1.Add("Item 1",null,null);
				var_Items1.Add("Item 2",null,null);
				var_Items1.Add("Item 3",null,null);
			var_Item.GroupPopup = 3;
	Ribbon1.Refresh();
}
</SCRIPT>
</BODY>

VBScript

<BODY onload='Init()'>
<OBJECT CLASSID="clsid:DDF58CFA-750F-45E0-8A00-CFBE431702E2" id="Ribbon1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With Ribbon1
		With .Items
			With .Add("",2)
				With .Items
					.Add "Item 1"
					.Add "Item 2"
					.Add "Item 3"
				End With
				.GroupPopup = 3 ' GroupPopupEnum.exNoGroupPopupFrame Or GroupPopupEnum.exGroupPopup
			End With
		End With
		.Refresh 
	End With
End Function
</SCRIPT>
</BODY>

C# for /COM

EXRIBBONLib.Items var_Items = axRibbon1.Items;
	EXRIBBONLib.Item var_Item = var_Items.Add("",2,null);
		EXRIBBONLib.Items var_Items1 = var_Item.Items;
			var_Items1.Add("Item 1",null,null);
			var_Items1.Add("Item 2",null,null);
			var_Items1.Add("Item 3",null,null);
		var_Item.GroupPopup = EXRIBBONLib.GroupPopupEnum.exNoGroupPopupFrame | EXRIBBONLib.GroupPopupEnum.exGroupPopup;
axRibbon1.Refresh();

X++ (Dynamics Ax 2009)

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

	super();

	var_Items = exribbon1.Items(); com_Items = var_Items;
		var_Item = com_Items.Add("",COMVariant::createFromInt(2)); com_Item = var_Item;
			var_Items1 = com_Item.Items(); com_Items1 = var_Items1;
				com_Items1.Add("Item 1");
				com_Items1.Add("Item 2");
				com_Items1.Add("Item 3");
			com_Item.GroupPopup(3/*exNoGroupPopupFrame | exGroupPopup*/);
	exribbon1.Refresh();
}

Delphi 8 (.NET only)

with AxRibbon1 do
begin
	with Items do
	begin
		with Add('',TObject(2),Nil) do
		begin
			with Items do
			begin
				Add('Item 1',Nil,Nil);
				Add('Item 2',Nil,Nil);
				Add('Item 3',Nil,Nil);
			end;
			GroupPopup := Integer(EXRIBBONLib.GroupPopupEnum.exNoGroupPopupFrame) Or Integer(EXRIBBONLib.GroupPopupEnum.exGroupPopup);
		end;
	end;
	Refresh();
end

Delphi (standard)

with Ribbon1 do
begin
	with Items do
	begin
		with Add('',OleVariant(2),Null) do
		begin
			with Items do
			begin
				Add('Item 1',Null,Null);
				Add('Item 2',Null,Null);
				Add('Item 3',Null,Null);
			end;
			GroupPopup := Integer(EXRIBBONLib_TLB.exNoGroupPopupFrame) Or Integer(EXRIBBONLib_TLB.exGroupPopup);
		end;
	end;
	Refresh();
end

VFP

with thisform.Ribbon1
	with .Items
		with .Add("",2)
			with .Items
				.Add("Item 1")
				.Add("Item 2")
				.Add("Item 3")
			endwith
			.GroupPopup = 3 && GroupPopupEnum.exNoGroupPopupFrame Or GroupPopupEnum.exGroupPopup
		endwith
	endwith
	.Refresh
endwith

dBASE Plus

local oRibbon,var_Item,var_Items,var_Items1

oRibbon = form.Activex1.nativeObject
var_Items = oRibbon.Items
	var_Item = var_Items.Add("",2)
		var_Items1 = var_Item.Items
			var_Items1.Add("Item 1")
			var_Items1.Add("Item 2")
			var_Items1.Add("Item 3")
		var_Item.GroupPopup = 3 /*exNoGroupPopupFrame | exGroupPopup*/
oRibbon.Refresh()

XBasic (Alpha Five)

Dim oRibbon as P
Dim var_Item as P
Dim var_Items as P
Dim var_Items1 as P

oRibbon = topparent:CONTROL_ACTIVEX1.activex
var_Items = oRibbon.Items
	var_Item = var_Items.Add("",2)
		var_Items1 = var_Item.Items
			var_Items1.Add("Item 1")
			var_Items1.Add("Item 2")
			var_Items1.Add("Item 3")
		var_Item.GroupPopup = 3 'exNoGroupPopupFrame + exGroupPopup
oRibbon.Refresh()

Visual Objects

local var_Item as IItem
local var_Items,var_Items1 as IItems

var_Items := oDCOCX_Exontrol1:Items
	var_Item := var_Items:Add("",2,nil)
		var_Items1 := var_Item:Items
			var_Items1:Add("Item 1",nil,nil)
			var_Items1:Add("Item 2",nil,nil)
			var_Items1:Add("Item 3",nil,nil)
		var_Item:GroupPopup := exNoGroupPopupFrame | exGroupPopup
oDCOCX_Exontrol1:Refresh()

PowerBuilder

OleObject oRibbon,var_Item,var_Items,var_Items1

oRibbon = ole_1.Object
var_Items = oRibbon.Items
	var_Item = var_Items.Add("",2)
		var_Items1 = var_Item.Items
			var_Items1.Add("Item 1")
			var_Items1.Add("Item 2")
			var_Items1.Add("Item 3")
		var_Item.GroupPopup = 3 /*exNoGroupPopupFrame | exGroupPopup*/
oRibbon.Refresh()

Visual DataFlex

Procedure OnCreate
	Forward Send OnCreate
	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 "" 2 Nothing to voItem
		Handle hoItem
		Get Create (RefClass(cComItem)) to hoItem
		Set pvComObject of hoItem to voItem
			Variant voItems1
			Get ComItems of hoItem to voItems1
			Handle hoItems1
			Get Create (RefClass(cComItems)) to hoItems1
			Set pvComObject of hoItems1 to voItems1
				Get ComAdd of hoItems1 "Item 1" Nothing Nothing to Nothing
				Get ComAdd of hoItems1 "Item 2" Nothing Nothing to Nothing
				Get ComAdd of hoItems1 "Item 3" Nothing Nothing to Nothing
			Send Destroy to hoItems1
			Set ComGroupPopup of hoItem to (OLEexNoGroupPopupFrame + OLEexGroupPopup)
		Send Destroy to hoItem
	Send Destroy to hoItems
	Send ComRefresh
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,oItems1
	LOCAL oRibbon

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

	oRibbon := XbpActiveXControl():new( oForm:drawingArea )
	oRibbon:CLSID  := "Exontrol.Ribbon.1" /*{DDF58CFA-750F-45E0-8A00-CFBE431702E2}*/
	oRibbon:create(,, {10,60},{610,370} )

		oItems := oRibbon:Items()
			oItem := oItems:Add("",2)
				oItems1 := oItem:Items()
					oItems1:Add("Item 1")
					oItems1:Add("Item 2")
					oItems1:Add("Item 3")
				oItem:GroupPopup := 3/*exNoGroupPopupFrame+exGroupPopup*/
		oRibbon:Refresh()

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