Recent

Author Topic: Bring BGRA Controls to front  (Read 1391 times)

CMELIGM

  • New Member
  • *
  • Posts: 11
Bring BGRA Controls to front
« on: June 27, 2025, 09:20:49 am »
Hello,

i tried using TBCFluentProgressRing and TBCMaterialProgressBarMarque from BGRA Controls. I can't figure out how to bring it to front.

Code: Pascal  [Select][+][-]
  1. procedure TMainForm.FetchTimerTimer(Sender: TObject);
  2. var
  3.   Thread: TDataLoaderThread;
  4. begin
  5.   FetchTimer.Enabled:= false;
  6.   pgrLoading.Visible:= true;
  7.   pgrLoading.BringToFront;
  8.   Application.ProcessMessages;
  9.   Thread:= TDataLoaderThread.Create(false);
  10.   Thread.FreeOnTerminate:= true;  
  11. end;
  12.  

BringToFront and SendToBack did not have an effect. Do i have to use the Standard TProgressbar for this ?. The Control hiding the ProgressBar is a VirtualStringTree.
The Thread will load some Data and after that hide the Progress bar again.

Thanks for any help.

lainz

  • Hero Member
  • *****
  • Posts: 4740
  • Web, Desktop & Android developer
    • https://lainz.github.io/
Re: Bring BGRA Controls to front
« Reply #1 on: June 28, 2025, 01:35:10 am »
Hi, these controls are derived from 'TGraphicControl' like TPaintBox. For that reason you can't change the z order, these are drawn in the canvas of their parent control.

For doing that, you maybe can place a TPanel in top, and put the BGRA Control inside.

CMELIGM

  • New Member
  • *
  • Posts: 11
Re: Bring BGRA Controls to front
« Reply #2 on: June 30, 2025, 08:31:48 am »
Hi, these controls are derived from 'TGraphicControl' like TPaintBox. For that reason you can't change the z order, these are drawn in the canvas of their parent control.

For doing that, you maybe can place a TPanel in top, and put the BGRA Control inside.

Thanks !

 

TinyPortal © 2005-2018