Jump to content

Lajos Juhász

Members
  • Content Count

    1078
  • Joined

  • Last visited

  • Days Won

    15

Everything posted by Lajos Juhász

  1. Lajos Juhász

    create a popupmenu from a SQL

    The hotkey doesn't have to be the first character. A better solution is to set the AutoHotkeys property of the popup menu to maManual. If that's not possible you can use the StripHotkey function from Vcl.Menus to remove the &.
  2. Lajos Juhász

    FireDAC component TFDPhysODBCDriverLink missing

    According to the Delphi 11 feature matrix that's a Architect/Enterprise feature. I cannot check out for Delphi 10.4 but believe it's the same.
  3. I quick google search returned this one: https://devblogs.microsoft.com/math-in-office/richedit-font-binding/ I have to warn you that this is a bug in MS Richedit implementation. I've entered into Microsoft Word using Courier New 11 ──────────────────────────────. No problem there, then copied to the clipboard and pasted to Wordpad.exe the result wordpad changed the font to Segoe UI Symbol 11.
  4. Lajos Juhász

    How to synchronize splitters?

    Why not use the OnMoved event of the splitter?
  5. Lajos Juhász

    Move a form a few pixels??

    Do you get burn-in with LCD? While LCDs are not susceptible to burn-in the same way CRT monitors are, LCDs suffer from what manufacturers call image persistence. Like the burn-in on CRTs, image persistence on LCD monitors is caused by the continuous display of static graphics on the screen for extended periods. (I am not going to test this on my monitor)
  6. Lajos Juhász

    Move a form a few pixels??

    I would do something like this: var ws: TWindowState; l: TRect; begin ws:=WindowState; l:=BoundsRect; try if ws=wsMaximized then WindowState:=TWindowState.wsNormal; SetBounds(l.Left+1, l.Top+1, l.Width, l.Height); Repaint; Sleep(100); finally WindowState:=ws; if ws<>TWindowState.wsMaximized then SetBounds(l.Left, l.Top, l.Width, l.Height); repaint; end; end;
  7. It's https://docwiki.embarcadero.com/Libraries/Alexandria/en/System.UTF8Encode.
  8. Lajos Juhász

    Out Of memory

    In this case Fetchoptions doesn't make a difference. in order to do a client side filter the computer has to load all the data and then can filter out the requested records.
  9. Lajos Juhász

    Out Of memory

    Most probably you're loading 1.7GB data into the memory (you can verify using task manager). Insted of a client side filter you should do a server side.
  10. Lajos Juhász

    delphi Twebbrowser Javascript error

    For me it's happening for about a year maybe a bit longer, before that I used the registry entry for years without a problem.
  11. Lajos Juhász

    delphi Twebbrowser Javascript error

    If you really want to use TWebBrowser you must set FEATURE_BROWSER_EMULATION before using the component (Windows is going to remove it from the registry constantly). Of course this is only a short term solution as IE is dead.
  12. Lajos Juhász

    Delphi 10.4.2 won't open a specific .PAS file

    I didn't started this thread. I just don't care anymore when something doesn't work in the IDE. I already failed to make a test case for more interesting bugs. I just like to use my time in a more productive way.
  13. Lajos Juhász

    Delphi 10.4.2 won't open a specific .PAS file

    There are problems with ctrl+click to open files in D11.1 I didn't checked the RSP. (We can only hope that the beta testers will fill enough bug report on this issue and it will be fixed in the next versions. Dear beta testers the future of the Delphi community is in your hands).
  14. Lajos Juhász

    Write image to database

    In the older version TDBImage didn't supported anything but bitmaps. That's why we used TEDBImage (there are also other sources still floating on the internet how to handle multiple formats in a blob stream).
  15. Lajos Juhász

    DBGrid repaint or refresh when dataset is refreshed

    You can read the protected leftcol property of the grid: type TCrackDBGrid = class(TDBGrid); TCrackDBGrid(DBGrid1).LeftCol will return the first column of the screen.
  16. Lajos Juhász

    AV in bds.exe

    Usually this happens when you install a faulty package to the IDE. Try to uninstall every third party components. You can also try to start the IDE with a new registry key using the -r command line switch (https://docwiki.embarcadero.com/RADStudio/Alexandria/en/IDE_Command_Line_Switches_and_Options).
  17. I know I was tired and english is not mother tongue that's the reason why I later removed my original post.
  18. Lajos Juhász

    Paths in DPR and DPROJ

    The relative path should be ..\SharedCode\FileUtils.pas. I opened a dpr and dproj for an application and there the paths are relative.
  19. Edit. Sorry it's late.
  20. Lajos Juhász

    [Android] How to change regional settings

    Well, you're still changing the year from 2 digits to 4. Anyway Vandrovnik gave you the code I would use.
  21. I peeked at the source code and it calls ReallocMem thus should work as expected.
  22. Lajos Juhász

    [Android] How to change regional settings

    You failed to show us an example where are you have a problem. You can use FormatDateTime or DateToStr with yuor own format settings.
  23. Lajos Juhász

    [Android] How to change regional settings

    If you change the regional settings in your application you will change it in all of the countries the same thing as far as I can see.
  24. Lajos Juhász

    DBGrid repaint or refresh when dataset is refreshed

    https://stackoverflow.com/questions/849568/how-long-does-a-tdataset-bookmark-remain-valid Answer from Jeroen Wiert Pluimers: Like both c0rwin and skamradt already mention: the bookmark behaviour depends on the TDataSet descendant you use. In general, bookmarks become invalid during: close/open refresh (on datasets that support it) data changes (sometimes only deletions) I know 1. and 2. can invalidate your bookmarks in TClientDataSets. I am almost sure that for TClientDataSets it does not matter which underlying provider is used (TSQLQuery, TIBQuery, etc). The only way to make sure what works and what not is testing it. Which means you are totally right in not using them: bookmarks have an intrinsic chance of being unreliable. To be on the safe side, always call BookmarkValid before going to a bookmark.
  25. Lajos Juhász

    [Android] How to change regional settings

    Why would you like to change the regional settings for that case? Use a custom format to convert the date to string.
×