Jump to content

Sherzod

Moderators
  • Posts

    19796
  • Joined

  • Last visited

  • Days Won

    643

Everything posted by Sherzod

  1. Hi, Try (One way...) maximize: procedure TUniForm1.UniButton1Click(Sender: TObject); begin UniSession.AddJS(UniForm1.WebForm.JSName + '.maximize();'); end; restore: procedure TUniForm1.UniButton2Click(Sender: TObject); begin UniSession.AddJS(UniForm1.WebForm.JSName + '.restore();'); end; Best regards.
  2. Hi Erich, I analyzed, after calling show, calls another function _axy_, which re-establishes the position of the form. If Farshad will give consent, then we can edit the function! _axy_ ... if(c[0]<0){a=true;c[0]=0} ... Best regards.
  3. Hi, Which version are you using? The latest versions have a boolean property "clearButton". In previous versions, we could use this: http://forums.unigui.com/index.php?/topic/4179-help-to-program-an-own-component-based-on-tunidatetimepicker/ Best regards.
  4. Hi, In design time: UniEdit1.PasswordChar := '*'; (But this does not affect the script...) ok I'll try to check on the version 0.93... Best regards.
  5. Hi, Can you attach a test case? (And your version of uniGUI, and what browser are you using?) Best regards.
  6. Hi, in design time: UniEdit1->ClientEvents->ExtEvents add afterrender function: Best regards.
  7. Hi billyChou, If you mean the selection of multiple rows, it is possible Best regards.
  8. Hi, Try, (for example for UniComboBox): UniSession.AddJS(UniComboBox1.JSName + '.expand();'); UniSession.AddJS(UniComboBox1.JSName + '.collapse();'); Best regards.
  9. Hi Michael Schindler! If I understand correctly, try: UniDBGrid1 -> .... function pagingBar.beforeInit(sender, config) { sender.displayMsg = 'Total rows {2}';// defaultvalue = 'Displaying {0} - {1} of {2} sender.displayInfo = true; } Best regards.
  10. Hi hamze. Can you clarify? You want to perform this check on the client side? Best regards.
  11. Hi Erich. Try: //JS UniForm1.window.getY(); //Top UniForm1.window.getX(); //Left or rewrite: //sender.dd.afterDrag = (function (){sender.setPosition(sender.getX(), sender.getY())}); function window.afterrender(sender, eOpts) { sender.dd = new Ext.dd.DDProxy(sender, ''); sender.dd.afterDrag = (function (){sender.setPosition(sender.getX(), sender.getY())}); Ext.onReady(function () { Ext.get(sender.id).select(".x-form-field").each(function (el) {sender.dd.addInvalidHandleId(el.dom.id)}) } ); } now it should work! Best regards.
  12. Link, where you downloaded the 0.97.0.1074...
  13. Hi Erich. At least, in version 0.97.0.1079 works fine. procedure TMainForm.UniButton2Click(Sender: TObject); begin ShowMessage(IntToStr(UniForm1.Top)); end; Best regards.
  14. Hi Friends, In my opinion another excellent javascript library D3 for data visualization (and not only) ... D3.js is a JavaScript library for manipulating documents based on data. D3 helps you bring data to life using HTML, SVG and CSS. D3’s emphasis on web standards gives you the full capabilities of modern browsers without tying yourself to a proprietary framework, combining powerful visualization components and a data-driven approach to DOM manipulation. http://d3js.org/ examples Best regards.
  15. Hi Friends, A simple animation for standard ShowMessage and MessageDlg... Add this CSS in UniServerModule.CustomCSS. .x-message-box { -moz-transition: 0.5s ease-out; /* for Firefox 15 */ -webkit-transition: 0.5s ease-out; /* for Chrome and Safari */ transition: 0.5s ease-out; } http://www.w3schools.com/cssref/css3_pr_transition.asp Best regards.
  16. http://forums.unigui.com/index.php?/topic/4475-uniexclusive/
  17. Hi SilvaM. If I understand correctly, try: UniDBGrid1 -> ... function itemmouseenter(sender, record, item, index, e, eOpts) { if (sender.getSelectionModel()) { sender.getSelectionModel().select(index) }; } Works correctly when: 1. Grouping.Enabled := False; 2. Options, dgRowSelect := True; Best regards.
  18. Hi All. A simple example, which detects the capslock key and displays a warning. Of course it is impossible to determine synchronously, but this code can be useful when your input type = "password" (perhaps the code is not optimal...) UniEdit1 ... -> function afterrender(sender, eOpts) { var capslock_td = document.createElement('td'); capslock_td.setAttribute("id", "capslock_td"); Ext.get(sender.id+"-inputRow").appendChild(capslock_td); //Ext.get(sender.id).appendChild(capslock_td); capslock_td.innerHTML = "<table style='width:120px'><td></td><td><img width=16 height=16 src='ext-4.2.2.1144/resources/ext-theme-classic-sandbox/images/shared/icon-warning.gif'></td><td><span id='capslockspan' style='font-size:13px;'>CapsLock ON!</span></td></table>"; capslock_td.hidden = true; Ext.onReady(function () { function _capsLockDetect(e) { if (!e) e = window.event || null; if (typeof (oncapslock) != "function" || !e) return; var n = e.keyCode ? e.keyCode : e.charCode; if (e.type == "keypress") { var c = String.fromCharCode(n); var cUC = c.toUpperCase(); var cLC = c.toLowerCase(); if (cUC != cLC) oncapslock((e.shiftKey && cLC == c) || (!e.shiftKey && cUC == c)); } else if (e.type == "keydown" && n == 20) oncapslock(false); } if (document.addEventListener) { document.addEventListener("keypress", _capsLockDetect, false); document.addEventListener("keydown", _capsLockDetect, false); } else if (document.attachEvent) { document.attachEvent("onkeypress", _capsLockDetect); document.attachEvent("onkeydown", _capsLockDetect); } else document.onkeypress = document.onkeydown = _capsLockDetect; window.oncapslock = function (on) { Ext.get("capslock_td").dom.hidden = !on } }); } Best regards.
  19. Hi Erich. If I understand correctly, try: UniForm1 ... -> function window.beforeshow(sender, eOpts) { //UniForm1.left := ... //this.setPosition(1000); this.setPosition(Math.round(MainForm.form.width / 2) - Math.round(this.width / 2) ); } Best regards.
  20. Hi SilvaM. You have found a solution? Best regards.
  21. Hi Erich. Try this CSS in UniServerModule -> CustomCSS ...: .x-viewport, .x-viewport body { overflow: hidden !important; } Best regards.
  22. Hi SilvaM. XY - mouse coordinates? Best regards.
  23. Hi Erich. Can you attach a test case? Best regards.
  24. Hi Guillermo, Apparently this tooltip from here: http://www.nickstakenburg.com/projects/prototip2/ Try these links, may help you: http://dzineblog.com/2008/10/30-tooltips-scripts.html https://urin.github.io/jquery.balloon.js/ http://csstooltip.com/ http://www.beauscott.com/examples/help_balloons/doc/examples.php http://html-generator.weebly.com/css-speech-bubble-generator.html Best regards.
  25. Hi SilvaM. You want to add to uniPanel, possibility auto scrolling? or ... Best regards.
×
×
  • Create New...