The New button in the Administration --> Choose Company form is an example of a ButtonCombo control.
oItem = oFirstForm.Items.Add("btncombo", SAPbouiCOM.BoFormItemTypes.it_BUTTON_COMBO) oItem.DisplayDesc = True oItem.Width = 128 oButtonCombo = oItem.Specific ' Adding valid values oButtonCombo.ValidValues.Add("1", "this is description 1") oButtonCombo.ValidValues.Add("2", "this is description 2") oButtonCombo.ValidValues.Add("3", "this is description 3") ' Selecting an value oButtonCombo.Select(2, SAPbouiCOM.BoSearchKey.psk_Index) ' Binding valid values with data source oDBDataSource1 = oFirstForm.DataSources.DBDataSources.Add("OCRD") oButtonCombo.DataBind.SetBound(True, "OCRD", "CardType")
ButtonCombo Members