[Gambas-user] Quirky Showmodal from Full Screen Mode

Gianluigi bagonergi at gmail.com
Tue Jun 11 11:36:39 CEST 2019


I tried on my Mint 19.1 CINNAMON and it works well, it could also be a
matter of theme, what theme do you have?

Regards
Gianluigi

Il giorno mar 11 giu 2019 alle ore 09:55 Gianluigi <bagonergi at gmail.com> ha
scritto:

> Hi Ced,
> here with Ubuntu 18.04.02 and e2581fb (master) works fine.
> You could try putting brackets like Form1.Showmodal().
>
> Regards
> Gianluigi
>
> Il giorno mar 11 giu 2019 alle ore 00:10 Cedron Dawg <cedron at exede.net>
> ha scritto:
>
>> 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
>>
>>
>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20190611/e3df096f/attachment.html>


More information about the User mailing list