LB Booster
General >> Announcements >> LB Booster version 2.40 released
http://lbb.conforums.com/index.cgi?board=announcements&action=display&num=1388839641

LB Booster version 2.40 released
Post by Richard Russell on Jan 4th, 2014, 11:47am

I am pleased to announce the release of 'LB Booster' version 2.40. It may be downloaded from here:

http://lbbooster.com/LBB.exe (IDE/compiler)
http://lbbooster.com/LBBRUN.exe (optional runtime engine)

Version 2.40 consolidates a few changes made to support users who have been porting their programs (one well in excess of 50,000 lines!) from LB to LBB:
  1. Improved functionality of DIALOG_MODAL windows.

  2. Text written to a TEXTEDITOR is always inserted at the end, not at the caret.

  3. Setting PrinterName$ affects initial selection in a subsequent PRINTERDIALOG.

  4. FONT command can specify a height in pixels, even with bold/italic/underline.

  5. Reduced CPU usage by CONFIRM, NOTICE, FILEDIALOG, FONTDIALOG & PRINTERDIALOG.

  6. Improved compatibility with SDL.DLL and EZTW32.DLL libraries.

  7. Fixed a bug which could affect very long program lines containing a comment.
Richard.
Re: LB Booster version 2.40 released
Post by RobM on Jan 8th, 2014, 8:10pm

Quote:
...one well in excess of 50,000 lines!

Wonder who that could be wink

Curious what changes you made to dialog_modal windows? I just went to open my program to check a feature a customer was asking about and received a "Couldn't create window Saved jobs" error which is a dialog_modal window (in my [pleasewait] branch.

Also curious what you changed for the SDL.DLL?

Edit to add, the error I received was with version 2.38 or 2.39


Rob
Re: LB Booster version 2.40 released
Post by Richard Russell on Feb 2nd, 2014, 9:33pm

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.