ttamturk Posted October 14, 2014 Share Posted October 14, 2014 Hi, I try to create a new component by looking CustomControl samples but when i start my test project it says "id.on is not a function". I don't have any idea what it is talking about Best ToolbarTest.rar Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted October 14, 2014 Administrators Share Posted October 14, 2014 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 More sharing options...
Administrators Farshad Mohajeri Posted October 14, 2014 Administrators Share Posted October 14, 2014 For what you try to do here is the easiest way: TwidDBComboBox = class(TUniDBComboBox) published property ClearButton; end; Link to comment Share on other sites More sharing options...
ttamturk Posted October 15, 2014 Author Share Posted October 15, 2014 Thanks, but ClearButton doesn't come up with this. Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted October 15, 2014 Administrators Share Posted October 15, 2014 It shows only when there is a text in combo. Link to comment Share on other sites More sharing options...
ttamturk Posted October 15, 2014 Author Share Posted October 15, 2014 It shows only when there is a text in combo. Thanks, I solve that issue there are some of my client-side codes around. Can I add RemoteQuery property simple as like that? Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted October 15, 2014 Administrators Share Posted October 15, 2014 Probably yes. Try publishing below properties. property RemoteQuery; property RemoteQueryDelay; Link to comment Share on other sites More sharing options...
ttamturk Posted October 15, 2014 Author Share Posted October 15, 2014 Yes, and obviously we need to add; property OnChange; property OnRemoteQuery; to use this properties Link to comment Share on other sites More sharing options...
ttamturk Posted October 15, 2014 Author Share Posted October 15, 2014 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 More sharing options...
Recommended Posts