Menu

Using TDPFQLPreviewController.. missing header buttons

Gordon
2015-01-29
2015-02-01
  • Gordon

    Gordon - 2015-01-29

    Hi,
    Just noticed something with my most recent compile.. I call

    QLPreviewController.ShowDoc(TempPDFFile, False);

    Before, I had a IOS print menu button on the top right, and a back button on the top left.. Now, they don't show.. If I click in the right area, it works fine.. but you just cant see the buttons..Any ideas?

     
  • Babak Yaghoobi

    Babak Yaghoobi - 2015-01-29

    Hi Gordon

    I will check it tonight !

     
  • Gordon

    Gordon - 2015-01-29

    Works fine in 9.1..

    Look at the proc "TDPFQLPreviewController.Loaded"

    if FBackgroundColor <> TAlphaColors.Null then
    FQLPreviewController.view.setBackgroundColor( TColorToUIColor( FBackgroundColor ) )
    else
    FQLPreviewController.view.setBackgroundColor( TUIColor.Wrap( TUIColor.OCClass.clearColor ) );

    was changed to .. in 9.2

    SetBackgroundColor( FBackgroundColor );

    This introduced the bug..

     

    Last edit: Gordon 2015-01-29
  • Babak Yaghoobi

    Babak Yaghoobi - 2015-01-29

    Hi Gordon

    Can you give me a simple project ?

    Regards

     
  • Gordon

    Gordon - 2015-01-30

    Ok, Here is a sample.. on some demos, it shows, others like this one.. you cant see it.. I wonder if its the view type that it is sitting on? Not sure..

    Try version 9.2, and see for yourself..

     
  • Babak Yaghoobi

    Babak Yaghoobi - 2015-01-31

    Hi Gordon

    Can you put here a image of correct state of your project ?

     
  • Gordon

    Gordon - 2015-01-31

    I will take a pic in the morning.. but if you compile it with 9.1, you will see a done button on the top left.. and a print menu button on the top right..

     
  • Gordon

    Gordon - 2015-01-31

    Here is a screen shot of how it looks in 9.1

     
  • Gordon

    Gordon - 2015-01-31

    This is how it looks in 9.2 and 9.3 with the code change.. Notice missing done and print button..

    Look at the proc "TDPFQLPreviewController.Loaded"

    if FBackgroundColor <> TAlphaColors.Null then
    FQLPreviewController.view.setBackgroundColor( TColorToUIColor( FBackgroundColor ) )
    else
    FQLPreviewController.view.setBackgroundColor( TUIColor.Wrap( TUIColor.OCClass.clearColor ) );

    was changed to .. in 9.2

    SetBackgroundColor( FBackgroundColor );

    This introduced the bug..

     

    Last edit: Gordon 2015-01-31
  • Babak Yaghoobi

    Babak Yaghoobi - 2015-01-31

    Hi Gordon

    Please download last source code and check it and let me know about tit.
    https://sourceforge.net/p/dpfdelphiios/code/

    Regards

     
  • Gordon

    Gordon - 2015-02-01

    Looks great..Thank you so much!

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.