stas Posted October 19, 2013 Share Posted October 19, 2013 Simple ext.form.triggerfield unigui wrapper UniButtonEdit.rar 1 2 Quote Link to comment Share on other sites More sharing options...
Sistema Fenix Posted October 19, 2013 Share Posted October 19, 2013 Hi Stas, Thanks for sharing. Grateful. Quote Link to comment Share on other sites More sharing options...
Renato Henrique Posted February 4, 2014 Share Posted February 4, 2014 Does not work in version 1024 does anyone know why.... Quote Link to comment Share on other sites More sharing options...
David Oliveira Posted June 4, 2014 Share Posted June 4, 2014 does not work in version 0.95.0.1046, and now batman? Quote Link to comment Share on other sites More sharing options...
stas Posted June 5, 2014 Author Share Posted June 5, 2014 OK UniButtonEdit.zip 1 Quote Link to comment Share on other sites More sharing options...
Renato Henrique Posted June 5, 2014 Share Posted June 5, 2014 Grateful. Quote Link to comment Share on other sites More sharing options...
rfssilvasp Posted August 12, 2014 Share Posted August 12, 2014 Hi ! When I try install, the component cannnot load TUnistring ? Did anybody get install ? Thanks Quote Link to comment Share on other sites More sharing options...
NelsonFS Posted August 27, 2014 Share Posted August 27, 2014 When click in ExtEvents to open, appears message error: [Window Title]DbGrid1 - Delphi XE6 - Main [built][Content]Resource EXTJS_EXT_FORM_TRIGGERFIELD not found[OK] How to fix?? Quote Link to comment Share on other sites More sharing options...
stas Posted August 28, 2014 Author Share Posted August 28, 2014 Replace In procedure TUniButtonEdit.ConfigJSClasses(ALoading: Boolean); from JSObjects.DefaultJSClassName:='Ext.form.TriggerField'; to JSObjects.DefaultJSClassName:='Ext.form.field.Trigger'; 1 Quote Link to comment Share on other sites More sharing options...
NelsonFS Posted August 28, 2014 Share Posted August 28, 2014 Replace In procedure TUniButtonEdit.ConfigJSClasses(ALoading: Boolean); from JSObjects.DefaultJSClassName:='Ext.form.TriggerField'; to JSObjects.DefaultJSClassName:='Ext.form.field.Trigger'; Works fine!! Thank you Stas! Quote Link to comment Share on other sites More sharing options...
asapltda Posted March 2, 2015 Share Posted March 2, 2015 Simple ext.form.triggerfield unigui wrapper Hi Stas, Thanks for sharing. Grateful. You might call this component to a form ? When you press the button , do a ShowModal a way , I tried but I failed to show how I appreciate the support you can give me code: unit UniButtonEdit; interface uses SysUtils,Classes,uniGuiTypes, uniGUIClasses,UniEdit , uniGUIForm , uniGUIAbstractClasses, uniGUIApplication , uniGUIBaseClasses , controls ; type TIconCls = (action, add, arrow_up, arrow_right, arrow_down, arrow_left, bookmarks, compose, delete, download, favorites, info, more, refresh, reply, search, settings, star, team, time, trash, user); Type TUniButtonEdit = class(TUniEdit) private FOnButtonClick: TNotifyEvent; FIconCls: String; procedure SetIconCls(const Value: String); function GetTriggerCls: String; procedure ShowForma; protected procedure DOHandleEvent(EventName: string; Params: TUniStrings); override; procedure ConfigJSClasses(ALoading: Boolean); override; procedure LoadCompleted; override; procedure Click ; override; // CRAMIREZ public constructor Create(AOwner:TComponent); override; published property OnButtonClick:TNotifyEvent read FOnButtonClick write FOnButtonClick; property IconCls:String read FIconCls write SetIconCls; property triggerCls:String read GetTriggerCls; End; procedure Register; implementation uses UniButtonForm ; // CRAMIREZ procedure Register; begin RegisterComponents('uniGUI Custom', [TUniButtonEdit]); end; { TUniButtonEdit } function TUniButtonEdit.GetTriggerCls: String; begin if FIconCls<>'' then Result:='x-form-'+FIconCls+'-trigger' else Result:=''; end; procedure TUniButtonEdit.ConfigJSClasses(ALoading: Boolean); begin inherited; JSObjects.DefaultJSClassName:='Ext.form.TriggerField'; end; constructor TUniButtonEdit.Create(AOwner: TComponent); begin inherited; FIconCls:='search'; // <----- tipo de icono end; procedure TUniButtonEdit.Click; begin inherited; ShowForma; // CRAMIREZ end; procedure TUniButtonEdit.ShowForma; // CRAMIREZ VAR FUniButtonForm : TFUniButtonForm; begin text:= 'YYYY'; TFUniButtonForm.create(uniapplication); FUniButtonForm.SHOWMODAL( procedure(Sender: TComponent; Result: Integer) var i:Integer; begin // LOGIN OK if Result = mrOk then begin end ; if Result = mrcancel then begin end; end) end; procedure TUniButtonEdit.DOHandleEvent(EventName: string; Params: TUniStrings); begin if (EventName='buttonclick') then begin if Assigned(FOnButtonClick) then FOnButtonClick(Self); end; inherited; end; procedure TUniButtonEdit.LoadCompleted; begin inherited; if WebMode then begin if FIconCls<>'' then JSCode('triggerCls:"'+triggerCls+'"'); JSCode('hideTrigger:false'); JSAfterCreate(JSName+'.onTriggerClick=function(){ajaxRequest('+JSName+',"buttonclick",[]);};'); end; end; procedure TUniButtonEdit.SetIconCls(const Value: String); begin FIconCls := Value; end; end. Quote Link to comment Share on other sites More sharing options...
NelsonFS Posted October 14, 2016 Share Posted October 14, 2016 Modified source to add UniButtonDBEdit.UniButtonEdit + UniButtonDBEdit together in dpk project.Compiled in Seattle upd1, but must run in previous versions. https://mega.nz/#!j88x3azR!VChDkQ5jW5gHl18SQCwkvFmuqszXJzmNSD5N2JRO7Yo 1 Quote Link to comment Share on other sites More sharing options...
ricardolb Posted October 20, 2016 Share Posted October 20, 2016 Is there a way to add more than a button? Quote Link to comment Share on other sites More sharing options...
Freeman35 Posted October 24, 2016 Share Posted October 24, 2016 Hello, I tried to make in Trail 1321. type TUnimButtonEdit = class(TUnimEdit) private when show "TUnimForm", I get "Ajax error" Ext.form.field is undefined. How to use for mobile this component? Thank you. Quote Link to comment Share on other sites More sharing options...
shawdown Posted June 7, 2017 Share Posted June 7, 2017 Link error bro. Upload again? Modified source to add UniButtonDBEdit.UniButtonEdit + UniButtonDBEdit together in dpk project.Compiled in Seattle upd1, but must run in previous versions. https://mega.nz/#!j88x3azR!VChDkQ5jW5gHl18SQCwkvFmuqszXJzmNSD5N2JRO7Yo Quote Link to comment Share on other sites More sharing options...
NelsonFS Posted June 7, 2017 Share Posted June 7, 2017 https://mega.nz/#!2p9GhR5C!VChDkQ5jW5gHl18SQCwkvFmuqszXJzmNSD5N2JRO7Yo Quote Link to comment Share on other sites More sharing options...
tintinsoft Posted July 2, 2017 Share Posted July 2, 2017 https://mega.nz/#!2p9GhR5C!VChDkQ5jW5gHl18SQCwkvFmuqszXJzmNSD5N2JRO7Yo delphi 10.2 + unigui V1-1397+Mobile, It raise error " cannot read property "Trigger" of undefine Quote Link to comment Share on other sites More sharing options...
Rav Posted October 29, 2017 Share Posted October 29, 2017 Setting the ReadOnly property to true makes the trigger buttons to disappear. Is there a workaround? Quote Link to comment Share on other sites More sharing options...
NelsonFS Posted April 19, 2018 Share Posted April 19, 2018 The previous version did not work with extjs6. This new version will have separated, two projects that will allow to be compatible. Will work in the latest version of unigui with extjs6. https://mega.nz/#!LlV1XRSA!TVMUEYGOlV-7Dp7TxyNt68BtXfRW2Pt7SLTS-0JQAS0 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 19, 2018 Share Posted April 19, 2018 Hi, If I understand you correctly, you can use triggers config for this: http://forums.unigui.com/index.php?/topic/7969-how-to-add-a-search-icon-in-tuniedit/&do=findComment&comment=54542 Quote Link to comment Share on other sites More sharing options...
NelsonFS Posted April 20, 2018 Share Posted April 20, 2018 Hi, If I understand you correctly, you can use triggers config for this: http://forums.unigui.com/index.php?/topic/7969-how-to-add-a-search-icon-in-tuniedit/&do=findComment&comment=54542 This dowonload link already contains the update for ExtJS6 using the JSConfigObject to create the triggers. If any user already uses the TUniButtonEdit in their projects, they can upgrade to that version that will work on the UniGUI Beta 1.0.2+ and higher versions. And it also contains the UniButtonEditv6 package for ExtJS6 and new versions of UniGUI. https://mega.nz/#!LlV1XRSA!TVMUEYGOlV-7Dp7TxyNt68BtXfRW2Pt7SLTS-0JQAS0 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 20, 2018 Share Posted April 20, 2018 OK Nelson, got it Quote Link to comment Share on other sites More sharing options...
leons Posted June 14, 2018 Share Posted June 14, 2018 VNGNCMVVerzonden vanaf mijn iPhone met Tapatalk Pro Quote Link to comment Share on other sites More sharing options...
leons Posted June 16, 2018 Share Posted June 16, 2018 Something went wrong with my iPhone or so, sorry for the useless response..... Quote Link to comment Share on other sites More sharing options...
NelsonFS Posted June 17, 2019 Share Posted June 17, 2019 Updated link https://mega.nz/#!f9U31ShZ!TVMUEYGOlV-7Dp7TxyNt68BtXfRW2Pt7SLTS-0JQAS0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.