Jump to content

Vandrovnik

Members
  • Content Count

    575
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Vandrovnik

  1. Vandrovnik

    OtlParallel Memory Leak

    Assigning to one string variable from multiple threads at same time is not a good idea...
  2. We had the same problem (Windows XP as virtual machines). Did not succeed finding a solution in Delphi app, so virtual machines upgraded to Windows 7...
  3. Vandrovnik

    Firebird database on Android

    {$IFDEF ANDROID} function SetEnvironmentVariable(Name:string; Value:string): boolean; begin result:=false; //assume failure if Value='' then begin // Assume user wants to remove variable. if unsetenv(MarshaledAstring(UTF8String(Name)))=0 then result:=true; end else begin // Non empty so set the variable if setenv(MarshaledAstring(UTF8String(Name)), MarshaledAstring(UTF8String(Value)), 1)=0 then result:=true; end; end;
  4. Hello, I have a DrawGrid, on some columns user can click to switch between values (enable / disable them). Is it possible to allow OnDblClick on some columns, while not allowing OnDblClick on these columns with "switches"? OnDblClick is used to open modal dialog to change some values. Thank you, kind regards, Karel
  5. Vandrovnik

    tDrawGrid - how to prevent OnDblClick on certain columns

    Thank you for your reply. I did not write, that in this grid, RowSelet is set, so in OnDblClick I get Col=0. So instead I used: var Cell: TGridCoord; Pt: tPoint; begin fSkipDrag:=true; Pt:=Mouse.CursorPos; Pt:=Grid.ScreenToClient(Pt); Cell:=Grid.MouseCoord(Pt.x, Pt.y); if (Cell.X<1) or (Cell.X>3) then ... It is not perfect - if computer is really busy / slow, mouse may move before OnDblClick is run.
  6. Vandrovnik

    Recommended devices android testing

    Samsung offers a remote testing lab: https://developer.samsung.com/remote-test-lab
  7. I did not make speed tests, the speed will probably be almost the same, because of large file cache and fast NVME drives.
  8. Why? I use RAM drive as target for all .dcu files. After reboot, no .dcus exists -> no problems from old .dcus, .dcus compiled with another settings etc. And it also saves some SSD writes. (With HDDs, RAM drive was also significantly faster.)
  9. Vandrovnik

    Continually Losing Frames

    It did not happen to me in 12.2 (yet). In older versions, i just replaced <DesignClass>TFrame</DesignClass> with <FormType>dfm</FormType><DesignClass>TFrame</DesignClass> in .dproj file. T thought it was happening mostly after Delphi upgrade.
  10. Vandrovnik

    Printing to evolis printer

    Does it have Windows printer driver? If it does, you can probably print on it the same way you can print on common printers (for example, using Fastreport in Delphi).
  11. Vandrovnik

    Delphi 12.2 Toolbars strange behavior

    My futile fight with toolbars in Delphi started with Delphi X?? and continues to this day. But I found a solution: I turned off all toolbars and left only the palette on top 🙂(To be honest, I did not try to enable any of toolbars in Delphi 12.2, so I am not sure that problems persist.)
  12. foo(GetDouble) is expected error - you cannot pass function result to a procedure with var parameter.
  13. Vandrovnik

    Wrap texts in DBGrid

    You can draw whatever you want in OnDrawColumnCell but AFAIK, all rows must have the same height.
  14. I just did not test, whether it works O:-)
  15. Yes, it does (Delphi 12.2).
  16. What about a class procedure? type tTest = class(tObject) public class procedure MyFormShow(Sender: TObject); end; ... self.OnShow:=tTest.MyFormShow;
  17. Vandrovnik

    12.3 or 13/14 as next?

    There is .iso for 12.2.1.
  18. Vandrovnik

    Best internet components

    I have seen "REST Delphi built-in not an option", but tHTTPClient is not the same as REST, is it?
  19. Vandrovnik

    Best internet components

    What about https://docwiki.embarcadero.com/Libraries/Athens/en/System.Net.HttpClient.THTTPClient_Methods ?
  20. Vandrovnik

    Delphi 12.2 Patch 1

    "again"? I have a check-list, what to do before, during and after the upgrade. Remove all Parnasus xxx things is there, too 🙂
  21. Vandrovnik

    Delphi 12.2 Patch 1

    Does it happen even in clean Delphi installation? With my applications, there is no IDE freezing.
  22. Vandrovnik

    Identifying Third-Party and Custom Components

    For Delphi, I would use "grep" on .dfm files, searching for lines starting with "object" and may be "inherited": object ActionList1: TActionList From this lines, component type can be extracted. Remove duplicates, may be count occurencies... It does not tell from which unit that component comes, but I suppose most of them could be identified.
  23. But still - Emba is customer, I guess they can ask Atlassian to add this functionality, which doesn't look too difficult to implement, does it?
  24. I have created that request: https://embt.atlassian.net/servicedesk/customer/portal/1/RSS-1439 They closed it as "Won't do" 😞
×