i am trying to write a grid where i can put any control on it. that means i have to create an new instance of any control at runtime but with all data that the source control had. the newinstance function does not what i expect.
so i tried it in this way
function CreateControlCopy( tc:TControl ):TControl;
Result := nil;
AStream := TMemoryStream.Create;
Result := TControl(AStream.ReadComponent(NIL));
this function is quiet ok but it losts the parent. that means if i have a combobox for example with items defined i get an error. :(
Creating an auto free TStringList
The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list.
In such cases, you have to…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work. Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
How to fix display issue, screen flickering issue when I plug in
power cord to the machine.
Before I start explaining the solution lets check out once the issue how it looks like
after I connect the power cord. most of you also have faced this…