Tip Bank

DevX - Software Development Resource

Extending TCustomControl Painting

Question: I have two questions:Question 1:How can I extend the painting functionality of a TWinControl like the TGraphicControl‘s Paint method? Question 2:I cannot find the Paint method in TWinControl to

DevX - Software Development Resource

Date Comparisons

Question: I cannot find much info on how to do Date math. I am trying to determine elapsed days from a record entry date to the current date. I am

DevX - Software Development Resource

How to Use the CreateToolbarEx Function

Question: How do you use the CreateToolbarEx function? I want to use it to create dockable tool bars. Answer: With CreateToolBarEx, you’re walking into real low-level stuff that willrequire that

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

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

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