[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: My Modal window tip on the wiki


{inline}

On Sat, 13 Jun 2026, 08:06 Kevin Ritch, <kevin@xxxxxxxxx> wrote:

> Howzit everyone,
>
> I only moved from VB6 to Gambas and Linux Mint a week ago. Silly question,
> but opening another form as modal is the norm isn't it, in Gambas?
>

I'd have to say very much no.
A modal window has a particular purpose (it disables the rest of the
program while it is open)

Oh! And I have to say, Gambas Rocks !!!.
>
I can't argue with that 😎
Welcome to the free world 😊

> Cheers,
>
> Kevin RITCH
>
>
> On 2026-06-12 8:59 pm, Bruce Steers wrote:
>
> I just added the following info to the Window.ShowModal page...
>
> Can anyone confirm it sounds correct or correct me accordingly.
> maybe you can offer some hard facts on the matter Benoit? (this stems from
> the reported bug on the bugtracker #3185)
>
> Many thanks
> BruceS
>
> Quote:
> A modal window (or modal) is an overlay that appears on top of an
> application's main content. It creates a "mode" that forces the user to
> interact with it before they can return to the main interface, effectively
> locking out the background until the window is dismissed.
> ---
>
>
> Events in your main application or other open windows will not work as
> expected when a modal window is open.
> Do not try to control the main application or other open windows from a
> modal window and do not try to make a modal window open or close other
> windows as you may find unexpected problems.
>
>
> A typical example of modal window usage is a Message
> <https://gambaswiki.org/wiki/comp/gb.qt4/message>() box.
> While the Message <https://gambaswiki.org/wiki/comp/gb.qt4/message>()
> window is displayed the main application is frozen until the message is
> closed.
>
>
> It is not usually possible and not advised to try to control anything
> outside of a singular modal window.
>
>
>

References:
My Modal window tip on the wikiBruce Steers <bsteers4@xxxxxxxxx>