dormky 2 Posted November 27 I have a TImage and a TDrawGrid. Calling BringToFront() on TImage does not put it above the drawgrid, what am I supposed to use ? UFormMain.dfm UFormMain.pas Share this post Link to post
Die Holländer 45 Posted November 27 (edited) Put both components TImage and a TDrawGrid on separate panels. Edited November 27 by Die Holländer Share this post Link to post
dormky 2 Posted November 27 Just now, Die Holländer said: Put both components TImage and a TDrawGrid on separate panels. I want to make a loading overlay. I can't exactly go through the whole program doing this :') Share this post Link to post
Die Holländer 45 Posted November 27 Maybe in your Delphi version is also a TActivityIndicator under Windows10 palette/components.. Share this post Link to post
dormky 2 Posted November 27 I want a specific loading icon, not a pre-made windows one. Share this post Link to post
Minox 7 Posted November 27 Try it this way procedure TFormMain.FormCreate(Sender: TObject); begin Image1.Parent := DrawGrid1; Image1.Left := 0; end; Share this post Link to post
Die Holländer 45 Posted November 27 Make a small form with only the TImage and create it on top of the parent TDrawGrid form. Share this post Link to post
Remy Lebeau 1405 Posted November 27 1 hour ago, David Heffernan said: Try calling BringToFrontNoCap() There is no such method in VCL. Share this post Link to post
Remy Lebeau 1405 Posted November 27 8 hours ago, dormky said: I have a TImage and a TDrawGrid. Calling BringToFront() on TImage does not put it above the drawgrid TDrawGrid is derived from TWinControl, whereas TImage is derived from TGraphicControl. Both controls in your DFM have the same Parent (the Form). A graphical control is rendered directly onto the canvas of its Parent, and thus can never appear on top of a child windowed control of the same Parent. 8 hours ago, dormky said: what am I supposed to use ? As suggested earlier, you will have to make the TImage be a child of the TDrawGrid, or put the TImage on a separate Form (or Frame) that is on top of the TDrawGrid. Share this post Link to post