Jump to content

Lajos Juhász

Members
  • Content Count

    796
  • Joined

  • Last visited

  • Days Won

    11

Posts posted by Lajos Juhász


  1. HandleCommand is an event handler, it should be a method of an object, not a procedure. You should add it to your TfrmMainClass.


  2. 2 minutes ago, Luis Enrique said:

    've already seen that the old Embarcadero Getit server is not working. So, what should I do to make it work again?

     

    You have multiple choice:
    - You can try to send money to Embarcadero. Maybe then they will be able to buy a better hardware. 

    -Build a time machine. First travel back in time and install it while the "get it" was working.


  3. There is a bug in the component. Here is the call stack:

    rtl.System.Classes.ClassNotFound(???)
    rtl.System.Classes.FindClass(???)
    :55c8a47c FindClass + $18
    :2490ca39 TPdfDoc.GetFont + $A1
    :2490e778 TPdfCanvas.SetFont + $38
    :2490e404 GetCurrentFont + $120
    :2490e653 TPdfCanvas.SetPage + $13F
    :2490d393 TPdfDoc.AddPage + $23F
    :2490d7cf TPdfDoc.SetVirtualMode + $17
    :24917b19 TPRPage.Create + $99
    :526fd80a delphicoreide290.@Comppalmgr@TComponentPalettePageItemDelegate@CreateComponent$qqrxp25System@Classes@TComponentt1x60System@%DelphiInterface$33Componentdesigner@IDesignerModule%rx18System@Types@TRect + 0x1a
    designide.ComponentDesigner.TComponentRoot.DoCreateComponent(???,TWinControlItem($29E91FD0) as IItem,(0, 0, 0, 0, (0, 0), (0, 0)),True,True)
    designide.ComponentDesigner.TComponentRoot.CreateComponent(TComponentPalettePageItemDelegate($2450B928) as IInternalPaletteItem)
    :526f9b67 delphicoreide290.@Comppalmgr@TPalettePageItem@Execute$qqrv + 0x47
    :54519dc5 coreide290.@Toolfrm@TToolForm@DoItemExecute$qqrxp29Vcl@Categorybuttons@TBaseItem + 0x3d
    :54516548 coreide290.@Toolfrm@TToolForm@FilterEditKeyDown$qqrp14System@TObjectrus58System@%Set$30System@Classes@TShiftStateItemt1$i0$t1$i10$% + 0x50
    vcl.Vcl.Controls.TWinControl.KeyDown(???,[])

     

     

    I have no time at the moment to investigate. 


  4. 5 hours ago, gwideman said:

    Or is it OK starting with nothing set for Graphic, and then just calling LoadFromFile creates the object that Graphic points to, of a type that matches the input image data? 

    When the image format is registered the loadfromfile will create the class required to load the image.

     

    5 hours ago, gwideman said:

    And are the Bitmap, Icon, Metafile, and WICImage properties pointers to separate actual objects? Or are they just more-specifically typed pointers to the same object that Graphic points to (ie: at most one would be valid).  What happens if the graphic type is not one of the default ones, as with TPNGImage and TJPEGImage?

     

    They are used the same way. Depending on the file type you have loaded the required object is created.


  5. I hope that this is going to work the same for C++ (I am doing it in Delphi):

    1.) Open the file, select View as Text (Alt + F12)

    2.) Do a search and replace

    3.) go back to View as Form (alt + F12)

    4,) save the file.

     

    During the saving process the IDE should ask to replace the definition. This the Delphi way

     

    Plan b. do the search & replace using refind.exe - https://docwiki.embarcadero.com/RADStudio/Alexandria/en/ReFind.exe,_the_Search_and_Replace_Utility_Using_Perl_RegEx_Expressions in case you have multiple forms.

    • Like 1
    • Thanks 1

  6. 2 minutes ago, JonRobertson said:

    Are there scenarios where designing in HighDPI would be beneficial? Just to improve the development experience or to improve the user's experience when using the produced app?

     

    An example would be Quick Report. It was designed to work only with 96PPI. When HighDPI is not allowed for the application the generated preview would be wrongly scaled and would not fit the page.


  7. 12 minutes ago, Lars Fosdal said:

    As for AI and privacy - keep your secret credentials separated from your code.  Other than that, I don't think that many of us write code that truly needs to be hidden for secrecy reasons, although it is obvious that it will be necessary to ensure that privacy permeates the use of AI.

     

    It is not about privacy. it is copyright. Anyone that has invested money into an algorithm and solution would not like to see it to appear inside an AI suggested code. That is one of the reasons why the source code for Microsoft Office is not open sourced.....

    • Like 1

  8. 15 minutes ago, DelphiUdIT said:

    I don't think you can use the XE5 if you have bought XE3. You must discharge it but probably the license will not be activated during installation.

     

    You can install XE5 only if you have had support for XE3 at the time when it was released otherwise no. You can try with your XE3 serial number to activate.


  9. 9 hours ago, PeterPanettone said:

    You don't believe in AI?

    I am with the idea that was presented in the Delphi's birthday webinar, I do not want the code from any of the projects I am working on to land in some AI database and pop up as a suggestion on a query. The code I am working on belongs to the company I am working for or a client. Nobody wants that code to go public.

     

    I am ok with the idea and did it a couple of times to ask Bing to write some simple code that I can review faster than to type in, have some fun. 

    • Like 2

  10. First step is to exclude the folder for a project that antivirus program reports and upload the generated exe to VirusTotal. If it is a false positive the next step is to report it to your antivirus program as false positive.

     

    Edit. So far, I have done this twice. Last time, a couple of years ago Microsoft Defender started to mark the Delphi executables as virus infected. After I filled the report, the issue was gone in 5-7 days. The other time when I did it was more than a decade ago.

     


  11. 16 minutes ago, Cristian Peța said:

    I understand from the link above that who installed with old online installer GetIt will not work.

     

    "Customers who have installed RAD Studio 12 using the online installation process won’t have the ability to add new platforms and core features to the product via the Manage Features dialog. In order to do this, they will need to uninstall and then reinstall using the new inline release."

     

    It's not about the GetIt or Welcome page.

     


  12. 9 minutes ago, Cristian Peța said:

    For D12 there is a new installer because GetIt server changed.

    I suppose you need to install with the new installer in order to work Welcome page or Tools menu.

    That's not possible. The Welcome page is working fine for me (installed from the ISO image). I doubt that the ISO and online installer has different setup for the GetIt.


  13. 43 minutes ago, Cristian Peța said:

    You have not posted a link and probably it's a stupid question but how to find a RSP by number?

    1.) Log into https://quality.embarcadero.com/

    2.) Enter RSP-26436 into search (you can find it at the upper right corner of the page) and you cannot copy paste it from the text above as it contains unicode characters.

     

    https://quality.embarcadero.com/browse/RSP-26436

     

     

    • Thanks 1

  14. 7 hours ago, Ian Branch said:

    Nothing else has changed.  It is repeatable.

    Is it me or is there a bug un the Patch/update?

    It didn't happen before the Patch/Update.

     

    Unfortunately the parser that the IDE uses is not up to date. I also have some cases where the editor messes up my code I have to pay attention what I am doing. In one class I can add a property only if I paste it from the clipboard entering using the keyboard is not possible.

    Embarcadero might replace the IDE in near future (5-10 years from now).

×