devxlogo

Tip Bank

Help for a Delphi 2 Beginner

Question: I’m trying to teach myself Delphi 2 and have no programming experience. I’m stuck on a simple problem. How do you bring up the About box from the About

Flat Combo

Question: Do you know how to create a flat, non-3D combo box with only a thin black border? Setting CTL3D to False doesn’t seem to have an effect on the

DBGrid

Question: I am using a DBgrid. I have defined two NEW Persistent fields as lookupfields. In the Columns editor, I added them to the grid display. Those two fields are

Pulling Digits Out of String to Sum Them

Question: How do I pull out every second digit from a string and sum them? Answer: This is a rather unusual question, but it’s not that hard to accomplish.What must

Is there a way to kill a sleeping thread?

Question: I am creating numerous threads on-the-fly in Delphi 2.0. I create them suspended. The question is: How do I make the threads go away? I’ve tried Free, Terminate… nothing

Is Drag-and-Drop on a Menu Item Possible?

Question: Is drag-and-drop on a menu item possible? Answer: If I was going to be rhetorical, I’d answer in very Zen-like terms:”Anything is possible.” But in more practical terms, no,

Calling the Operator =

Question: How can I call the operator= of the base class from the operator=in the derived class?The data member in the base class is a private data member. I want

Strings in List Boxes

Question: When a user clicks on an item in a list box, how can I get the actual string that was clicked on? For example, if ‘dog,’ ‘cat,’ and ‘fish’