Recent

Author Topic: [SOLVED] TEdit, Button focus rectangle  (Read 3392 times)

Pe3s

  • Hero Member
  • *****
  • Posts: 612
[SOLVED] TEdit, Button focus rectangle
« on: November 11, 2023, 07:26:13 pm »
Hello forum members, is it possible to custom software focus rect around edit and button?
« Last Edit: November 12, 2023, 09:52:02 am by Pe3s »

jamie

  • Hero Member
  • *****
  • Posts: 7300
Re: TEdit, Button focus rectangle
« Reply #1 on: November 11, 2023, 08:17:21 pm »
Yes, it has been a topic of discussion many times.

You could search these groups for it.

What exactly did you have in mind?
The only true wisdom is knowing you know nothing

Pe3s

  • Hero Member
  • *****
  • Posts: 612
Re: TEdit, Button focus rectangle
« Reply #2 on: November 11, 2023, 08:29:18 pm »
@jamie, I meant a rectangle surrounding Edit, Button in a color such as black. But Edit has no Paint property

jamie

  • Hero Member
  • *****
  • Posts: 7300
Re: TEdit, Button focus rectangle
« Reply #3 on: November 11, 2023, 08:58:23 pm »
I know what you meant.

 So not to let this get out of hand, Drop a Tpanel on the form and drop your TEDITs or TBUttons inside as a child control.

you can test the child control within the Onpaint handler of the TPanel and set the panels inner bevel colors.

The only true wisdom is knowing you know nothing

Pe3s

  • Hero Member
  • *****
  • Posts: 612
Re: TEdit, Button focus rectangle
« Reply #4 on: November 12, 2023, 09:51:48 am »
@jamie, Thank you for the tip.

 

TinyPortal © 2005-2018