Jump to content

Lajos Juhász

Members
  • Content Count

    986
  • Joined

  • Last visited

  • Days Won

    12

Everything posted by Lajos Juhász

  1. Lajos Juhász

    TMemo and unicode

    IdGlobal is required for the function IndyTextEncoding_UTF8.
  2. Lajos Juhász

    TMemo and unicode

    This question has nothing to do with VCL and Memo. You should ask it in Delphi Third-Party -> Indy as you're using Indy to decode the data. Most probably your data is mailformed (I've tried to decode it using https://www.base64encode.org/ and the result there is: 如何讓 art-mate 成為) . In order to decode UTF-8 characters you have to add idGlobal to the uses and call DecodeString: s3 := idDecoderMime1.decodeString(s2, IndyTextEncoding_UTF8)
  3. Lajos Juhász

    Several F2084 Internal Error on Delphi 10.4.2

    You can try to tag @David Millington I guess he can try to find out more about it.
  4. Lajos Juhász

    Registered products query

    It's located at https://my.embarcadero.com/.
  5. Lajos Juhász

    Scalable IDE Toolbar icons?

    High-DPI is required in order to work with the users DPI settings. Without that the program cannot determine how to scale the svg image or which version of the image to draw at what size.
  6. Lajos Juhász

    Scalable IDE Toolbar icons?

    This is the reason I am hoping that there will be a longer then usual beta period for the new release. Even Delphi 10.4.2 still has a large number of problems due to the changes they made (internal errors and Access Violations).
  7. Lajos Juhász

    How to change background color in a TDbGrid column editor?

    One way I found to achieve this is to use the fact that in the TCustomGrid.UpdateEdit procedure UpdateEditor will set the color of the editor to match the color of the grid: type TCrackGrid = class(TDBGrid); procedure TForm1.DBGrid1ColEnter(Sender: TObject); begin UpdateEditorColor end; procedure TForm1.FDQuery1AfterScroll(DataSet: TDataSet); begin UpdateEditorColor; end; procedure TForm1.UpdateEditorColor; begin if dbgrid1.SelectedField = fdQuery1Color then begin // Here is the code to setup the color of the inplace editor..... if odd(FDQuery1.RecNo) then dbgrid1.Color:=clRed else dbgrid1.Color:=clWhite; end else dbgrid1.Color:=clWhite; TCrackGrid(DBGrid1).InvalidateEditor; end;
  8. Lajos Juhász

    Scalable IDE Toolbar icons?

    You define the manifest for the entire application, if it's implemented correctly for everything even the form designer should be DPI sensitive. Unfortunately we will have to wait for the first authorized posts from the beta testers to learn about it. Let's hope the beta will start soon.
  9. Lajos Juhász

    Scalable IDE Toolbar icons?

    It's on the roadmap as I wrote for Delphi 10.5 (High DPI IDE Support).
  10. Lajos Juhász

    Scalable IDE Toolbar icons?

    Delphi 10.5 should introduce DPI friendly IDE, we have to wait only about 4-6 months to see it.
  11. Jira is the system portal thet is used (from the wikipedia: Jira (/ˈdʒiːrə/ JEE-rə) is a proprietary issue tracking product developed by Atlassian that allows bug tracking and agile project management). It will take user user name, not your e-mail. https://quality.embarcadero.com/secure/Dashboard.jspa Logging in: Use the same account you use for the Registered Products Portal. Note: use your username as opposed to your email address It is listed as "login" in your user account info Create Account or Reset Password via my.embarcadero.com Still can’t log in? Contact support
  12. Lajos Juhász

    Can't load LivePreview270.bpl

    In Delphi 10.4 the folder in source\tools\FireUIAppPreview contains a source of an application (hint it's LivePreview.dpr not LivePReview.dpk). Where I can find a tool to convert it to a bpl?
  13. Lajos Juhász

    Upgrade 10.3 to 10.4

    Yo can download it from the new portal: https://my.embarcadero.com/
  14. Lajos Juhász

    Several F2084 Internal Error on Delphi 10.4.2

    According to the last roadmap there will be no 10.4.3 release, the release will be 10.5 in H2 2021.
  15. Lajos Juhász

    TDBGrid's SelectedRows count

    You're trying to show the change on the dbgrid while using an event on the dataSource that's is triggered before the selection. You should display the selected rows from the events of the grid. In this case as the selection can be made by mouse or keyboard you could use the events OnKeyUp and OnMouseUp for the grid: procedure TForm1.DBGrid1KeyUp(Sender: TObject; var Key: Word; Shift: TShiftState); begin UpdateSelectedCount; end; procedure TForm1.DBGrid1MouseUp(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); begin UpdateSelectedCount; end; procedure TForm1.UpdateSelectedCount; begin label2.Caption := 'Count = ' + IntToStr(dbgrid1.SelectedRows.Count); end;
  16. Lajos Juhász

    FireDac Batchmove

    For this you should configure replication on the server IMHO that works best.
  17. Lajos Juhász

    Several F2084 Internal Error on Delphi 10.4.2

    Unfortunately no, sometime I also get internal error or Access violation at address 50165C8F in module 'rtl270.bpl'. Read of address 00000000.
  18. Lajos Juhász

    Possible D10.4.2 issue..

    It's enough to insert anything between ShowModal and Free that will call an Application.ProcessMessages, for example to show another modal form and oops you get: Project Project1.exe raised exception class EInvalidPointer with message 'Invalid pointer operation'. Something like: procedure TForm1.Button1Click(Sender: TObject); var x: TForm2; x2: TForm; begin x:=TForm2.Create(nil); x2:=nil; try x2:=Tform2.Create(nil); if x.ShowModal=mrOk then x2.showmodal; finally x.free; x2.free; end; end;
  19. Lajos Juhász

    Possible D10.4.2 issue..

    No it's not wrong. Sometimes it can result an Access Violation, it will cause no problem if in the meanwhile the handle is not used otherwise you cannot predict the result.
  20. Lajos Juhász

    Update hidden file

    TFileStream is derived from THandleStream and unlike the THandleStream it will close the file in the destructor as I showed in my earlier post, so it's just a try ... finally less to write.
  21. Lajos Juhász

    Update hidden file

    The answer is here, the TFileStream will take over the ownership and close it in the destructor (FileClose will call CloseHandle): destructor TFileStream.Destroy; begin if FHandle <> INVALID_HANDLE_VALUE then FileClose(FHandle); inherited Destroy; end;
  22. Lajos Juhász

    Update hidden file

    Thanks Remy I missed the part that you can give a Handle to the TFileStream constructor. You can replace the file using this code. Of course you've to make sure first the file exists: procedure TForm1.FormCreate(Sender: TObject); var lStrList: TStringList; lfStream: TFileStream; lFileName: PChar; begin lFileName:='D:\temp\0104.txt'; lStrList:=TStringList.Create; lfStream:=TFileStream.Create(Createfile(lFileName, GENERIC_WRITE, FILE_SHARE_WRITE, nil, CREATE_ALWAYS, GetFileAttributes(lFileName), 0)); try lStrList.SaveToStream(lfStream); finally lfStream.Free; end; end;
  23. Lajos Juhász

    Update hidden file

    Please read the posts and think about them before you start a google search and copy some content that has nothing to do with the question and the thread you paste. So what is the relation with you stackoverflow post and System.SysUtils.FileCreate?!
  24. Lajos Juhász

    Possible D10.4.2 issue..

    deleted
×