Jump to content

mazluta

uniGUI Subscriber
  • Posts

    118
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by mazluta

  1. ok. i'm trying to write Document Sign Routine.

    a document  is enter to the DMS (Document Managment System) app.

    the user adds the Invoice no, sum, and the group of signers.

    the members of the groups get Mail or SMS or both scheduler until thay sign or unsign.

    the member get message like this

    http://185.185.135.209:8077/?Act=SignRoutine&Ident=26&ChatID=4&UserID=admin

    if you open in chrome (PC) all ok.

    image.thumb.png.073030ff8e272f40d4a769124a8b6fa8.png

    but in Mobile, the picture get all the screen,

    image.thumb.png.adc60679373d50753e7cebfd32ae2bfc.pngI can not open or size with the finger,

    I dont see the lower panels...

     

    i want to see - by the plain end the screen

     

    image.png.7404954192fa4bc51c9f66461cd178e9.png

     

    first I work with frame.

    and when I show the frame and want to change the text of the TitleButtonfrom "Close" to "Back" on after show or ready

    it did not work in 

    self.TitleButton.items[0].caption = 'Back".

    only if I use AddJs + finction+

    AddJs (run the function).

    i can not use the global My_Js_Func.js.

    i am trying to display the 3 containers as vbox automatically by they dont work as "align=alTop".

    so I set the layout as flot and set the top-left-height programmatically (width=100%)

    and the container_1 . height := 800; (after I prepare the screen - and load the image) this don't work so - set it with 

       UniSession.AddJS(PdfContainer.JSName + '.setHeight(''' + IntToStr(NewHeight) + ''');');

        NewTop := 3;
        UniSession.AddJS(PdfContainer.JSName + '.setTop(''' + IntToStr(NewTop) + ''');');
     

    but - as I say - in the develop PC it's work fine.

    in the external server it dont....

    i also want to set the size of the ScrollRange to be total of all containers and margin.

    and I dont no how to set it.

    the : self.ScrollRange := TotalHighet; is not working.

    its look like the render has done and it not repaint itself.

     

  2. image.png.ac1293c83e8d0a562391efae9af654af.png

    see the cursor is between the char 7 and the char d -> position 7 in the TUniEdit

    function keyup(sender, e, eOpts)
    {
      document.getElementById("M1234_aa-inputEl").value = e.target.selectionStart.toString();         the UniEdit just by Id name (given in the form create -                       

               edCCList.JSControl.Id := 'M1234_aa';
             watch that the INPUT name is - M1234_aa-inputEl

      MySendMailFrm.ExtEventResultString.setText(e.target.selectionStart.toString());       the UniLabel by form name and component name
    }

    • Like 1
  3. i tryed.

    procedure TIturDocumentFrame.btnSendMailClick(Sender: TObject);
    Var
      FileAttche : String;
    begin
      If Not fIturResultFrame.DocumentsQry.Active Then
        Exit;
      If fIturResultFrame.DocumentsQry.RecordCount = 0 Then
        Exit;
      FileAttche := fIturResultFrame.DocumentsQry.FieldByName('Mz_FileName').AsString;

      NewSendMailFrm := TSendMailFrm.Create(UniApplication);
      NewSendMailFrm.FilesAttchLists.Add(FileAttche);
      NewSendMailFrm.ShowModal(CallBack_SendMail);
    end;
     

    the ExtEvent dont reconize this name and not - SendMailFrm

  4. i tried 

    function keyup(sender, e, eOpts)
    {
      document.getElementById("M1234_aa-inputEl").value = e.target.selectionStart.toString();
      /*document.getElementById("MyResultString").value = e.target.selectionStart.toString();*/
      
      console.log("sender=" + sender);
      console.log("e=" + e);
      console.log("eOpts=" + eOpts);

      
      fLbl = document.getElementById("MyResultString");
      fLbl.setText(e.target.selectionStart.toString());
    }

    the result :

     

    sender=[object Object] - this give me nothing
    VM247:1 e=[object Object]
    VM247:1 eOpts=undefined

     

    how do i print to the console the TYPE of the obj

    like :

    sender= Ext.form.Field.Text

  5. WOW. thanks very much. a lot of reading.

    one more Q.

     

    i write keyup extevent like this : the purpose is to get the position of the cursor inside the text.....

    function keyup(sender, e, eOpts)
    {
      document.getElementById("M1234_aa-inputEl").value = e.target.selectionStart.toString();
      /*document.getElementById("MyResultString").value = e.target.selectionStart.toString();*/
      
      fLbl = document.getElementById("MyResultString");
      fLbl.setText(e.target.selectionStart.toString());
    }

    M1234_aa-inputEl -> is TUniedit and that work.

    MyResultString -> is some TUniLable - i want is caption to change to the same value - The SetText doesn't do nothing.

  6. 1. on my form i have 2 TUniEdit1

    i want to add ExtEvent to TUniEdit1 onkeyup

    if the user click "^" in the TUniEdit1 i want to set TUniEdit1.Text to 'Hello' inside the OnKeyUp Clieck Event of the ExtEvent

     

    2. in the ExtEvent, Whet is Sender? How Can I See What Is Members and Property Are?

    what is e - the same for Members and Property Are?

    what is eOpts - the same for Members and Property Are?

     

    3. what is "document" or "windows" or "body" as relational to My FORM/FRAME

     

    4. can i run ExtEvent OnKeyUp and the TUniEdit1.OnKeyUp on the same FORM/FRAME?

    what come first? is the ExtEvent is allwes ClientSide And Object.DelphiEvent is Server Side?

     

    5. where can i find deeper documents on the ExtEvent for Older Delphi Developers

×
×
  • Create New...