Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • Lazarus Lazarus
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 2,094
    • Issues 2,094
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 7
    • Merge requests 7
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar

Scheduled maintenance on the database layer will take place on 2022-07-02. We expect GitLab.com to be unavailable for up to 2 hours starting from 06:00 UTC. Kindly follow our status page for updates and read more in our blog post.

  • FPC
  • Lazarus
  • LazarusLazarus
  • Issues
  • #29247
Closed
Open
Created Dec 23, 2015 by FPC Admin account@fpc_adminOwner

PopupMode=pmExplicit and PopupParent<>nil do not work with modeless windows on Qt/Gtk2

Original Reporter info from Mantis: kluug.net @onpok
  • Reporter name: Ondrej Pokorny

Description:

When setting PopupMode=pmExplicit and PopupParent to a form, the dialog should stay on top of PopupParent (only).

It works on win32. It doesn't work on Qt/Gtk2.

(This may be a WS limitation and a fact that the problematic WS do not support such a feature - I hope not.)

Steps to reproduce:

Run this code (e.g. from a button):

procedure TForm1.BitBtn2Click(Sender: TObject);
var
  Dlg: TForm;
begin
  Dlg := TForm.CreateNew(Self);
  Dlg.Position := poDesigned;
  Dlg.Left := Left;
  Dlg.Top := Top;
  Dlg.PopupMode := pmExplicit;
  Dlg.PopupParent := Self;
  Dlg.Show;
end;

Then click back to Form1.
- win32: Dlg above Form1
- Gtk2/Qt: Dlg below Form1 (wrong)

Additional information:

Furthermore when closing Form1 on Qt, you get a SIGSEGV and the application crashes.

Mantis conversion info:

  • Mantis ID: 29247
  • Build: trunk
  • Version: 1.7 (SVN)
  • Fixed in revision: 51019 (#bbb3a9aa),51022 (#1f8d55f8),51023 (#cc178729)
  • Target version: 1.6
Assignee
Assign to
Time tracking