Home Home Archives About red box
Username:
Password:
 
rss

Filed Under Delphi
digg TFocusTracker
visits: 248 | score: 5 
posted by sysrpl on Friday August 17, 2007 10:10 PM

hat do you think of this idea? A business I developed software for was creating data entry centric applications with a big ugly yellow background color following the keyboard focus. I decided in my own time to come up with a simpler, application wide, customizable, and prettier implementation of the same concept.

Per some of your suggestions, the class has been updated to allow for optional color outline highlights of varying thickness and offset. A thickness of zero means the highlight is solid, while greater values changes the thickness of the outline.

Usage: To use focus tracker simply add "FocusTools" to your uses clause then add code to adjust its settings:

begin
  FocusTracker.Enabled := True;
  FocusTracker.Color := clHighlight;
  FocusTracker.Opacity := $7F;
  FocusTracker.Blur := 2;
  FocusTracker.Border := 2;
  FocusTracker.Radius := 12;
  FocusTracker.Thickness := 3;
end;

After you have the properties set to your liking call:

FocusTracker.Update;

Which forces FocusTracker to update changes. That's all there is to it.
The demo pictured above is available here if you don't quite grasp the concept. Feedback is appreciated.


print send topic Rate this article  

Title:

image link indent align right align middle align left quote underline bold code quote
Comment:

page generated in 0.064 seconds | last modified 2/06/2011 9:35 PM
none  none