-
Content Count
575 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Vandrovnik
-
Assigning to one string variable from multiple threads at same time is not a good idea...
-
IBX is Crashing Application on Windows XP / Server 2003
Vandrovnik replied to MikeMon's topic in Databases
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... -
{$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;
-
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
-
tDrawGrid - how to prevent OnDblClick on certain columns
Vandrovnik replied to Vandrovnik's topic in VCL
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. -
Samsung offers a remote testing lab: https://developer.samsung.com/remote-test-lab
-
The background is a static image?
-
Uses clauses and ide performance - does it make a difference?
Vandrovnik replied to ventiseis's topic in RTL and Delphi Object Pascal
I did not make speed tests, the speed will probably be almost the same, because of large file cache and fast NVME drives. -
Uses clauses and ide performance - does it make a difference?
Vandrovnik replied to ventiseis's topic in RTL and Delphi Object Pascal
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.) -
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.
-
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).
-
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.)
-
Inline Variables - Implicit Doubles
Vandrovnik replied to Paul H's topic in RTL and Delphi Object Pascal
foo(GetDouble) is expected error - you cannot pass function result to a procedure with var parameter. -
You can draw whatever you want in OnDrawColumnCell but AFAIK, all rows must have the same height.
-
Double, default value
Vandrovnik replied to Skrim's topic in Algorithms, Data Structures and Class Design
I just did not test, whether it works O:-) -
Double, default value
Vandrovnik replied to Skrim's topic in Algorithms, Data Structures and Class Design
Yes, it does (Delphi 12.2). -
Double, default value
Vandrovnik replied to Skrim's topic in Algorithms, Data Structures and Class Design
What about a class procedure? type tTest = class(tObject) public class procedure MyFormShow(Sender: TObject); end; ... self.OnShow:=tTest.MyFormShow; -
There is .iso for 12.2.1.
-
I have seen "REST Delphi built-in not an option", but tHTTPClient is not the same as REST, is it?
-
What about https://docwiki.embarcadero.com/Libraries/Athens/en/System.Net.HttpClient.THTTPClient_Methods ?
-
"again"? I have a check-list, what to do before, during and after the upgrade. Remove all Parnasus xxx things is there, too 🙂
-
Does it happen even in clean Delphi installation? With my applications, there is no IDE freezing.
-
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.
-
Delphi bug reports or feature requests to "vote"/comment for (important, fatal etc)/
Vandrovnik replied to Tommi Prami's topic in Delphi IDE and APIs
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? -
Delphi bug reports or feature requests to "vote"/comment for (important, fatal etc)/
Vandrovnik replied to Tommi Prami's topic in Delphi IDE and APIs
I have created that request: https://embt.atlassian.net/servicedesk/customer/portal/1/RSS-1439 They closed it as "Won't do" 😞