Jump to content

Uwe Raabe

Members
  • Content Count

    854
  • Joined

  • Last visited

  • Days Won

    57

Everything posted by Uwe Raabe

  1. That should work with PerMonitor v2 as well. The application reads the DPI from the current monitor (even if there is only one) and scales accordingly.
  2. Yes, that is what the DPI options in Manifest are for. If you have multiple monitors with different DPI and a more recent Windows 10 version I suggest the Per Monitor v2 setting.
  3. Perhaps we are talking about different things. The settings for DPI awareness are only valid when running the application, not when designing it. A form designed with PixelsPerInch set to 120 is not scaled when opened In Delphi 10.3 on a system with PixelsPerInch=96. You already found that out. That is different to older versions and I am not aware of any setting to change that. You need to open the form with an older version of Delphi (still implementing this behavior) on the 96 dpi system, save the form with 96 dpi and you are good. In case you consider waiting for Embarcadero to fix this, there already is QP entry 15141 closed as Won't Fix.
  4. Try with a fresh project. If that succeeds, find out the differences to your project.
  5. Uwe Raabe

    GridPanel question

    Sounds like a TFlowPanel may be better suited for that. Just set the Control.Parent to the FlowPanel and then use FlowPanel.SetControlIndex to move it to the desired position.
  6. If you have a static IP in your local router, you can add a port forwarding in the router to the FireBird server. This allows the FireBird server to be accessed from outside your local network. Note that this is actually opening up your local network to the Internet, so you need some expertise to setup all this in a safe and reliable way. If you are not familiar with the terms mentioned above, I suggest asking for professional help.
  7. Uwe Raabe

    Making method with default encoding

    I guess you have to use overload methods. function Format(const Format: string; const Args: array of const): string; overload; function Format(const Format: string; const Args: array of const; const AFormatSettings: TFormatSettings): string; overload;
  8. Actually, these messages should not be sent in the first place. Seems I somehow missed to switch of some settings before compiling the release.
  9. Code that doesn't interact, so it can be split in separate parts without change. In the context above that means, one can identify properties, fields and methods in a class that can live on their own. If you delete all of these, the rest of the code is still compiling. Also vice versa, if you delete all the other code it still compiles. You can achieve the same result by just copying the class and then deleting one part in each.
  10. The task to extract the controls from a tab sheet or other part of a form into a frame is quite common. A requirement is the code affecting those controls being orthogonal in the first place. The I am able to copy all relevant properties, methods and event handlers from the form class into the frame class. After that I can copy the controls from the form designer into the frame. This usually keeps the event handlers wired. After verifying that everything still compiles I am able to remove all those properties, methods and controls from the original form and clear the event handlers so that they will be removed. All this are about three or four steps when using MMX. I am pretty sure that writing an expert able to do all this automatically will be pretty complicated and error prone. It might work for some simple cases, but probably not for medium sophisticated code.
  11. You can inherit from a class helper, so it is still possible to extend that one. Alas, that doesn't work for record helpers.
  12. I usually write class helper for this. They can easily be removed when older versions are dropped.
  13. Uwe Raabe

    looking for a lo-fi Delphi Style

    Perhaps someone can write a DFM-to-Balsamiq converter. It's pretty much just a SQLite database.
  14. Not that I am aware off. A workaround could be to open and save all forms in D2007 on a system with PixelsPerInch = 96.
  15. The handling of PixelsPerInch has changed in recent Delphi versions with High DPI support. This may be the cause of what you see here.
  16. Uwe Raabe

    Why does this code work when it shouldn't?

    Resizing an array to a smaller length doesn't invalidate the other elements. You should have range checking on to catch this error.
  17. Uwe Raabe

    Find record operators via Rtti?

    Indeed, it is a method with MethodKind = mkOperatorOverload.
  18. Uwe Raabe

    Delphi 10.3.3 Problems with x64-Debugger

    No problems here. Everything working as expected. I am not aware of having tuned something for that.
  19. Indeed, currently Hyper-V doesn't play well with any other hypervisor system. This is going to change in the near future at least for VMware Workstation, though.
  20. Uwe Raabe

    Rio and MDI Applications

    Taken from: http://docwiki.embarcadero.com/RADStudio/Rio/en/Per_Monitor_V2
  21. Uwe Raabe

    Feature: ParentFont? Yes, but...

    I would like to discuss a feature here before creating a QP entry for that (which seems not to be possible in the moment anyway). There is often the case where I want some controls to be emphasized somehow by adjusting the font style or font color. This will automatically set ParentFont to False . As a drawback the control will no longer act on any changes to the parent font - obviously. In times of VCL styles and the ability for the user to change style and font, this can lead to a bit of extra work to get things looking pretty again. What would you think of a feature like: Yes, I want to use the ParentFont, but don't touch my font style and/or font color settings. I have something in mind like the StyleElements property, where you can select which font properties are to be inherited from the parent and which are not. What do you think?
  22. Uwe Raabe

    Feature: ParentFont? Yes, but...

    I included everything available just to not miss something. I agree that the list can be reduced. After all, it is only a suggestion - not the implementation. It might be worth to add your comment to QP, so it will find its way to the person in charge.
  23. Uwe Raabe

    Feature: ParentFont? Yes, but...

    https://quality.embarcadero.com/browse/RSP-27932
  24. Uwe Raabe

    Bug when editing a class property?

    I can confirm that even for 15.0.12 - a fix is in the pipeline. As a workaround add these files to the Excluded list: System IdGlobal IdThreadSafe
  25. Uwe Raabe

    Feature: ParentFont? Yes, but...

    Of course there are workarounds and you can always do such settings in the code. I know there are suggestions to get rid of the DFM in general and do all in the code. On the other hand there are plenty of people that prefer setting such things in the Object Inspector.
×