Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Punchinello

    Filtering with ADOQuery

    Right you are whosrdaddy. Actually both the '*' and the '%' work the same, but since the '%' reflects standard SQL syntax, that's what I'm using. Thanks for the reply.
  2. Punchinello

    Filtering with ADOQuery

    As it turns out, it works exactly as intended when the filter (using the prior example) uses the LIKE operator instead of the = operator with wildcards. So: LastName = 'SMI*' does not work, but LastName LIKE 'SMI*' does work. When using ADO components, the filter option appears to mirror the...
  3. Punchinello

    Filtering with ADOQuery

    I'm using TADOQuery against an Access database (converted to SQL Server in production) and want to provide user-controlled filtering displayed in a standard DBGrid. The SQL statement is a simple SELECT and I want to apply a filter on the field in the ORDER BY clause so I set the Filter like...
  4. Punchinello

    search key words

    To answer the question of where you write the code to populate the TListbox (using Hilfy's suggestions on how to do it) I would recommend adding it to the form's OnCreate event.
  5. Punchinello

    search key words

    Just like you said, add a TEdit and a TListBox to a form and populate the TListBox either programmatically or in design mode. Then write code in the TEdit.OnChange event that evaluates its current Text property value and either searches or filters the Strings in the TListBox. If you want it to...
  6. Punchinello

    Make the enter button DO something??

    Have you tried setting the button's "Default" property to True?
  7. Punchinello

    TRichEdit Printing

    Well, that's more complicated. [smile] What I would probably do is extract the code from ComCtrls.pas that performs the TCustomRichEdit.Print function and see if you can tailor it to direct the output (via the SendMessage commands) to a handle that is defined for an EMF file instead of the...
  8. Punchinello

    Parent form of a control

    From the Delphi 7 help files: By default, a form owns all components that are on it. In turn, the form is owned by the application. Thus when the application shuts down and its memory is freed, the memory for all forms (and all their owned components) is also freed. When a form is loaded into...
  9. Punchinello

    Parent form of a control

    You're right about the Parent property - it runs up through the containership to the form. But every component also has an Owner property that goes right to the form. That's the one you want to use.
  10. Punchinello

    TRichEdit Printing

    It sounds like you don't want to print at all but just save the contents to a file for future printing on whatever printer the user (in the future) wants to use. If this is the case, use the RichEdit.Lines.SaveToFile function and pass a .rtf file name as the parameter. I have a bit of code...
  11. Punchinello

    My Delphi Program wont show JPegs!

    I don't know if you've gathered it from these responses, but all you really have to do is add JPEG to the uses clause of the form or forms that use them. Just that will allow your existing code to work just fine.
  12. Punchinello

    How do I order a DBGrid using a TTable

    Another solution you might try - given the specifics of your questions - is to add a secondary index to the detail table and link on that index instead of the table's primary. Depending on the database you're using, you might create a descending index with (from Andrew's example) the linking...
  13. Punchinello

    Printing text on dotmatrix printer

    Here's a modified extract from a printing/preview tool that I wrote. This part was specifically designed for sending raw text to a dot-matrix printer for printing checks. Hope it helps. procedure PrintMe(Content: TStringList); var sPrinter, sDriver, sPort, sTitle: array[0..255] of Char...
  14. Punchinello

    Getting a specific component from an MDI child

    If you cast the ActiveMDIChild as the type of form that it is (ie. TChildForm) then you can access its components directly from the main form. if ActiveMDIChild is TChildForm then begin // you can reference RichEdit "Code" TChildForm(ActiveMDIChild).Code end; In MDI applications...
  15. Punchinello

    Printing Issues

    Your problem may be in printing a graphical file (wmf) that is structured with a fixed resolution (the screen) to a canvas with a variable resolution (the printers). If this is the issue, then what you need to do is convert the resolution of the graphic to appear in the proper location and...
  16. Punchinello

    Printing Issues

    Are you drawing directly to the Printer.Canvas or are you using a charting add-in?
  17. Punchinello

    XP, D7 and TSpeedButton

    I've got a speedbutton on my main form in a Delphi 7 app under Windows XP. But when I use a manifest file to try out the XP themes, the speedbutton caption goes bold on me. However, when all other buttons with the same parent are enabled at runtime, it displays in the normal font without the...
  18. Punchinello

    Need Scripting Help

    tigerjade, looks like we were adding to this thread at the same time. Thanks for your help!
  19. Punchinello

    Need Scripting Help

    Well, I found my solution and thought I'd post it to close out this thread. Help came from medic's faq215-4585 and the highlight example from LookingForInfo's excellent reply on thread215-753155. The code below is designed to work with span id's that are named just like the anchors with a "v"...
  20. Punchinello

    Need Scripting Help

    I need some help showing/hiding a set of <span> elements. I've got an area on the html page that shows a company name and address. What I want to do is place some anchors (I think) that let the user select which address to display among choices like "Shipping address", "Billing address" and so...

Part and Inventory Search

Back
Top