[futurebasic] Re: [FB] Modal windows not locking out other functions

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : October 2008 : Group Archive : Group : All Groups

From: Robert Purves <listrp@...>
Date: Mon, 27 Oct 2008 20:52:42 +1300
On 27/10/2008, at 5:40 AM, Pierre Zippi wrote:

> In moving to appearance, modal windows seem to not operate like they
> did in standard basic. In standard any attempt to select other menu
> items while a modal window was open were blocked. Now in appearance, I
> can have a modal window open AND send my program into oblivion by
> selecting another menu item.
> I'm using FB4.4.3. I want the user to open a window with options for
> drawing a chart. While the options window is open, the user should
> only be able to make selections in that window.
> How do I lock out the menu while the modal window is open?


You could simply disable the menus while your modal window is open.
menu _mFile, 0, 0
menu _mWhatever, 0, 0
...

and then re-enable them when the window is closed.

Robert P.