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. LejonO

    getting TMemo character position from mouse position

    I actually found out what was wrong, it doesn't seem to work with a Point, this is how it should look: LRESULT charPos = SendMessage(Memo1->Handle, EM_CHARFROMPOS, 0, MAKELPARAM((WORD)X,(WORD)Y));
  2. LejonO

    getting TMemo character position from mouse position

    I use Borland's TMemo textpad and want to know the character position of my mouse cursor in the Memo, so in MouseMove I do the following: // X and Y are in client space void __fastcall MyApp::Memo1MouseMove(TObject *Sender, TShiftState Shift, int X, int Y) { TPoint mousePos; mousePos.x = X...

Part and Inventory Search

Back
Top