[Gambas-user] Release of gambas 1.9.18

Benoit Minisini gambas at ...1...
Wed Aug 24 19:02:16 CEST 2005


Hello world :-)

This release has two main changes:

1) The Editor control now supports custom syntax highlighting, and there is an 
example that shows that - I hope Steve Starr will be happy :-)

2) The Timer class is now implemented in the interpreter, and will be removed 
from any other component. You can create timers without the need of a GUI 
component now.

Here is the changelog:

--8<--------------------------------------------------------------------------

DEVELOPMENT ENVIRONMENT

* BUG: Fix the use of TextBox and TextArea selection methods.
* BUG: Swedish language is 'sv', not 'se'!
* BUG: Font selector always use relative font sizes by default.

DATABASE MANAGER

* BUG: Fix the use of TextBox and TextArea selection methods.

EXAMPLES

* NEW: A new example for showing the new Editor control, with custom syntax
  highlighting.
* NEW: Another little timer example made by Maxim Lapis was added to the 
  Timer example.

COMPILER

* NEW: Support for the new 'EXPORT OPTIONAL' feature. See below...

INTERPRETER

* NEW: The Timer class is now part of the interpreter, and must be removed 
  from any component that implements it.
* NEW: A new hook to handle timers in components managing the event loop.
* NEW: A new API, GB.RaiseTimer(), to raise timer events from components 
  managing the event loop.
* NEW: Classes can now be optionally exported. They are not exported from
  a component, if a class with the same name has been already exported
  from another component.
* BUG: Some fixes in error management. Now error information is kept until
  the end of a function.
* NEW: Application.Return is a new property for storing the value that
  will be returned by the program when it terminates.

QT COMPONENT

* NEW: Timer was removed.
* BUG: Drawing on void Pictures is not allowed anymore.
* BUG: Windows with a fix border work again.

QT EXTENSION COMPONENT

* NEW: The Editor control now supports custom highlighting routine, by
  raising the 'Highlight' event.
* NEW: Editor colors were replaced by styles, which are a combination of
  color, italic, bold and underline.

FORM COMPONENT

* NEW: A ColorButton control.

SDL COMPONENT

* Updated.

--8<--------------------------------------------------------------------------

About the Timer changes:

As Timer is implemented directly in the interpreter, the components 
developpers that had implemented them in their components must:

1) Remove the Timer class/control from their components

2) Calls GB.Hook() with GB_HOOK_TIMER, and implements a timer hook. This timer 
hook is called by the interpreter to create or remove timers.

3) Calls GB.RaiseTimer() each time a timer must raise its event.

Everything about that is explained on http://new.gambasdoc.org. Start to 
search at the http://new.gambasdoc.org/help/api/cat/timer page. And the gb.qt 
component source is the reference...

Good luck to Daniel & Laurent! :-)

Regards,

-- 
Benoit Minisini
mailto:gambas at ...1...




More information about the User mailing list