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 bkrike 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. imagenetics

    Help needed: Handling dynamic popup menu items

    Hi there! I'd call myself rather a fan of programming, than a programmer, and most of my knowledge concerning C++ is based on C++Builder. During Christmas break I decided to finally try some programming in pure WinAPI. I wrote a tiny application which sits in the shell notification area an...
  2. imagenetics

    Double colon - Not sure what for

    I have a question about functions preceded with double colon ("::"). Sometimes I find two source files and in one of them the function is preceded with double colon while in other file the same function is not. In both cases the result of the function is the same. What is the difference...
  3. imagenetics

    Tray icon missing after Explorer crash (how to fix)

    I've written an application which resides in notification area aka tray (something like Daemon Tools). Now, if the Explorer crashes and the restarts, the icon of my application is missing in the tray (however, for exapmle, Norton AntiVirus icon is still there), but the application itself is...
  4. imagenetics

    Taskbar button's menu

    I'm using InsertMenuItem(...) to add custom items to my application's system menu. As for the menu of a window, everything works fine, but new items in the menu of a taskbar button - I know how to insert them in the menu, but how to make them work? Examples appreciated. Thanks.
  5. imagenetics

    File association

    How to determine full path (including the executable file name) to the application to which a specific file is assiociated? For example, I'm selecting a file (any file) and on a label I want to display the path to its "mother" application. The extension of a given file is determined by...
  6. imagenetics

    Custom component

    A couple of days ago I've downloaded a component which was provided with source code. I added few more properties. Everything works and now the component suits my needs even better. The component is originally designed for Delphi, but, with or without my modifications, it works fine in Builder...
  7. imagenetics

    Who can share BCBDEV offline?

    Damn! I didn't know that BCBDEV is going offline and now I need to check the FAQ about applications in the system tray. If you happen to have offline version of this website or this particular FAQ (with source, please), can you share it?
  8. imagenetics

    Convert bitmap to grayscale

    A bitmap in TImage. How to smoothly covert this bitmap to grayscale to achive the same effect like in Windows XP when you call a Shutdown system/Logoff user dialog?
  9. imagenetics

    Ejecting CD-ROM

    There is a combo-box in my program listing all available CD-ROM drives, by their letters (D:\, E:\, F:\, ...). I wish to add a button which will eject the selected drive. I know there is a mciSendString() to do this but no matter which drive I select in the combo, my audio drive is ejected every...
  10. imagenetics

    Caption buttons and system menus

    1. Is there any way to hide Maximize button but keep the Minimize button visible and functional? If you simply disable it, it stays visible. 2. How to add a button to form's caption bar which minimizes the window to tray (you can see such thing, for example, on GetRight windows - a button with...
  11. imagenetics

    Cursor

    How to display a Hand cursor over a label, for example, but the one defined in system (which is displayed in a web browser etc.)? I don't want "crHandPoint" from "Cursor" property, or any custom cursor loaded from resources.
  12. imagenetics

    No popup menu in TShockwaveFlash - Problem solved!

    I have finally managed to disable popup menu in TShockwaveFlash component. The solution was in writing a function that responds to right-click message send to an application. Here's the code (green is what you have to write): In "Unit1.h" private: void __fastcall NoRightClick(TMsg &Message...
  13. imagenetics

    TShockwaveFlash

    1. I've imported "Flash.ocx" so that I have a TShockwaveFlash component which allows me to display Macromedia Flash movies in my applications. Everything is fine, exept I wish to disable the popup menu displayed with right click. I mean to disable it completely, not just the playback options...
  14. imagenetics

    Form's minimum size

    Is there any way to prevent the form from scaling below a given size? For example, all controls on the form are organized for designed dimensions, let's say 640*480, and I don't want the form to be sized below this. Sizing up is allowed, so I cannot set form's border to non-resizeable.
  15. imagenetics

    Constructor vs OnCreate

    This may sound stupid but what is the difference between, assingning a value to a variable or calling a function in form's constructor and in OnCreate?
  16. imagenetics

    Tutorial - Snap to screen edges

    This example is based on the various sample applications I've found on the Internet. The following code makes your application's form, when dragged, snap to screen edges. Green lines is what you have to write. Red are already in the code. In "Unit1.h" add this: public: __fastcall...
  17. imagenetics

    How to catch a keypress outside an application

    How to catch a keypress outside an application, e.g. when a program is running in a tray so any keypresses and mouse clicks do not occure on the form or any of its controls.
  18. imagenetics

    Lame question: What sort of component is that?

    Ok, there are many apps that use this in their prefrences window, Winamp for example. You have a ListView on the left and set of options on the right. When you click an item (options group) from the list, contents are replaced with something else. The whole thing looks as if there was a...
  19. imagenetics

    How to turn the monitor off/on via code?

    How can I turn the monitor off and on at application's runtime? I know about SendMessage(Application->Handle, WM_SYSCOMMAND, SC_MONITORPOWER, 0); but it doesn't work (I use Windows XP but I'm not sure if it has something to do with it).
  20. imagenetics

    Fatal linker error. What should I do?

    Every time I try to compile a project in my C++Builder 6 Enterprise I get an error message "[Linker Fatal Error] Fatal: Expected a file name:". This occurs even when I compile a default File->New->Application without modifying anything in the code. I've re-installed Builder and nothing has changed.

Part and Inventory Search

Back
Top