Jump to content

Dimitri

Members
  • Posts

    22
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Dimitri's Achievements

Newbie

Newbie (1/4)

1

Reputation

  1. Hi, Is it possible to disable the auto focus when the mouse over a column.filtering.editor ? Thx
  2. It works ! Thanks. function reconfigure(sender, store, columns, oldStore, oldColumns, eOpts) { var grid = sender; for (var i = 0; i < columns.length; i++) { if (columns[i].getEditor()) { columns[i].getEditor().on('specialkey', function(field, e) { if (e.getKey() == 13) { ajaxRequest(grid, "BeforeCellKeyDown", ["keycode=13"], false); return e.keyCode; } }) } } }
  3. Ok, thanks for your answer. I would like to know when the user presses the Return key to exit the cell edition. Is there any way to know that?
  4. I use the BeforeCellKeydown event in ClientEvents.Ext Events : beforecellkeydown=function beforecellkeydown(sender, td, cellIndex, record, tr, rowIndex, e, eOpts) { var key = e.getKey(); ajaxRequest(this, "BeforeCellKeyDown", ["keycode="+key], false); return true; } Then on the UniDBGRid1.OnAjaxEvent : procedure TMainForm.UniDBGrid1AjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings); var lKey: Integer; begin if EventName = 'BeforeCellKeyDown' then begin lKey := Params['keycode'].AsInteger; UniMemo1.Lines.Add(IntToStr(lKey)); end; end; When you are editing a cell, the key pressed is displayed in the memo to the right of the grid. For example, if I press the "A" key, the number 65 is displayed in the memo. If I press the "Tab" key, the number 9 is displayed in the memo. But I can't display the number of the "Return" key in the memo. It also doesn't work with the "Escape" key.
  5. Hi, How can we catch the Return Key or the Escape Key with the BeforeCellKeyDown event in a FDBGrid ? Thank you Attached to this message is a simple testcase. UniGUI: 1.90.0.1513 EnterKeyDown_ToSend.rar
  6. Hi, I emulate with uniGUI a Desktop system, using a UniGUIForm which is always maximized and accepting other forms inside This desktop form is borderless and always resized to stay maximized on screen, and a button will create a new form inside of it If this 2nd " folder " form is maximized, upon resizing the browser, the form will resize itself, but there will be a gap of one action. That is to say, if I size down the browser, the folder form will not change, this time ; but when I resize it up, it will take the size he should have taken with the previous action What should I do in order to make the folder form resize itself without that resize action delay ? I have made a little project to show the problem in action Thank you UniGUI version : 1.90.0.1513 Windows.zip
  7. Dimitri

    TUniGrid focus

    Ah Thanks. Is it necessary to add Keys to all Forms with MDI Forms ?
  8. Dimitri

    TUniGrid focus

    Hi Sherzod. Did you check it ? Thanks.
  9. Dimitri

    TUniGrid focus

    Yes I already watched it. If I configure the testcase as the MonitoredKey sample it still doesn't work. You can find attached a second version of the testcase. Thanks. DemoFunctionKeys.rar
  10. Dimitri

    TUniGrid focus

    Hi Sherzod. Did you find something ? Thanks.
×
×
  • Create New...