View Issue Details

IDProjectCategoryView StatusLast Update
0038456LazarusLCLpublic2021-03-06 21:44
ReporterCudaText man Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version2.1 (SVN) 
Summary0038456: Form's BringToFront works ok, while SendToBack does not
Descriptiontested on win64 and linux x64 gtk2.
demo shows that form's BringToFront works, while SendToBack does nothing.
Steps To Reproducerun demo, press 1st button to test BringToFront, press 2nd one to test SendToBack.
TagsNo tags attached.
Fixed in Revision
LazTarget
WidgetsetGTK 2, Win32/Win64
Attached Files

Activities

CudaText man

2021-02-09 13:38

reporter  

tst-bringtofront.zip (59,804 bytes)

Juha Manninen

2021-03-06 21:44

developer   ~0129452

Indeed it is not implemented.
procedure TCustomForm.SetZOrder(Topmost: Boolean);
has test :
  if TopMost and HandleAllocated then ...

For TopMost=False (background) there is no implementation.
The foreground version calls :
  Screen.MoveFormToZFront
and
  TWidgetSet.SetForegroundWindow
neither of which have a background counterpart.
Patches are welcome.

Issue History

Date Modified Username Field Change
2021-02-09 13:38 CudaText man New Issue
2021-02-09 13:38 CudaText man File Added: tst-bringtofront.zip
2021-03-06 21:44 Juha Manninen Note Added: 0129452