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

  1. OmniCog

    Single Instance Applications

    Alright, I got something working that using mutex and postmessage (no extra registry entries or files). It does not handle multiple command line arguments. In case someone else is, in the App unit (Credit go to TometaSoftware, whosrdaddy for the hard parts, and random google results for the...
  2. OmniCog

    Single Instance Applications

    I'm sorry, BobbaFet didn't mean to leave you out :D I like your solution, but it could probably be done with a registry entry. I do appreciate your help though, thanks.
  3. OmniCog

    Single Instance Applications

    Thanks for your comments. TometaSoftware: It looks good, but how is it better? It seems to accomplish the same thing.. I'm fairly new to mutex. I'll be looking into mutexes. whosrdaddy: I'm trying to make your code with mutex, because I will need to use them anyways. Thanks!
  4. OmniCog

    Single Instance Applications

    Hi, I'm using mutex to insure that only one instance of one of my application is running with this code (in Project.dpr): var hMutex: THandle; begin hMutex := CreateMutex(nil, False, 'termBlaster'); if WaitForSingleObject (HMutex, 0) = WAIT_TIMEOUT then begin MessageDlg ('Only one...
  5. OmniCog

    Question regarding ownership of a TComponent

    I've have a pretty simple question that I can't seem to figure out. In the following code, XMLDoc will be freed when AOwner is free'd correct? {...} TServiceList = class(TListBox, IServiceView) private protected XMLDoc : TXMLDocument; {...} constructor TServiceList.Create(AOwner...
  6. OmniCog

    Freeing TListView.data

    I am trying to extend the TTreeView class. How do I ensure that the memory of the object (it will always be an object) that is assigned to TreeNode.data is freed whenever a node is deleted in statements such as TV.Items.Clear? I understand something like: TNodeData(TV.Selected.Data).Free...
  7. OmniCog

    Add Handle Double Click for MenuItems

    Thanks for the replies, but I'm afraid that I wasn't clear in my earlier post. I have a hirearchy of TMenuItems that is dynamically generated from a Virtual Tree View. The problem lies in the TMenuItems. This TreeView has folder and leaf nodes. My program goes through the treeview and...
  8. OmniCog

    Add Handle Double Click for MenuItems

    Hi, I'm fairly new to Delphi, and I want to know how to handle double click events for my menu items. I have a simple dynamically generated menu hirearchy based off a tree view. I need users to be able to double click (or somehow select) a menu item which has children items. I could just use...
  9. OmniCog

    Embed OnFinish event?

    I use it for Visual Basic. I need js code that netscape users will be able to experience.
  10. OmniCog

    Embed OnFinish event?

    Thanks, I'll test this code out tonight. I'm not much of a JavaScript person so I had no idea where to start, and I'm not to fond of msdn for javascript because I prefer to be create cross-platform code.
  11. OmniCog

    Embed OnFinish event?

    Can I play a sequence of media files with the embed tag? I have an Open Source PHP script (http://phpmultimeed.sourceforge.net/dev/) that uses javascript to display a playlist play a list of media files. Someone has requested the ability to play a sequence of files consecutively. I need...
  12. OmniCog

    Simulating detach frame problem

    >> But that doesn't change the fact that it is not necessary to have it there ;o) Your right lol. >>Sounds like you're running into a security issue. You can't retrieve the location of another frame if the page isn't on your server. If people could, they would be able to track your movements...
  13. OmniCog

    Simulating detach frame problem

    Thanks for the reply, but the "javascript:" part does not effect the problem.
  14. OmniCog

    Simulating detach frame problem

    Hi, I am trying to simulate a detach frame mechanism. I have 2 frames, mainFrame and leftFrame. I want to be able to let users open a new window with the location of the mainFrame. I can simulate "detach frame" if the user has not clicked a link, but when the location of the frame is changed...
  15. OmniCog

    Send to tray external applications with dynamic titles

    Is there an api function that would return the window's handle from cursor coords?
  16. OmniCog

    Send to tray external applications with dynamic titles

    Thnx for the reply Buho By tray I mean system tray, and yes I was refering to FindWindow, the problem is that the program does not know the windows name. I know a program in VB 'hides' a window by having a user select it with his mouse. The window name will then appear in a list so that it...
  17. OmniCog

    Send to tray external applications with dynamic titles

    How do I send open windows to tray if the windows contain dynamic titles, and the proccess was not created by the program? How would I send an explorer window, or a music player that changes it plays a song, or a word document to tray? I'm new to delphi and know how to send my own applications...
  18. OmniCog

    Extract Zip files w/o components

    I've come accross abbrevia a couple times before, but the amount of files blew me away because I was just expecting a few .pas files. I finally folded and instaled the thing, and now im just looking at the demos. Thanks for all the feedback
  19. OmniCog

    Extract Zip files w/o components

    I do not like installing random components unless I absolutely have to, and only on large projects. The project I am working on is small and the feature is not absolutely necessary. I've manipulated zip archives with PHP, and which only required me to include a small 18 kb file to my project...
  20. OmniCog

    Allowing Optional 'Pass by Reference' parameters?

    Works like a charm thanks!

Part and Inventory Search

Back
Top