Post by Carl Gundel on Mar 25, 2021 23:12:00 GMT -5
Mac users using Catalina/Mojave/Big Sur now supported using the 64 bit version.
Download 32-bit: www.libertybasic.com/lb5x32-352.zip
Download 64-bit: www.libertybasic.com/lb5x64-352.zip
Thanks for your patience.
Build 352 Notes
==============================================================================
- Use of NOTICE and PROMPT would sometimes cause a reshuffling of windows.
Fixed.
- Object message syntax should support arbitrary message nams including
keyword arguments. For example keywords should be permitted.
#mainwin cls()
- Fix out of range error when using the MID$() function.
'In build 351 this code produces an error
'This message needs a positive integer argument.
print mid$("*", 3, 1)
- Fix for EXIT SUB and EXIT FUNCTION
- Laid the foundation for Create Application, but it isn't completed for this
build. This will work by producing a .im file which will include the
compiled application and will start that application when it is launched.
- Fixed a bug where the input$() and inputto$() functions were not properly
resolving to the file specified by their #handle parameter inside of a SUB
or FUNCTION.
- Fixed the time$() function and made it compliant with the behavior of the
same function in LB4. Support for time$("secs") and time$("seconds")
returning seconds since midnight and time$("ms") and time$("milliseconds")
returning milliseconds since midnight.
- Added global #mainwin which points to the program's main window. Also added
a few functions to start:
contents$() - Return a string containing the entire text.
cls() - Clear to an empty string.
lines() - Return the number of lines of text.
line$(n) - Return the nth line of text.
selection$() - Return the selected text, or an empty string.
color(expr$) - Set color of following printed text to be one of the
predefined colors (i.e. red, blue, green, yellow, etc.)
debug$() - Return "MAINWINDOW"
- CALLDLL added - Windows only. STRUCT and CALLBACK aren't implemented
yet. For Mac and Linux there will be equivalent statements later. There
are certain to be some issues. See included examples calldll-example*.bas.
No STYLEBITS or Windows constants yet either.
Some of the Windows C types are supported: LPCSTR, LPSTR, DWORD, BOOL
More to come.
Only the following libraries can be used for now. They are hard coded.
user32, kernel32, gdi32, winmm, shell32, comdlg32, comctl32
Next build will allow the use of OPEN on any DLL.
- Added support for the HWND() function.
- Added support for the CURSOR statement. Some tweaking will need to be done
because the platform libraries for LB5 do not do cursors the same way as
the libraries for LB4 because of cross platform considerations.
- Fixed the font and font() for the graphics window and graphicbox because
they weren't producing the correct fonts and they were returning fonts that
were too large.
- Fixed the ^ operator to properly use double precision instead of single
precision when computing the result of raising to a power.
- Added the STOP statement.
- Forced the height of comboboxes to be no larger than 25. This keeps the
comboboxes from trying to center vertically inside the specified height
and produces backwards compatibility with LB4.x. The actual height of the
dropdown list when clicked is computed dynamically in LB5 and not using the
height parameter.
- Added COLORDIALOG support.
- Added darkpink and darkblue to the list of named colors for backwards
compatibility.
- Improved the performance of selecting colors by name in a graphics window
and graphicbox.
- Fixed the code editor to give it focus when creating a New File or when
opening a file.
- Work toward eliminating the Exit / Continue popup for most things.
- Improved sprite masking performance.
- Tweaked the mouse wheel scrolling code make it more sensitive.
- Changed the default editor font on the Mac to a Courier font to fix the
missing bold font in extended syntax coloring.
- Changed syntax coloring making branch labels bold, and changing the
#handle color dark red.
Download 32-bit: www.libertybasic.com/lb5x32-352.zip
Download 64-bit: www.libertybasic.com/lb5x64-352.zip
Thanks for your patience.
Build 352 Notes
==============================================================================
- Use of NOTICE and PROMPT would sometimes cause a reshuffling of windows.
Fixed.
- Object message syntax should support arbitrary message nams including
keyword arguments. For example keywords should be permitted.
#mainwin cls()
- Fix out of range error when using the MID$() function.
'In build 351 this code produces an error
'This message needs a positive integer argument.
print mid$("*", 3, 1)
- Fix for EXIT SUB and EXIT FUNCTION
- Laid the foundation for Create Application, but it isn't completed for this
build. This will work by producing a .im file which will include the
compiled application and will start that application when it is launched.
- Fixed a bug where the input$() and inputto$() functions were not properly
resolving to the file specified by their #handle parameter inside of a SUB
or FUNCTION.
- Fixed the time$() function and made it compliant with the behavior of the
same function in LB4. Support for time$("secs") and time$("seconds")
returning seconds since midnight and time$("ms") and time$("milliseconds")
returning milliseconds since midnight.
- Added global #mainwin which points to the program's main window. Also added
a few functions to start:
contents$() - Return a string containing the entire text.
cls() - Clear to an empty string.
lines() - Return the number of lines of text.
line$(n) - Return the nth line of text.
selection$() - Return the selected text, or an empty string.
color(expr$) - Set color of following printed text to be one of the
predefined colors (i.e. red, blue, green, yellow, etc.)
debug$() - Return "MAINWINDOW"
- CALLDLL added - Windows only. STRUCT and CALLBACK aren't implemented
yet. For Mac and Linux there will be equivalent statements later. There
are certain to be some issues. See included examples calldll-example*.bas.
No STYLEBITS or Windows constants yet either.
Some of the Windows C types are supported: LPCSTR, LPSTR, DWORD, BOOL
More to come.
Only the following libraries can be used for now. They are hard coded.
user32, kernel32, gdi32, winmm, shell32, comdlg32, comctl32
Next build will allow the use of OPEN on any DLL.
- Added support for the HWND() function.
- Added support for the CURSOR statement. Some tweaking will need to be done
because the platform libraries for LB5 do not do cursors the same way as
the libraries for LB4 because of cross platform considerations.
- Fixed the font and font() for the graphics window and graphicbox because
they weren't producing the correct fonts and they were returning fonts that
were too large.
- Fixed the ^ operator to properly use double precision instead of single
precision when computing the result of raising to a power.
- Added the STOP statement.
- Forced the height of comboboxes to be no larger than 25. This keeps the
comboboxes from trying to center vertically inside the specified height
and produces backwards compatibility with LB4.x. The actual height of the
dropdown list when clicked is computed dynamically in LB5 and not using the
height parameter.
- Added COLORDIALOG support.
- Added darkpink and darkblue to the list of named colors for backwards
compatibility.
- Improved the performance of selecting colors by name in a graphics window
and graphicbox.
- Fixed the code editor to give it focus when creating a New File or when
opening a file.
- Work toward eliminating the Exit / Continue popup for most things.
- Improved sprite masking performance.
- Tweaked the mouse wheel scrolling code make it more sensitive.
- Changed the default editor font on the Mac to a Courier font to fix the
missing bold font in extended syntax coloring.
- Changed syntax coloring making branch labels bold, and changing the
#handle color dark red.