on Jan 8th, 2014, 8:10pm, RobM wrote:| Curious what changes you made to dialog_modal windows? |
|
If there is no suitable 'owner' window, a standard (non-modal) dialog is opened. Previously, in this condition an error 'Couldn't create window' was reported by LBB.
Quote:| Also curious what you changed for the SDL.DLL? |
|
It's been added to the list of DLLs that require 'special treatment', i.e. that must be called from the GUI thread rather than the interpreter's worker thread. Previously, a program attempting to use SDL.DLL would crash LBB.
Quote:| the error I received was with version 2.38 or 2.39 |
|
The current version available for download is 2.43.
Edit: If you run the program below you will see the different dialog_modal behavior. Using LBB 2.30 the error will be trapped and the title bar will display 'non modal' but with LBB 2.43 no error will occur and it will display 'modal' (even though it isn't!):
Code: nomainwin
on error goto [nonmodal]
open "Test (modal)" for dialog_modal as #main
on error goto 0
#main, "trapclose [close]"
wait
[nonmodal]
on error goto 0
open "Test (non modal)" for dialog as #main
#main, "trapclose [close]"
wait
[close]
close #main
end
Richard.