Recent

Author Topic: TBGRAGraphicControl Paint don't cover TMemo, TStatisText  (Read 2471 times)

fenix

  • New Member
  • *
  • Posts: 10
TBGRAGraphicControl Paint don't cover TMemo, TStatisText
« on: March 21, 2013, 02:44:30 pm »
Even when you BringToFront TBGRAGraphicControl object, it don't cover TMemo, TStatisText objects on a Form. TMemo, TStatisText are seen as at top over TBGRAGraphicControl object.
Could you check it please?

circular

  • Hero Member
  • *****
  • Posts: 3446
    • Personal webpage
Re: TBGRAGraphicControl Paint don't cover TMemo, TStatisText
« Reply #1 on: March 21, 2013, 03:47:28 pm »
Hmm that may not be a bug, because there are two different types of controls, some of them are rectangles that hide the form or the other controls behind them, and others are drawn on the control, and TBGRAGraphicControl is of the second type, whereas TMemo is of the first type. You may use TBGRAVirtualScreen if you want the first type, knowning that it has not a transparent background.
Conscience is the debugger of the mind

fenix

  • New Member
  • *
  • Posts: 10
Re: TBGRAGraphicControl Paint don't cover TMemo, TStatisText
« Reply #2 on: March 22, 2013, 01:40:41 pm »
Is it possible to make TBGRAGraphicControl of the first type? As buttons from BGRAControl (TBGRAButton, TBCImageButton,... and other ancestors from TBGRAGraphicControl) don't cover controls ancestors from TWinControl. While standard Lazarus controls (TButton) do it. I see that TBGRAGraphicControl is ancestor from TControl. What if to make it ancestor from TWinControl? May be it will help.

lainz

  • Guest
Re: TBGRAGraphicControl Paint don't cover TMemo, TStatisText
« Reply #3 on: March 22, 2013, 06:31:35 pm »
Is it possible to make TBGRAGraphicControl of the first type? As buttons from BGRAControl (TBGRAButton, TBCImageButton,... and other ancestors from TBGRAGraphicControl) don't cover controls ancestors from TWinControl. While standard Lazarus controls (TButton) do it. I see that TBGRAGraphicControl is ancestor from TControl. What if to make it ancestor from TWinControl? May be it will help.

Hi, Is not possible without removing Alpha support. Controls will not have real transparency.

There is already a version called TBGRAVirtualScreen.

Controls that are inherited from TCustomControl are Custom Drawn Controls that come with lazarus. See bgracontrols\test_extra\slicescaling_customdrawn_win7

 

TinyPortal © 2005-2018