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 strongm 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: *

  • Users: NeilP
  • Order by date
  1. NeilP

    moving the print dialog

    This is a two stage operation. Step 1 : Get the handle of the print dialog window using the FindWindow API function. HWND FindWindow( LPCTSTR lpClassName, // pointer to class name LPCTSTR lpWindowName // pointer to window name ); Once you have the Windows handle... Step 2 : Use...
  2. NeilP

    PathIsUNC just isnt enough.....

    You could always use the "DirectoryExists" function. I believe you can use a UNC path in this function.
  3. NeilP

    What is the width of a scroll bar?

    Each object that has a canvas has a width property and a clientwidth property. the scrollbar is not parth of the client canvas , therefore the objects width minus the clientwidth is the size of the scroll bar. Normally the is about 20 pixels but the code below will tell you exactly...
  4. NeilP

    Refreshing a hint?

    Does anyone know how to replace the string of a hint as the hint is displayed? My program is a system tray component and I want to use the hint to show the time elapsed since running. Any help would be appreciated.
  5. NeilP

    How do I check if my application has moved

    Does anyone know how to prevent a user dragging a form to a new position on the screen. Is there a way of locking the cordinates without having to get rid of the title bar? If not, is there a way of detecting if your application has been dragged and dropped to a new position? Thanks in...
  6. NeilP

    Local Machine Name

    Try the API function GetComputerName
  7. NeilP

    memory error when preparing .WAV file

    To play this wave Memory must first be allocated (GLOBALALLOC), then locked (GLOBALLOCK) and when done with must be freed (GLOBALFREE). It would appear that some memory is not being freed. The GLOBALFREE function returns NUll if succesfull. Test for NULL.
  8. NeilP

    copy one portion of a bitmap to other bitmap???

    This text was copied from the WIN32.HLP file found in your delphi help directory. The StretchBlt function copies a bitmap from a source rectangle into a destination rectangle, stretching or compressing the bitmap to fit the dimensions of the destination rectangle, if necessary. Windows...
  9. NeilP

    Array of Buttons

    Hi As an old VB programmer this was one of the first things I wanted to learn. Copy and paste this onto a newly created delphi project and run it. Object arrays (Control arrays in VB) are possible in Delphi they are just a bit harder to create. Anyway have fun with this...
  10. NeilP

    Tcanvas (color palette)....

    Try reading about TPaletteEntries in the Windows API.
  11. NeilP

    Launching an application on another computer

    Does anyone out there know of a way to launch a program remotely on a different computer on a TCP/IP network. Thanks in advance.
  12. NeilP

    Memo Box equals Null

    All memos have a text property. Use it. if Trim(Memo1.Text)='' then ShowMessage('Memo is Empty');

Part and Inventory Search

Back
Top