development release 9.1.8 and guiserver 0.1

Started by Lutz, June 06, 2007, 11:26:37 AM

Previous topic - Next topic

Lutz

- miscellaneous bug fixes in newLISP 9.1.8



- the first alpha release of guiserver!



files for guiserver can be untarred on MacOS X using: tar xzvf guiserver-0.1.tgz. On Win32 WinZIP or most other archive utilities can be used.



Please read the readme.txt in the guiserver-0.1/ directory first. It tells how to install. In the next development version guiserver installation will be part of the general installation process.



See here for files:



http://newlisp.org/downloads/development/">http://newlisp.org/downloads/development/



Lutz

rickyboy

#1
I was able to install and run guiserver successfully without upgrading newlisp.  I ran the console app and it looks good.
(λx. x x) (λx. x x)

newdep

#2
(load "http://www.nodep.nl/downloads/newlisp/reply.lsp">http://www.nodep.nl/downloads/newlisp/reply.lsp")
-- (define? (Cornflakes))

m35

#3
Awesome! Everything worked perfectly. Very very nice :D



And thank you for still taking time out to post on my random issues when I know you were working hard on this.

HPW

#4

C:Programmenewlisp>newlisp button-demo.lsp
server listening on 47011
server accepted from 0.0.0.0
server connecting to 0.0.0.0:47012

value expected in function net-listen : portOut
called from user defined function gs:init

C:Programmenewlisp>retrying to connect
retrying to connect
retrying to connect
retrying to connect
retrying to connect


I had problems with the demos to start with 9.1.5

After reinstalling 9.1.2 as mentioned in the readme it works.

But it looks not as native windows XP.

Shouldn't be the platform native look be the default?

How can I change it?


Quote- can switch look-and-feel between platform native, swing-metal and motif, guiserver by default shows platform native look and feel.


Looks for me kind of swing-metal.

So is there a windows XP theme aware option?
Hans-Peter

Lutz

#5
Looks pretty native to me ;)



the file dialogs look a little different. No look-and-feel switching in this version, the current one is the closest to a normal Windows look-and-feel. This is what I see:

http://newlisp.org/downloads/development/GuiserverDemoWin32.gif">http://newlisp.org/downloads/developmen ... oWin32.gif">http://newlisp.org/downloads/development/GuiserverDemoWin32.gif



Everybody please read the readme.txt first before installing!



Lutz



ps: metal looks different

m i c h a e l

#6
Lutz,



Is that screenshot an accurate representation of how the icons look in XP?!



m i c h a e l

Lutz

#7
several comments to this:



(1) when I did the GIF format it flattened to 256 colors. On the screen original the colors where smooth. This causes the white spots inside the restart-icon.



(2) the white pixels you can see around (at the peripherie of) the icons in the upper left corner can also bee seen in other applications, i.e. The Mozilla Firefox browser's icon shows the same white pixels.



(3) The shadow at the bottom of the small newLISP icon in the widgets-demo.lsp application is due to the current look-and-feel settings of Java under Windows ( I am looking for a better look-and-feel-spec for Windows). You see the same color change towards a darker shade on buttons. You cannot see this color change on the GIF link becuase the buttons are disabled at the monent by a pressed ToggleButton, this is why they appear in grey (you would see the same on the Mac)



(4) generally colors are/may be different on Windows versus Mac depending on color calibration of the monitors/LCDs



(5) currently guiserver chooses the default look-and-feel it finds on any platform.



Lutz

HPW

#8
Hello Lutz,



My comments are not meant as critic, since I find the new GUI a fantastic project. My only concern is the fact that 'normal' win-user may find the GUI different from what they see in other win-software. But this is the problem for all multiplatform projects. I for myself would not have difficulties to use such GUI, but as a developer for widespread custom tools, I must see this fact.



I fake together a widget-demo-app (with neobook) to show a native theme-based look:



Edit: Removed link to sample file because problem solved in 0.2



The ideal multiplatform app should use the best possibel native look, so the users on each platform feel at home.

Maybe we should kept an eye on the upcoming tile-project for TCL/TK.

(So keep newLISP-TK in a save place)

Another commercial player are the revolution people.
Hans-Peter

newdep

#9
My WinXP Pro screen dump ->



http://www.nodep.nl/downloads/newlisp/wingui01.png">//http://www.nodep.nl/downloads/newlisp/wingui01.png





I will post the one on Linux Slackware later today..



And perhpas also the OS/2 version ;-)
-- (define? (Cornflakes))

Lutz

#10
Nice screen shot Norman, I hope I also can make a better one soon.



HPW, the next version will have gs:set-look-and-feel to switch away from the default flavor. Meanhwile try the following from the command line in Windows. Use this syntax:


java -D<lookandfeel> guiserver.jar <portno> <app>

all file paths have to be complete.


java -Dswing.defaultlaf=com.sun.java.swing.plaf.windows.WindowsLookAndFeel  c:Program Filenewlispguiserver.jar 47011 widgets.lsp

if you are not in the directory where widgtest.lsp resides you have to prepend the path of it too. You make have to quote the Windos path becuase of the spaces contained.



If this works well perhaps you can make another screen shot.



Lutz

Ryon

#11
I am not a fan of Java in the slightest. But I'm certain that this is the right decision, to make Java the GUI for NewLISP. There is so much flexibility just waiting to be used. Don't like the look-and-feel? Load in another!



This implementation of Java in NewLISP is a challenge in simplicity and straightforwardness to all other scripting languages, and especially to Java itself.



Very clean, and VERY well-done, Lutz!
\"Give me a Kaypro 64 and a dial tone, and I can do anything!\"

Lutz

#12
Thanks for your nice compliments Ryon. They are appreciated very much.



Java is the new Cobol a language for the industrial programmer, everything is predefined in a huge libarary for everything, which doesn't leave much place for creativity because every situation, which could occur is already precooked in some library object or interface. Kind of the opposite to newLISP with a minumum set of tools, which you have to put together creatively, which is of course what all the fun of programming is about.



In what Java does, it is excellent and in my opinion the best tool for teaching object oriented programmming. I have old apps I did in 1998/99 on Java 1.2/1.3 before the Win2k, XP and Vista and before OS X. I loaded them up on all those OSs, which didn't even exist when those apps were made and they run without a hitch.



To boil down the huge Java API to something small without loosing essential functionality was a challenge. As Java has grown so much over the last decade, there are a lot of inconsistencies to hide before the user.



For those of you who have worked or are working with Java, look into the source, which will be released in the next week or so (GPL). It uses a some  reflection stuff for the interpreter and builds its own simplified GUI objects hierarchy.



Lutz