Jump to content

k0de

Members
  • Posts

    18
  • Joined

  • Last visited

Posts posted by k0de

  1. I'm in the main form of writing:

    if (uniEditlogin.Text ="Client1") and (uniEditPass="pass1") then

    PCName="Client1";

     

    if (uniEditlogin.Text ="Client2") and (uniEditPass="pass2") then

    PCName="Client2";

     

    if (uniEditlogin.Text ="Client3") and (uniEditPass="pass3") then

    PCName="Client3";

     

    In another form, there is a DBGrid and a Button that saves data from the DBGrid in *.txt. For Example, the Client saves the data in a (PCName+"\data1.txt"). Client2 saves the data in a (PCName+"\data1.txt") , etc..

    But if Client1 reviews the data (loads them in the form of (PCName+"\data1.txt")) he sees the contents of Client2.

  2. Can you explain what you want to achieve. I do not understand you question.

    Also I should explain setfocus of a Cell in delphi needs EM_SETSEL window message to change to editbox that message is not available in a web browser and other operating systems.

     

    I do not know exact solution for you. But if you want focus where you mouse pointer is, you need scripting.

    Please read document Farshad has described below

    http://www.unigui.com/wpblog/2011/07/29/client-side-scripting-with-unigui/

     

    and see example ClientEvents in http://prime.fmsoft.net/demo/ucdemo.dll

     

    Thanks for the link, but it's not something that should be.

    Put on the form button and DBGrid1.

    What code I write to the event ButtonClick to switch the focus from the button to DBGrid1?

    And this should work in the browser.

  3. Hello.

    In the my project I use uniDBGrid. How to realize the opportunity to move by rows up and down with the arrow keys on the keyboard?

    And how to do so on the form by pressing Enter to react a certain button?

    Please help.

  4. Hallo.

    How do I call a function from ExtJs if the event is not provided for by the parameter of the "sender"?

    example:

    UniStringGrid has event

    function OnAfterEdit(value, originalValue, row, column)

    {

     

    },

    but does not have a parameter of the "sender".

    How to run a function in the

    procedure TMainForm.UniStringGrid1AjaxEvent(Sender: TComponent; EventName: string, Params: TStrings);

    begin

     

    end;

    ???

×
×
  • Create New...