add items to combobox from delphi

edited May 2013 in FastReport 3.0
Hi,
I try to add items to combobox (newdialog) from delphi but I don't Know How.
Please any help.
Thanks

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 4:00AM
    after loading the report
    var

    Page: TfrxDialogPage;

    Button: TfrxButtonControl;
    Combobox : TfrxCombobox;


    { add a page }

    Page := TfrxDialogPage.Create(frxReport1);

    { create a unique name }

    Page.CreateUniqueName;

    { set sizes }

    Page.Width := 200;

    Page.Height := 200;

    { set a position }

    Page.Position := poScreenCenter;
    //add a combobox
    combobox:=tfrxcomboboxcontrol.create(page);
    combobox.createuniquename;
    combobox.setbounds(60,140,75,25);
    combobox.items.add(itemname);

    should be something like above

Leave a Comment