-
Posts
19796 -
Joined
-
Last visited
-
Days Won
643
Content Type
Profiles
Forums
Events
Everything posted by Sherzod
-
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.
-
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.
-
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.
- 32 replies
-
- Masked input
- plugin
-
(and 1 more)
Tagged with:
-
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.
-
Hi, Can you attach a test case? (And your version of uniGUI, and what browser are you using?) Best regards.
-
-
-
Hi, Try, (for example for UniComboBox): UniSession.AddJS(UniComboBox1.JSName + '.expand();'); UniSession.AddJS(UniComboBox1.JSName + '.collapse();'); Best regards.
- 1 reply
-
- 1
-
- UniDBLookupComboBox
- drowdown
-
(and 1 more)
Tagged with:
-
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.
- 3 replies
-
- 1
-
- unidbgrid;
- recordcount;
-
(and 1 more)
Tagged with:
-
Hi hamze. Can you clarify? You want to perform this check on the client side? Best regards.
-
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.
-
Link, where you downloaded the 0.97.0.1074...
-
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.
-
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.
- 3 replies
-
- 1
-
- javascript
- library
-
(and 2 more)
Tagged with:
-
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.
-
http://forums.unigui.com/index.php?/topic/4475-uniexclusive/
-
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.
-
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.
-
where is the right place to read mainform.Width at start ?
Sherzod replied to erich.wanker's topic in General
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. -
Hi SilvaM. You have found a solution? Best regards.
-
Hi Erich. Try this CSS in UniServerModule -> CustomCSS ...: .x-viewport, .x-viewport body { overflow: hidden !important; } Best regards.
-
Hi SilvaM. XY - mouse coordinates? Best regards.
-
Hi Erich. Can you attach a test case? Best regards.
-
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.
-
Hi SilvaM. You want to add to uniPanel, possibility auto scrolling? or ... Best regards.