May 8, 1997

Closing MDI children in an MDI application

Question: I have made an MDI application with many MDI children, but when I try to close an MDI child it becomes minimized. How can I avoid this and close the window? Answer: To completely close an MDI child form, do the following: Display your child form in the IDE,

32-bit VCL Errors

Question: I’ve downloaded some components for use in Delphi 2.0, but I can’t get them to install into the VCL. Even the 32-bit dedicated ones come up with an error saying that WinTypes.pas can’t be found. The number accompanying the message is either 30, 31 or 32. It also refers

Adding lines to a TStrings Type Property

Question: What am I doing wrong? I can insert the date and time to a Label component very easily (see first proc below), but not into a RichEdit component. I get three errors as if Delphi is looking for more. Why? And what is missing? procedure TForm1.FormCreate(Sender: TObject);begin Label1.Caption :=

Changing the Font

Question: I can’t stand the “new” font used in VB5’s pulldown menus and forms (ie. File, View, Tools, etc.).I’ve tried and tried, but I can’t seem to change it. Answer: Unfortunately, there is no option to change the default font for the menus. It’s strange, since any other font change

API declarations

Question: Where can I take all the new API declarations about the network, like: NetServerGetInfo, NetServerTransportAdd… Answer: If you just want the declarations, you can add Windows API Functions as areferenced library in your Project. It is listed at the end of theReferences dialog and adding it will let you

Business function in the MATH unit

Question: I recently incorporated the math unit into an application I’m building. Originally I was using OLE to Excel to perform my business calculations, and though this was a clean solution, the performance was terrible.The math unit seemed the perfect answer, supporting most of the business functions I required. But

Alternative to the BDE

Question: I have database software that is about 1 MB in size (with all the files). I need to distribute the BDE, which uses up to two diskettes. I do not want to bother my customers to install this engine. Is there another, smaller and faster engine I can use

An event when the table record changes

Question: While the OnDataChange event is called when a record is changed, it is called several times for each change and then each time a piece of data changes in any of the fields. Certainly there has to be a more focused way to do this. Any suggestions? Answer: Have

Changing Label Captions in a FOR Loop

Question: I’m trying something like this: for i:=0 to 1000 do label1.caption:=’I= ‘+inttostr(i); but the loop executed so fast, the label doesn’t display anything until the loop is over. This relates to a file copy method I’m creating. I want to display the name of the file being copied while

No more posts to show