Results 1 to 8 of 8

Thread: Modified TEdit?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    OK. I've got it to work a bit and I've got somewhat nice, dos-like underscore, but now curious thing happen: When I move mouse outside edit, caret moves back to top (had to move it bit downwards) and turns into um... overscore (is that even a word). Here's my code:

    Code:
    procedure TStoryProcessor.cmdMouseDown(Sender: TObject; Button: TMouseButton;
      Shift: TShiftState; X, Y: Integer);
    var  point:TPoint;
    begin
      //set caret
      CreateCaret(cmd.Handle,0,16,2);
      GetCaretPos(point);
      SetCaretPos(point.x,point.y+20);
      ShowCaret(cmd.Handle);
    
    end;
    I've even tried to put it into OnMouseLeave of edit, but to no result.
    Last edited by Darkhog; 18-08-2014 at 03:56 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •