[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 496
  • Last Modified:

SaveDialog TopMOst

I have an application without main form but with only datamodule that create one SaveDialog.
If I run the program with other windows opened in my desktop the savedialog remains hidden.
I tried with:

  Application.NormalizeTopMosts;
  SaveDialog.Execute;
  Application.RestoreTopMosts;

.. but it doesnt work..

0
rfedericoni
Asked:
rfedericoni
  • 3
  • 3
1 Solution
 
karagunesCommented:
Did you try this:

SetWindowPos(Handle, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOACTIVATE or SWP_NOMOVE or SWP_NOSIZE);
0
 
rfedericoniAuthor Commented:
like so::

  SetWindowPos(SaveDialog1.Handle, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOACTIVATE or SWP_NOMOVE or SWP_NOSIZE);
  SaveDialog1.Execute;

... i tired but it doesnt works
0
 
karagunesCommented:
Where do you call SaveDialog1 ? Please use Self.Handle instead of SaveDialog1.Handle.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
karagunesCommented:
Or you can also try Application.Handle
0
 
rfedericoniAuthor Commented:
With Application.Handle works! Thanks!
0
 
rfedericoniAuthor Commented:
no comment
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now