Try http://www.codeproject.com/csharp/BarrysCSharpWizard.asp?target=wizard.
If this is not exactly what you want, then perhaps do a search on the the same website.
Cheers,
GreenKnight.
I have a TSplitter on a panel, which I then make into an ActiveX control (using Delphi 5's wizard).
When I click on the Splitter at runtime, I get a "Component 'mySplitter' has no parent window.
Does anyone know of a fix/workaround for this? or do I have to write my own splitter control?
If you wanted to be a little more object oriented, you might want to create classes instread of records. Something like:
interface
type
enCardSuit = ( csClubs, csSpades, csDiamonds, csHearts);
enCardStatus = (cstSolved, cstHand, cstTable);
TCard = class( TObject)
private
fValue...
I always use "FindFirst", and related functions from the SysUtils unit. Have a look in the help file for details on how to use it.
Just a note: When you get a list of files, I think you will always get back '.' and '..' as well (the current and parent directories), so check that...
I always use "FindFirst", and related functions from the SysUtils unit. Have a look in the help file for details on how to use it.
Just a note: When you get a list of files, I think you will always get back '.' and '..' as well (the current and parent directories), so check that...
I see no reason why you can't use the StringGrid to store and edit the data. You can access each entry seperately (Cells[i, j]) or use the TStringList for each row or column.
To create a graphic component with transparent sections, add a message handler for CM_HITTEST.
This passes a point to the control, and expects an 'HT' constant return value (see the Windows unit). Return HTNOWHERE if the point is in an invisible section, or HTCLIENT if it's in the other bit...
I think anything passed to a COM dll must be a pointer. Thus you would want to pass a PSafeArray into the dll, and also define it as a PSafeArray.
Are you writing this DLL, and defining the interface?
A pointer (which is essentially the address) of a record can be found using the '@' operator.
So if you have the following:
type
TMyFirstRecord = record
Field1 : integer;
end;
var
lMyRecord : TMyFirstRecord;
you should pass something like "@lMyrecord" as the parameter...
The "with statement" is not dangerous on its own, but it does redefine the scope for the block of code.
For code that is easier to read, I tend to avoid "with statements", and explicit prefix method and property calls with the name of the object I'm using.
I'm guessing that you are sending the "Windows+M" message to your application, but not giving it time to process the message before calling Application.Restore.
Try putting an Application.ProcessMessages after the PostMessage statements, and before the Application.Restore.
Hi,
I currently have a system with about 7 packages, and 20-ish projects. Each time I release a new version, I'd like to be able to update some of the VersionInfo (eg. product version, Copyright, File version) to be consistant. I am using Delphi 5.
Currently, we have a DOS batch file which...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.