Tip Bank

DevX - Software Development Resource

Memo Fields and Carets

Question: I need to be able to move the caret in my memo field back to the begining of the field. Any idea how I do this? Answer: Try this:Memo1.SelStart(0);This

DevX - Software Development Resource

Putting a char into a Pchar

Question: I’m using the Winexec command and trying to use a string as the argument, but Winexec takes only a Pchar as its argument. I can’t figure out how to

DevX - Software Development Resource

Resizing Resolution

Question: How do I re-size the buttons, etc. on my forms when the resolution changes? If I create something in Delphi at a high resolution and run it on a

DevX - Software Development Resource

Filtering Table Records

Question: I want to be able to filter records in a table based on criteria in, say, three combo boxes on a form. Answer: If you have indexes on those

DevX - Software Development Resource

DBLookupComboBox

Question: Can the drop-down items for a DBLookupComboBox be populated from the results of a TQuery? Answer: Yes, a query can act as the data source for a TDBLookupCombo. You

DevX - Software Development Resource

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

DevX - Software Development Resource

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

DevX - Software Development Resource

Compiled Program won’t Run

Question: I’m a Delphi rookie but an experienced programmer in Turbo Pascal.I’m trying to use DBF tables, with good results.But when I copy my compiled programs to a disketteand install

DevX - Software Development Resource

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