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 Mike Lewis 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. Doom2pro

    TImage Mouse X Y Position

    I found out how to correct X an Y //In header private: int OrigH, OrigW, RealX, RealY; //In cpp file //---------------------------------------------------------- __fastcall TForm1::TForm1(TComponent* Owner): TForm(Owner) { //Set original width and height OrigH = Image1->Height; OrigW =...
  2. Doom2pro

    TImage Mouse X Y Position

    Hello, I know how to get the positions of the mouse over a TImage but my problem is this, When I drop a TImage onto a form and load a picture into it, set it's Align to alClient and run the the program and move my mouse over the image the X and Y positions are correct. If I set the TImage's...
  3. Doom2pro

    Click on file --> Open my app (How do I do this?)

    here is what I do (Example pulled from a project, you need to edit it) #include <Registry.hpp> void __fastcall TMainForm::SetRegistry() { TRegistry *Registry = new TRegistry; Registry->RootKey = HKEY_CLASSES_ROOT; int Buffer = 0; if(Registry->KeyExists(".zs"))...
  4. Doom2pro

    Fatal linker error. What should I do?

    Well the most easy way to solve that problem is to close BCB and reload the project file. Should work then -Richard
  5. Doom2pro

    How do I delete all files in a folder?

    Here is an example function I pulled out of a program I am working on void __fastcall TOptionsDlg::EmptyDir(AnsiString Directory) { TSearchRec sr; if(FindFirst(Directory+"\\*.*" , faAnyFile | faDirectory, sr) == 0) { do { AnsiString CurFile = sr.Name...
  6. Doom2pro

    How to tell witch MDI Child has focus

    Hello, I have tried to use ActiveMDIChild but the problem is when two or more MDI Children are visible (not minimized) and only one has focus ActiveMDIChild doesnt know witch one is active, I need to know how to tell what MDIChild has focus (Titlebar is blue). If anyone knows how this is done...

Part and Inventory Search

Back
Top