Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » TopWindow&PopUp, TrayIcon » Bug: TopMost blocks Prompt dialog
Bug: TopMost blocks Prompt dialog [message #18822] Fri, 24 October 2008 16:04 Go to previous message
mrjt is currently offline  mrjt
Messages: 705
Registered: March 2007
Location: London
Contributor
The problem:
- You have a child window (opened with TopWindow::Open(this)) with TopMost(true, true) set.
- The parent window opens a Prompt (PromptOK etc)
- If the TopMost child window is in the center of the parent (where the Prompt will appear) then the prompt dialog is invisible, hidden behind the child window.
- Because the prompt is run with RunAppModal it is not possible to move the child window to reveal it, effectively locking up the application. You can hit return/escape to clear it but that's not ideal as the user may not even realise a prompt has been opened.

This is only a fatal problem on Windows, as on X11 the WM still allows you to move windows even with an AppModal dialog running.

My fix:
Setting TopMost on the prompt dialog before it's opened seems to fix it.

Test package attached. Tested against the svn version (2008.1 is actaully worse since you can't even use return/escape to clear the prompt)

[Updated on: Fri, 24 October 2008 16:05]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Howto Drop Files into a TopWindow please?
Next Topic: starting program hidden and putting it in start up
Goto Forum:
  


Current Time: Sun May 19 10:28:02 CEST 2024

Total time taken to generate the page: 0.00993 seconds