Jump to content

Achim Kalwa

Members
  • Content Count

    67
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Achim Kalwa

  1. Achim Kalwa

    Delphi 12.2 available for download

    Must be rocket science to fix that...
  2. Achim Kalwa

    Does GExperts suffer from amnesia?

    The problem is IMHO: SaveSettings() is called only from the Destructor; that is when the IDE is closed. In case of the Code Librarian, the font size and splitter position issues could be solved by calling SaveSettings() during FormHide(), and calling LoadSettings() during FormShow(). Optionally call SaveSettings() when returning from the Configuration dialog.
  3. Achim Kalwa

    I'm on the Dark Side... no, really!

    Since I am affected of eye floaters for some years, I now prefer the dark mode; and I am working on making GExperts look good in that dark mode. Most changes are already done but not published yet. There are so many dialogs/forms that have to be modifies in the one or other way. Stay tuned 😉
  4. Achim Kalwa

    Proj finding wrong VCL

    Same here when compiling GExperts and switch from Debug to Release mode or vice versa. The number in last part "Found version" changes randomly. I've reported this months ago as https://quality.embarcadero.com/browse/RSP-42675 During the webinar "What's coming in RAD Studio 12.1" in the Q & A session I asked for an update to this bug; and Marco Cantù replied by email: Also make sure that each build configuration uses a separate DCU output folder in the project options, like ".\$(Platform)\$(Config)".
  5. Hello *, our application still uses Firebird 3.0.x with dbExpress for data access. We would like to use Firebird 5.0 in the near future. Some first tests throws an exception "unknown ISC error 0" when executing this simple SQL query: select * from MON$DATABASE Looks like dbExpress can't handle the new "TIMESTAMP WITH TIMEZONE" data type. Is there any switch or parameter to make dbExpress work with Firebird 5? Or do we need to change all the code to use FireDAC? TIA Achim
  6. It is a bug in Delphi 12 (and also Patch 1): https://quality.embarcadero.com/browse/RSP-42675, reported 3 month ago. You need to unload the project and load it again when switching from debug to release or vice versa.
  7. Achim Kalwa

    Delphi 12 is available

    This one is also related to integer division (currency), but I am not sure if its the same cause: https://quality.embarcadero.com/browse/RSP-42753 D12 is currently not usable for me.
  8. Achim Kalwa

    Error on Build of rev 4096 in D12.

    Very strange; none of the source files tries to include a resource file My.RC. Perhaps somewhere in the include path? Do you compile on the command line or from the Delphi IDE? Regarding the missing GExperts_manifest.res: Please try to remove the line {$R 'GExperts_manifest.res' '..\..\Source\GExperts_manifest.rc'} from the end of then GExpertsRS120.dpr file and compile again. I've no idea why the GExperts_manifest.rc is NOT compiled if the $R directive is below the uses list. If I move the $R to the top of the DPR file; just below the {$E dll}, the rc file is compiled into a res file; if compiled from the IDE. I'm going to remove that manifest thing from the D120 source for now until I find a reliable solution.
  9. Achim Kalwa

    Issue with TNumberBox

    I can not confirm with TNumberbox (VCL) ; both Delphi 11.3 and 12.0: Ctrl+A then Delete clear the edit field; and I can type the new value. Which are your values for MinValue and MaxValue? Any non-default property settings?
  10. Achim Kalwa

    StringGrid: how to get the column number via right-click

    Hi, Use the Grid's OnMouseUp event: procedure TForm4.gridMouseUp(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); var ACol, ARow: Integer; begin if Button = TMouseButton.mbRight then begin grid.MouseToCell(X, Y, ACol, ARow); ShowMessage('Col: ' + ACol.ToString); end; end; HTH
  11. Achim Kalwa

    Component color in design time

    It is not your code, it is the IDE's form designer which ignores the color. Please try Tools->Options->User Interface->Form Designer and uncheck the "Enable VCL Styles" option.
  12. Achim Kalwa

    Upgrading from 11.2 to 11.3

    Hello alogrep, let me answer your 2nd question first: This dialog is somewhat misleading IMHO; read carefully. It tells you that the previous version will be uninstalled if you click "uninstall". The Yes/No-selection in the dialog is about removing stored data from the registry. "No" means "keep all settings", which includes library/search path, toolbar configuration, installed packages and much more. Which leads to your 1st question: No. If you decide to keep the registry settings by choosing "no" (see above), all your own and/or 3rd-party components will be availabel in V11.3. This because V11.2 and V11.3 are binary compatible. HTH
  13. Achim Kalwa

    Delphi beta testing a "premium" privilege?

    Don't panic; Uwe is right. I have reliable information that users with normal Update Subscription will also be invited to the beta test, but only a few days/weeks later. Merry Christmas to you all.
  14. Achim Kalwa

    tedit hint not working

    If you want to see the TextHint even if the TEdit control has the focus, you need to send EM_SETCUEABANNER to the control: https://learn.microsoft.com/en-us/windows/win32/controls/em-setcuebanner like this: uses ... WinApi.CommCtrl, ... procedure TForm1.FormShow(Sender: TObject); begin SendTextMessage(Edit1.Handle, EM_SETCUEBANNER, WParam(True), 'please type here'); end; WParam(True): if the cue banner (text hint) should show even when the edit control has focus. Be aware that VCL controls sometimes gets recreated, resulting in a new handle value and losing previous settings. A better way would be to inherit from TEdit and overwrite the protected DoSetTextHint() method like this: Interface uses ... WinApi.CommCtrl, Vcl.Themes, ...; type TMyEdit = class(TEdit) protected procedure DoSetTextHint(const Value: string); override; end; TEdit = class(TMyEdit); ... Implementation procedure TMyEdit.DoSetTextHint(const Value: string); begin if CheckWin32Version(6, 1) // Windows 7 and up and StyleServices(Self).Enabled and HandleAllocated then SendTextMessage(Handle, EM_SETCUEBANNER, WPARAM(True), Value) else inherited; end; HTH
  15. Hello *, It is a nightmare to install Delphi patches because I have to use two different Windows user accounts; one for installing software, the other one for normal work. And because the patches are remembered in the user's registry during installation, they always end up in the wrong user registry path. Now I'm going to install Delphi 11.1 on a new machine. Is there an installer which already containes the patches and hotfixes since the 11.1 release? On my.embarcadero.com I can download "RAD Studio, Delphi, C++ Builder 11.1 Web Install"; filename: RADStudio_11_1_esd_10_8973.exe (2022-03-15) "RAD Studio 11.1 patch 1" (2022-04-27) "Windows 11 Win32 Debugging Patch for RAD Studio 11.1" (2022-05-27) But there is also a "RAD Studio, C++Builder 11.1.5 Web Install"; filename RADStudio_11_1_5_esd_10253.exe (2022-07-14), but without "Delphi" in the title. Maybe this sounds like a stupid question because "Delphi" is not mentioned: Can I use this for installing Delphi 11.1 and all patches until July 2022? Usually the installer knows what to download by my license key. TIA Achim
  16. Yes, even Delphi 11.1 has a lot of issues with changing display dpi. The only way to "solve" most of this problems is to run the IDE as "DPI unware" (there is an entry in the Windows start menu). But all fonts/icons/designer will be blurry on your 150 dpi display; just as Delphi 10.4 was.
  17. I can reproduct it using the "GetIt package installer": When installing a package which requires an IDE restart (i.e. "Bookmarks" or "Navigator"), or when installing the latest patches, I always get the exception. See attached video. GExperts Crash.mp4
  18. When the installer is running ("RAD Studio Platform Selection"), there is no "installer" process, just bds.exe. So it *is* the IDE but in a special download mode. When all is installed and "Start working" is clicked, the bds.exe is terminated and a new instance of bds.exe is started. That is the time when the error message appears. I already detected that the old instance is killed using Windows API "ExitProcess"; and my guess is that this will not unload the GExperts dll nicely.
  19. Achim Kalwa

    Delphi 11.1 is available

    Thanks. Clearing the "light" theme did help. But I can't use a custom theme. I can load a custom image, but the IDE always stays on "light" theme.
  20. Achim Kalwa

    Delphi 11.1 is available

    I just want to get rid of that colorful gradient image; it hurts my eyes.
  21. Achim Kalwa

    Delphi 11.1 is available

    Any hints on how to customize the background image on Welcome page? Changing the theme in Tools -> Options -> Welcome Page, or loading a custom image, has no effect 😞
  22. Achim Kalwa

    Detecting start of drag operations

    Have a look at this plugin for Outlook which enables drag & drop of any item to applications: https://github.com/tonyfederer/OutlookFileDrag Maybe you find out how it works and port the code to Delphi. If you succeed, please make your solution open source, because I would like to implement it to our application, too 😉 Currently we rely on this plugin.
  23. Achim Kalwa

    OldCreateOrder and Delphi 11

    After reading your post, my first idea was to extend the GX_ExplicitFilterExpert to patch the TCustomForm.DefineProperties() method the same way as for TControl, then adding a WriteProperty('OldCreateOrder', True). But when TCustomFormFixOldCreateOrder calls "inherited DefineProperties", the code recursively calls itself, resulting in a stack overflow. So, I don't have any good idea to solve this problem 😞
×