Jump to content

Lajos Juhász

Members
  • Content Count

    828
  • Joined

  • Last visited

  • Days Won

    11

Posts posted by Lajos Juhász


  1. You cannot assign png to glyph, but you can assign a TImageList or TVirtualImageList to the images property and using imageindex/imagename access the png picture. 

     

    In order to support high dpi you should consider using TImageCollection and TVirtualImageList (where you can use the imagename property instead of imageindex).

     

    (I don't have Delphi 10.3 to test this.)


  2. I have the same problem. The frame should be inline but I also have a frame that Delphi uses as object and then you cannot change the properties on the frame. 

     

    I have no solution spent hours to research the problem. (You cannot just change the DFM).


  3. 2 hours ago, Ian Branch said:

    Lajos - W.. n..?

    David already said everything. With can cause that you access something that you doesn't think (new property, field, method). Calling FreeAndNil for a local object has no reason it's just a classic code smell.

     

    Your aim should be to write clean and maintanable code that cannot be achieved using with.

    • Like 1

  4. There is no reason to verify the data after you generated the XML. It's always the best to verify in case the data is incorrect to change it and as a last step to generate the output.

    • Like 1

  5. 1 hour ago, Stano said:

    Just change the type only in *.pas. Close it and open *.dfm. Then confirm all prompts.
    I have tried it. It's not from my mind.

    In which version of Delphi?  For me the IDE want to keep the class from the dfm.

     

    What's working for me is to select View as text to show the dfm (alt+f12) change the class for components and then switch back to pas and save the file then will Delphi ask to change the pas. A bit faster solution is to use refind with rules #migrate. 

     

    Of couse you have to add dataset, datafield, valuechecked and valueunchecked properties.


  6. 16 minutes ago, Veikko Nurmonen said:

    Any tips?

    I got one when commenting on this forum open an RSP ticket.

     

    (Edit. My current bug that I am unable to create a test case is when frame is marked as object instead of inline in the DFM. )


  7. That is the CPU view, the call stack is on the left side. It should contain something like this:

    :76f010cc win32u.NtUserWaitMessage + 0xc
    :00b4ab5e TApplication.Idle + $14E
    Vcl.Forms.TApplication.HandleMessage
    Vcl.Forms.TCustomForm.ShowModal
    mainrm.TForm1.Button1Click($3417030)
    Vcl.Controls.TControl.Click
    Vcl.StdCtrls.TCustomButton.Click
    Vcl.StdCtrls.TCustomButton.CNCommand(???)
    ......

     

    Most probably the call stack will be empty, in which case open the threads windows with CTRL + ALT + T and select the first thread on the list.

     

     


  8. It should be simply a build for every application. 
    So far I have no choice as with every version some bugs are fixed and new are introduced that forces to move to even newer version and hope that (n+1)!  will be stable for the applications I am working on.

     

    (For me it's easier as application on D11 are still in release candidates. New versions while the stable versions are compiled with XE5.)

×