molla2005b Posted November 22, 2021 Share Posted November 22, 2021 hi please add AutoLock property to TUniBitBtn and TUniToolButton currently available for TUniButton only thanks Link to comment Share on other sites More sharing options...
Sherzod Posted November 23, 2021 Share Posted November 23, 2021 6 hours ago, molla2005b said: please add AutoLock property to TUniBitBtn and TUniToolButton currently available for TUniButton only Hello, I think you can also use this way... procedure TMainForm.UniFormCreate(Sender: TObject); begin with UniBitBtn1 do begin ScreenMask.Enabled := False; ClientEvents.Enabled := True; ClientEvents.UniEvents.Values['ajaxCallback'] := 'function ajaxCallback(sender, response){sender.setDisabled(false)}'; ClientEvents.ExtEvents.Values['click'] := 'function click(sender, e, eOpts){sender.setDisabled(true)}'; end; end; Link to comment Share on other sites More sharing options...
molla2005b Posted November 23, 2021 Author Share Posted November 23, 2021 thank you for your fast response can I use this code? TUniButton(btnSave).AutoLock:=True; btnSave is a TUniToolButton. I always try to use less JavaScript in my code. best regard Link to comment Share on other sites More sharing options...
Sherzod Posted November 23, 2021 Share Posted November 23, 2021 15 minutes ago, molla2005b said: btnSave is a TUniToolButton I'm not sure, probably not. Link to comment Share on other sites More sharing options...
Recommended Posts