Microsoft
Software
Hardware
Network
Question : How to know when a TMemo's control has had text selected?
I am trying to enable/disable a button & menu item based on whether or not a TMemo's text has been selected
I dont see an event that triggers when text is selected...so how can i trap for it?
Answer : How to know when a TMemo's control has had text selected?
procedure TForm1.Memo1MouseUp(Sender
: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
begin
button1.Enabled := (Sender as TMemo).SelLength > 0;
end;
Random Solutions
Audit Failure on Windows 2008
Parallel port to usb port adapter for Printer?
Installing Windows 2008 Server R2 on a Dell PE 2850
KDL55HX701 or 55LH90, which is best/newer?
VB.NET: problem of debugging on windows 7
User's Web-Based AOL Mail is sending spam to all his contacts
HOW TO SORT MULT-DIM ARRAY IN PHP
Domain user account continuously getting locked out.
Database on a 64 bit OS - Conection issues
VLAN Configuring on a Powerconnect 5324