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
Upgrading from Windows 7 Home Ultimate to a professional version - how?
Could Linkserver provide me DB schema?
How to show the progress of record submission to the database dynamically in JSP
Spool problem in sqlplus
lotus script to check the groups
Ways to merge files in linux
Server 2008 NLB problem
jQuery Chained Select Boxes - Three Tiered ( third tier selected )
Exchange 2007 OWA causes 2 audit failures on failed login attempt
SQL 2008 upgrade creates two separate instances