Jump to content

skafy

uniGUI Subscriber
  • Posts

    216
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by skafy

  1. Hi

     

    I would like to as you guys if you have any ideas about how could i present tiff files. For now I convert them to pdf when form loads and show them in TUniURLFrame. But it takes a lot of time for tiff files with higher number of pages. I'm using IE 11 and i know that there is AlternaTIFF but i can not deploy it to all clients.

     

    Any other suggestion?

  2. FunnyBlue, so do I.

     

    I mark every field in DBGrid (Dataset) as sortable.Then I build up an index for Field on witch click was made. So sorting is made on clientsite.

  3. Hello,

     

    I'm having a problem with viewing PDF files in my application. I then tried to run UniGui pdfviewer example and having the same problem. I have Adobe Acrobat Reader DC with patch 2015.023.20053 witch came on Januar 10 2017. With previous version of acrobat reader (20030 or something) there is no problem.

     

    Steps to reproduce:

    • Have instaled Adobe Acrobat Reader DC 2015.023.20053 
    • Run PDFViewer example from UniGui (localy)
    • Close form (with X) when pdf loades.

     

    You will get a freeaze of duration 5+ sec. In Task manager 2 processes of Acrobat lives, and if you kill one while form closing, form close immediately.

     

    Is there mybe a workaround or solution for this problem?

     

     

    • Upvote 1
  4. I see. This can be done yes, but I'm looking for more sophisticated solution. Because in your case, if there would never be 0 session (someone would allways be on (just assuming)) then new version would never take place as active one.

  5. Hi,

     

    I am wondering how could I automaticly switch between releases. For better understanding I will represent idea on example:

    There is running standalone server UniGui. People are connected to it and doing something on the website. Then I need to change something and create new release. Situation now is that I can switch releases when there is noone connected to website OR I kill server (and terminate all current sessions) and switch it as fast as possible so people will use new version of the program (website).

    Is there a way automaticly switch between versions whitout killing active sessions on server or switchig it when noone is around. Like when I new relase apper newly created session will use new release and  sessions in old relase would normaly use old one until they refresh or reenter website. Older release would stop, when there is newer release is available and when session cound is 0.

     

    Any idea?

  6. Ok, maybe I understood. I usually hold FDConnection inside DataModule and not MainForm. In your case I would create setup function right after creating DataModule. I give to this setup method pointers of components as parameters from main form that i'll be using in datamodule.

    procedure TGenerateUniGuiCode.SetUp(ASomeConnection: TFDConnection; AAnotherConnection: TFDConnect);
    begin
      //Connection1 and Connection2 are TFDConnetion
      Connection1:= ASomeConnection;
      Connection2:= AAnotherConnection;
    end;
    procedure TMainForm.UniFormCreate(Sender: TObject);
    var
      CodeGenerator: TGenerateUniqueCode;
    begin
      FGenerateUniqueCode: TGenerateUniqueCode.Create(Self);
      FGenerateUniqueCode.SetUp(ASomeConnection, AAnotherConnection);
    end;
  7. Something like this

     

    DataModule:

    function TGenerateUniGuiCode.GenereteSomeCode : string;
    var
      SomeCode: string;
    begin
      SomeCode:= 'SomeCode';
      Result:= SomeCode;
    end;

    MainModule:

    procedure TMainForm.UniFormCreate(Sender: TObject);
    var
      CodeGenerator: TGenerateUniqueCode;
    begin
      CodeGenerator: TGenerateUniqueCode.Create(Self);
      FGenerateUniqueCode:= CodeGenerator.GenereteSomeCode; //function returns string and saves it to property  
    end;
  8. When I investigate i couldn't find another option. When I think of it now, I will probably change it so user will have to put its credentials once and I would then save it with cookies(would check whid LDAP). It would cover multiple browser insted of just IE. 

  9. Hello,

     

    I recently notices that I'm getting blank white page after dialog is closed. In my application on MainForm I have DBGrid and when double click is performed detail form is shown. After I click close button on this detail form I get white blank page. It seems that behind the whiteness there are all controls from MainForm, but they aren't visible.

     

    Attachments:

    • On start there is MainForm (MainForm.png)
    • Double click on the record opens details dialog (DetailsDialog.png)
    • When Close button on details dialog is clicked, I get whiteness (BlankWhite.png)

    Because this started recently I suspected that some IE patch made this. I found out that this blank white page only apper on Windows 7, witch has IE 11 with KB3197655 patch installed (seen in Windows 7 - IE11.png). I followed this patch on MS website (https://support.microsoft.con/en-us/kb/3197655). There is this drawElements (KB3203729) that they fixed witch I think is a change that causes me problems. On other IE Works just fine, but this combination seems to cause me problem. Blank white page sometimes disaper by it self and show MainForm and sometimes don't. I found that that if I resize IE when there is a white blank page, it dissaper and MainForm is shown.

     

    Please help.

     

    Best regards!

×
×
  • Create New...