Jump to content

Ian Branch

Members
  • Content Count

    320
  • Joined

  • Last visited

  • Days Won

    1

Ian Branch last won the day on August 8 2019

Ian Branch had the most liked content!

Community Reputation

40 Excellent

Technical Information

  • Delphi-Version
    Delphi 10.3 Rio

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Ian Branch

    Set form height based on resolution??

    Tks Remy, this works perfectly on all the different resolutions I have tried. Regards, Ian
  2. Ian Branch

    Set form height based on resolution??

    Hi Remy, Apologies, yes I should have mentioned I am using D10.4. Thanks you for the suggestions, I shall give them a try. Regards, Ian
  3. Hi Team, I have had the practice of making the form large enough during IDE development to place all the non-visual components off to the side or below the visual components during development and setting the form height & width so the Form is the correct height and width. This has worked well, until now. In the past my and my users have used 1920 x 1080 screens so everything was fine. I have just installed a 3940 x 2160 monitor. 🙂 Oh the joy of it all. 🙂 Any way, when I now run the App(s) the various forms are too condensed, covering some of the visible components. 😞 Of course, if I shrink the forms to their desired run-time size and comment out the height/width instructions, all is fine. So, to my question.. Is there a mechanism to detect the DPI and adjust the Form height accordingly?? something like.. height := ScreenDPI() * iDesiredHeight; Appreciate any suggestions, Regards & TIA, Ian
  4. Ian Branch

    Problem closing forms..

    Hi Remy, Ahhh. Whew! That's what I have been doing. Thank you for the education. Regards, Ian
  5. Ian Branch

    Problem closing forms..

    Hi Remy, Now that is enlightening. Thank you. So, if I don't put 'Action = caFree' in the OnClose event, when does the from get destroyed. Or, to ask in another direction, how can I ensure the form is destroyed when it is closed? Regards & TIA, Ian
  6. Ian Branch

    Problem closing forms..

    Hi Team, Found it! I progressively removed components/code from Form A until the issue disappeared. Turns out to be a component from a well know component library supplier. I will test the same component in a basic test App to confirm and let them know. Thank you for your guidance and assistance. I have learnt a couple of things from you. Much appreciated. Regards, Ian
  7. Ian Branch

    Problem closing forms..

    Hi Uwe, Yes, they had different names. Kas Ob, Thank you. I will digest and have a play. Will respond later with my results. Regards, Ian
  8. Ian Branch

    Problem closing forms..

    Hi Kas Ob, Regrettably, no. 😞 Regards, Ian
  9. Ian Branch

    Problem closing forms..

    Hi Kas Ob, I tried the same App in D10.3.3 with the same result. I have continued with Create(nil) when creating the forms. I sort of follow what you are saying above. Using your terminology, normally I would expect B to be closed before A. As a test I closed A while B was still open, I got the error. 😞 It is definitely something specific with my App. As indicated previously, I created a dummy App, only components were buttons to call the next form, with the same hierarchy and there was no issue. For now I will just not use 'Action := Free;' in the close of A. Regards & Tks, Ian
  10. Ian Branch

    Problem closing forms..

    Hi Team, Thank you for your inputs. Application structure. MainForm => Form1 => Form2. I changed (self) to (nil). Same issue. I don't want Form2 Modal as it needs to show while the User continues in Form1. I created a bare bones app with the same structure. I didn't get the issue when closing Form1 after closing Form2. 🙂 In my main App I created a new, empty Form2. I got the error again when I tried to close the Form1 after closing Form2. 😞 The error still happens if I disable the Action := caFree in Form2, but not if I disable it in Form1. The error generated is per the attached image. 'DBiLogViewer.exe' is the name of the App. Regards, Ian
  11. Ian Branch

    Problem closing forms..

    Hi Team, D10.4, 32bit App, Win 10. I am calling a sub form from a sub form as follows.. // MyForm := TMyForm.Create(self); MyForm.sFormID := '3'; // Pass a key value. MyForm.Show; // It all works fine. I close the sub-sub form in the FormClose event as follows.. // Action := caFree; // I close the sub-form the same way.. // Action := caFree; // Problem - When I close the sub form I get an Access violation error. If I remove the "Action = caFree" from the sub form it closes without issue. Can somebody please enlighten me as to what is going on and how to resolve it? Regards & TIA, Ian
  12. Ian Branch

    TLabel in a TTitleBarPanel??

    Tks. I did find that example/demo. Your suggestions noted. Regards, Ian P.S. I use BitDefender AV and it flags the App with a TTitleBarPanel 😞 I am confident it is OK so I told BD to ignore it.
  13. Ian Branch

    TLabel in a TTitleBarPanel??

    Hi Team, Is it possible to have and display a TLabel in D10.4's TTitleBarPanel? I can put the Label on the panel but it doesn't show. Is there a Demo of the TTitleBarPanel usage anywhere? Regards & TIA, Ian
  14. Ian Branch

    Help Border icon only?

    Tks Remy, I half expected that. I did briefly, a while ago, have a look at the Custom Title Bar concept but was not impressed by it. I will have another look. Regards, Ian
  15. Ian Branch

    Help Border icon only?

    Hi Guys, I want to have just the Help border icon, biHelp, visible on a form but it seems to require the SystemMenu icon, biSystemMenu, as well. Is there any way to have just the Help icon? Regards & TIA, Ian
×