Solved

Button without rectangle of focus

Posted on 1997-03-21
1
309 Views
Last Modified: 2010-04-04
I need some very little buttons on a form. When they got the focus, they receive a black rectangle outline.
On normal size buttons, it has no importance but on little size buttons, it hides the content of the button.

How prevent this rectangle outline on focused Buttons ?
(Using buttons from TButton class, not SpeedButton)

Jean marie Verdi
0
Comment
Question by:jm verdi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 2

Accepted Solution

by:
javiertb earned 50 total points
ID: 1334917
Hi,
If you don't want a button to have this rectangle(focus) you just have to set its property 'Tabstop'=FALSE so this component won't be focused. You can also control where the rectangle(focus)is with the SetFocus method.

I hope this helps.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question