- Peter Thiem
- PowerBuilder
- Tuesday, 30 November 2021 12:22 AM UTC
Hi
How do I bring a sheet to front in MDI, with focus and drawing, as the selection via the Window menu bar would?
I am updating this application's task launcher so that when a task opens a sheet but it is already open, the sheet is brought to front.
I've tried wSheet.BringToTop = True (where wSheet is the sheet reference), it brings it to the front, but the focus is not automatically given to the sheet, and sometimes (when sheets are not in maximized mode) the sheet is not redrawn and the underlying sheet is shown.
When changing between sheets using the Window menu bar, the sheets focus is restored to where it last was, and the sheets are drawn properly, and that is ideal behavior.
Cheers, Peter.
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.