Jump to content

Sherzod

Moderators
  • Posts

    19793
  • Joined

  • Last visited

  • Days Won

    643

Everything posted by Sherzod

  1. Hi While, maybe will help?: http://forums.unigui.com/index.php?/topic/3733-dblookupcombobox-list-dynamic-size/&do=findComment&comment=17844 Best regards.
  2. Hi Erich. Try to use: Ext.dd.DDProxy Example for the main form: function window.afterrender(sender, eOpts) { sender.dd = new Ext.dd.DDProxy(sender, ''); sender.dd.afterDrag = (function (){sender.doLayout()}); Ext.onReady(function () { Ext.get(sender.id).select(".x-form-field").each(function (el) {sender.dd.addInvalidHandleId(el.dom.id)}) } ); } Best regards.
  3. Hi CastleSoft. Try: UniLabel1.AutoSize := False; Best regards.
  4. Hi mierlp. For me, displayed as follows: Which version you are using? Best regards.
  5. Hi mierlp. While, try: 1. Form.BorderStyle -> bsNone; 2. To prevent resizing the form, you can use this code: (MainForm - > ClientEvents -> UniEvents -> beforeInit) function window.beforeInit(sender, config) { sender.resizable = false; } [3.] And it is to remove a border: http://forums.unigui.com/index.php?/topic/3992-hideremove-the-form-border/&do=findComment&comment=19269 Best regards.
  6. Hi KingOrmon. Create and use the unit DataModule for DataSets ... Sorry if I do not understand the question. Best regards.
  7. without plugin is displayed correctly?
  8. UniDateTimePicker1.DateFormat := 'dd/MM/yyyy'; does not help?
  9. I will try... Have you tried using UniDateTimePicker1 with mask? UniDateTimePicker1 -> ClientEvents -> ExtEvents -> add afterrender function: function afterrender(sender, eOpts) { $("#"+sender.id+"-inputEl").mask("99/99/9999"); }
  10. Hi chefdackel. If I understand you correctly, try: uses ... UniGUIApplication ... procedure TMainForm.UniFormCreate(Sender: TObject); begin UniSession.AddJS('Ext.onReady ( function () {$("#' + UniEdit1.JSName + '_id-inputEl").mask("aa**");});'); //OR UniEdit1.ClientEvents.ExtEvents.Add ('OnAfterrender=function OnAfterrender(sender, eOpts)'+ ' { $("#"+sender.id+"-inputEl").mask("aa**"); }'); end; Best regards.
  11. Hi, Sorry, actually this plugin is not oriented for DB components. But although it is possible to modify the code for the DB component. In your case, On which field you set? (what data type) Best regards.
  12. Hi Try: UniEdit1 -> ClientEvents -> ExtEvents -> add afterrender function: function afterrender(sender, eOpts) { $("#"+sender.id+"-inputEl").mask("aa***"); } function beforeInit(sender) { Ext.onReady( function () { $("#"+sender.id+"-inputEl").mask("99/99/9999"); }); } Best regards.
  13. Hi! This is a masked input plugin for the jQuery javascript library. (Hayri Aslan more professionally implemented this feature: http://forums.unigui.com/index.php?/topic/4475-uniexclusive/) Source and usage: http://digitalbush.com/projects/masked-input-plugin/ Demo: http://digitalbush.com/projects/masked-input-plugin/#demo Simple example of use (eg with component UniEdit): 1. It is necessary to download the two files and include in your project 1. jquery 2. jquery.maskedinput.min.js 2. 1. UniEdit1.Text := ''; 2. UniEdit1 -> ClientEvents -> UniEvents -> add function beforeInit: function beforeInit(sender) { Ext.onReady( function () { $("#"+sender.id+"-inputEl").mask("99/99/9999"); }); } Best regards.
  14. Thank you Hayri Aslan! With your permission, another MASKED INPUT PLUGIN: http://digitalbush.com/projects/masked-input-plugin/ Simple example of use (eg with component UniEdit): http://forums.unigui.com/index.php?/topic/4523-masked-input-plugin/ Best regards.
  15. Hi Erich. And what if, when you click on the left menu, to show the mask before the end of the animation? Best regards.
  16. Hi. UniGUI framework have adopted SPA principles. So I think there is a problem points for SEO. http://en.wikipedia.org/wiki/Single-page_application http://en.wikipedia.org/wiki/Single-page_application#Search_engine_optimization Best regards.
  17. Hi, While, try.. UniCalendarPanel1 -> ClientEvents -> ExtEvents -> add function afterrender: function afterrender(sender, eOpts) { // sunday = 0, monday = 1, ... sender.getActiveView().startDay = 1; } Best regards.
  18. Hi msegura. Try to use: 1. To edit: editingPlugin.startEdit (rowIndx, colIndx); procedure TMainForm.UniButton3Click(Sender: TObject); var gridJSName: string; begin gridJSName := UniDBGrid1.JSName; UniSession.AddJS('if (' + gridJSName + '.editingPlugin) {' + gridJSName + '.editingPlugin.startEdit(' + gridJSName + '.uniRow, ' + gridJSName + '.uniCol)}'); end; 2. To complete editing: editingPlugin.completeEdit (); procedure TMainForm.UniButton4Click(Sender: TObject); var gridJSName: string; begin gridJSName := UniDBGrid1.JSName; UniSession.AddJS('if (' + gridJSName + '.editingPlugin) {' + gridJSName + '.editingPlugin.completeEdit()}'); end; Best regards.
  19. Hi Erich. You solved the problem? Best regards.
  20. Hi Cadilhe. Maybe you're doing something wrong ... Works for me! (may be a difference in the versions? I tested on version 0.94) 1. 2. Or try this: procedure TMainForm.UniTimer1Timer(Sender: TObject); begin UniSession.AddJS('var audio1 = document.createElement(''audio'');' + 'audio1.setAttribute(''src'', ''files/sndBird.wav'');'+ 'audio1.play();'); end; Best regards.
  21. I wish you all good luck!

×
×
  • Create New...