[Gambas-user] Quirky Showmodal from Full Screen Mode
Cedron Dawg
cedron at exede.net
Tue Jun 11 00:09:56 CEST 2019
Here is an issue that I have run into, but I am not the first:
http://gambas.8142.n7.nabble.com/Dialog-on-top-of-FullScreen-window-td46253.html
Okay, I have Linux Mint 17 Mate.
So, create a Qt or Gtk project (or download attached). Add a second form, accept the default name. Put this in the main form code:
Public Sub Form_KeyPress()
Select Case Key.Code
Case Key["1"]
Me.FullScreen = Not Me.FullScreen
Case Key["2"]
Form1.title = Str(Now)
Form1.Showmodal
End Select
End
Run the project. Press [1] a few times, works as expected.
When the form is not full screen, press [2], works as expected.
Close the second form by clicking its 'x'.
Press [1] to go into full screen. works as expected.
Press [2].
Now things don't work any more. The form apparently opens, but it is hidden by the full screen form instead of showing. Even though the full screen form is on top it doesn't have focus and thus will not take any keystrokes.
To get out, I have to "Alt-Tab' to the IDE and stop the program.
What to do?
Thanks,
Ced
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FullScreenModalDemo-0.0.1.tar.gz
Type: application/x-compressed-tar
Size: 11702 bytes
Desc: not available
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20190610/c77b4cd5/attachment.bin>
More information about the User
mailing list