Jump to content

Brian

Members
  • Content Count

    1
  • Joined

  • Last visited

Community Reputation

1 Neutral

About Brian

  • Birthday October 3

Technical Information

  • Delphi-Version
    Delphi 11 Alexandria
  1. Brian

    problem with ComboBox

    type TComboboxHelper = class helper for TCombobox public procedure DoOnChange; end; implementation { TComboboxHelper } procedure TComboboxHelper.DoOnChange; begin if Assigned(OnChange) then Onchange(Self); end; I would put this to a helper to save me problems when I change the procedure on combobox OnChange. procedure TForm1.Panel1_Click (Sender: TObject); begin ComboBox1.ItemIndex := 1; ComboBox1.DoOnChange; end;
×