Jump to content

Try to create a new basic Component


ttamturk

Recommended Posts

  • Administrators


unit WidDBComboBox;
interface

uses
  SysUtils, Classes, Controls, uniGUIBaseClasses, uniGUIClasses, uniMultiItem,
  uniComboBox, uniDBComboBox;

type
  TwidDBComboBox = class(TUniDBComboBox)
  private
  protected
    procedure WebCreate; override;
  public
  published
  end;
procedure Register;

implementation

procedure TwidDBComboBox.WebCreate;
begin
  inherited;
  JSConfigPlugin('Ext.ux.form.field.ClearButton', ['serverSideClear', True]);
end;

procedure Register;
begin
  RegisterComponents('WID Components', [TwidDBComboBox]);
end;
end.

 

Link to comment
Share on other sites

Hi,

 

I added these properties to my custom control;

 

    property CheckChangeDelay;
    property ClearButton;
    property RemoteQuery;
    property RemoteQueryDelay;
    property Style;

    property OnChange;
    property OnRemoteQuery;

 

 

Everything is fine except style, i want to use lookupcombobox's text area like normal combobox with text editing support to do RemoteQuery, but how should i do that or how should i know how to do that? Is there any documentation about uniGUI controls properties or events etc. ? This is like blind diving :)

 

Best

Link to comment
Share on other sites

×
×
  • Create New...