Page 1 of 1
development release newLISP v.9.2.7
Posted: Sun Nov 25, 2007 9:47 pm
by Lutz
* Win32 back to non UTF-8 mode for binary installer
* Guiserver now switches automatically when running UTF-8 enabled newLISP
* new event registration with 'gs:window-moved' and 'gs:windows-resized' (see new move-resize-demo.lsp)
for files and changes notes:
http://newlisp.org/downloads/development/
Lutz
Posted: Mon Nov 26, 2007 4:58 pm
by newBert
Thanks !
Now it's running again on Win32 ... End of panic :-)
Fine and usefull, the new GUI-server functions gs:window-moved and gs:window-resized.
Posted: Mon Nov 26, 2007 5:10 pm
by cormullion
All is well on MacOS X Tiger here, Lutz. Thanks!
With the new resize event: - I added it to my slideshow script. It handled the continuous updating reasonably well for smaller images, when an image was being displayed at full screen... But for bigger images the resize actions started lagging behind a lot - so that the images inside the window were still changing size many seconds after the window had stopped being resized.
So - something to add to the list of possible future enhancements one day - would be a flag that suppresses (or controls) updating until the resize action has finished...
sqlite3.lspa
Posted: Mon Nov 26, 2007 8:07 pm
by Dmi
I suggest to change the library path for linux to
/usr/lib/libsqlite3.so.0 (at least Debian and Ubuntu)
instead of
/usr/local/lib/libsqlite3.so
I think there now distributions rests with the libsqlite in /usr/local
Does anyone have different paths?
window-resized and check-event
Posted: Mon Nov 26, 2007 10:21 pm
by Dmi
For the first, window-resize works great!
Thanks, Lutz!
About get-bounds within check-event: my recent investigations shows that calling gs:get-bounds produces additional event like
( set 'gs:bounds '(0 0 535 746))
which, in turn, rises next check-event interruption. And situation is looping...
Unfortunately date-value gives time by seconds which is too long period. So this task became intrivial....
Posted: Mon Nov 26, 2007 11:59 pm
by Lutz
With exception of gs:get-selected-text, which specifies an event handler explicitly, all other gs:get-xxx wait for an event to update a variable gs:xxx using gs:check-event, in effect all these are blocking until the gs:xxx variable is updated:
Code: Select all
gs:get-bounds
gs:get-fonts
gs:get-font-metrics
gs:get-screen
gs:get-text
gs:get-text-position
gs:get-version
Lutz
ps: you could use the 'time-of-day' function to get milliseconds resolution, but be careful that the number returned rolls over at midnight ;-)
Posted: Tue Nov 27, 2007 6:27 am
by Dmi
Lutz wrote:
ps: you could use the 'time-of-day' function to get milliseconds resolution, but be careful that the number returned rolls over at midnight ;-)
Oh! Thanks! That's quite for me!