Jump to content
uniGUI Discussion Forums

cristian

uniGUI Subscriber
  • Content Count

    71
  • Joined

  • Last visited

Community Reputation

1 Neutral

About cristian

  • Rank
    Member

Recent Profile Visitors

371 profile views
  1. cristian

    how terminate a threads at the end of the session

    Hi Mr Farshad In mainform I create an instance of this thread when a user presses a button. The operation could be very long so I want to be able to invoke tthread.terminate when the session is abandoned by the user. This object is a private variable of the main form. Tnks for help
  2. Hi, small question unigui vers 1.9.0.1526 in general if I close a browser tab (whith an unigui session inside) i receive UniFormAjaxEvent='bclose' and then TUniBaseJSForm.DoDestroy-> UniFormDestroy BUT if i execute a thread i dont receive that events. WHY? the session stay alive.. My problem is that i need to terminate a worker thread when the container session is closed.I just can see a UniFormDestroy when i terminate my application.. hint???? tnks
  3. cristian

    unisession.sendfile

    Hi Mr Farshad Mohajeri thanks for the tip: you got it right! It is the fault of the kaspersky antivirus. As soon as I disable the antivirus it doesn't happen anymore. Repeatable condition on 30 on / off tests. Thank you very much for the suggestion: you have given me a great help. Best regards
  4. cristian

    unisession.sendfile

    today I restarted the pc and everything worked at the beginning. After a few attemps he started again.. look at attached immages: it happens. Is there some shared resource maybe? tip?
  5. cristian

    unisession.sendfile

    10 k row no problem. (1 MB file) 300 k row happen every time and file have diffent amount of byte in server on client side. (34 MB file) full example attached sendFile.7z
  6. cristian

    unisession.sendfile

    Hi everyone I have to send to client a CSV, more or less 100 MB, but I see something strange: the received file is shorter respect the file I send, a lot of row are not present. it's like if a 'flush' is missing. Do unisession.sendfile have some limitation? Tip? tnks (unigui 1.90.0.1514, chrome >=73)
  7. cristian

    SetCookie on BackButtonAction(bbaWarnUser)

    Hi tnks for reply, i just need 2 things: 1) How to integrate and where? I mean, is something like addJs and i have to put in main.create? 2) I need to set specific value in cookies, so, can i have an example? Tnks again
  8. Hi ,I'm using unigui UniGui v1.90.0.1514 . I need to set cookie when user see unimainmodule-->BackButtonAction:=bbaWarnUser; A callback to a procedure should be perferct.. It is possible? IN PARTICULAR: i need to set cookie when RELOAD is pressed. Tnks
  9. cristian

    resize image client side

    The constant are used because this is a demo. Is only an offset. I did not understand your answer: I'm just asking for a way to resize an image client side. If is possible to move I suppose that is also possible to resize. I'm doing it wrong?
  10. cristian

    resize image client side

    upd
  11. cristian

    resize image client side

    tnks man
  12. cristian

    resize image client side

    Hi example attached. I need to resize an image from UniButton2-->ClientEvents-->ExtEvents-->Ext.Button.Button-->click Tnks
  13. cristian

    resize image client side

    Hi I need to put procedure TMainForm.UniImage1Resize(Sender: TUniControl; OldWidth, OldHeight: Integer); begin UniImage2.Height := Trunc(UniImage1.Height * 146 / 242); UniImage2.Width := Trunc(UniImage1.Width * 146 / 768); end; into on click client side function click(sender, e, eOpts) { var xy=MainForm.UniImage1.getPosition(true); var x=xy[0]; var y=xy[1]; var w=MainForm.UniImage1.getWidth(); var h=MainForm.UniImage1.getHeight(); MainForm.UniImage2.setPosition(x+(w*417/768), y+(h*23/242)); } Tnks for help Please olso attach documentation eventiClient.7z
  14. cristian

    resize image client side

    Hi I need to resize client side an image as function to another. I'm already able to move and get information as posizion and size but not able to resize clientside. example onclick: function click(sender, e, eOpts) { var xy=MainForm.UniImage1.getPosition(true); var x=xy[0]; var y=xy[1]; var w=MainForm.UniImage1.getWidth(); var h=MainForm.UniImage1.getHeight(); MainForm.UniImage2.setPosition(x+(w*417/768), y+(h*23/242)); MainForm.UniImage2.setSize(500,500); --> not work/ not able to find documentation } tnks all
×