newLISP Fan Club

Forum => newLISP Graphics & Sound => Topic started by: DMac on July 17, 2008, 02:12:40 PM

Title: TreeView and table
Post by: DMac on July 17, 2008, 02:12:40 PM
I have a small gui based application that I am re-writing using the newLISP gui server and was making progress until I needed a treeview.  I understand that Swing has JTree (I am not a Java developer).  Is the guiserver going to include this widjet in the near future?  I also make extensive use of tables or grids in my applications and that is a feature that would be very desirable.
Title:
Post by: Lutz on July 18, 2008, 06:34:09 AM
Tree view and table are on my list. They are relative complex Java APIs, which need some additional work to make them usable in Guiserver.
Title: good news?
Post by: ptroev on January 07, 2009, 01:25:35 AM
good news?
Title:
Post by: pjot on January 07, 2009, 02:33:09 PM
Yes, good news: tables and treeviews are really easy in GTK... ;-)



(//%3C/s%3E%3CURL%20url=%22http://www.turtle.dds.nl/newlisp/tables.jpg%22%3Ehttp://www.turtle.dds.nl/newlisp/tables.jpg%3C/URL%3E%3Ce%3E)



The code is here:



http://www.turtle.dds.nl/newlisp/tables.lsp



Should run on MacOSX, Unix/Linux/BSD and Win32.



Peter
Title:
Post by: newBert on January 08, 2009, 02:53:03 AM
Quote from: "pjot"
The code is here:



http://www.turtle.dds.nl/newlisp/tables.lsp



Should run on MacOSX, Unix/Linux/BSD and Win32.



Peter


I've got an error (on WinXp-SP3):
> "libgobject-2.0-0.dll"
g_signal_connect_data <63A553B0>

ERR: import function not found in function import : "g_malloc"
>


N.B.: the script (modified to adapt it to my configuration)  begins like this :
# Define libraries for each platform
(case ostype
    ("Win32"
        (change-dir "C:/Program Files/GIMP-2.0/bin")
        (set 'GTK "libgtk-win32-2.0-0.dll")
        (set 'GDK "libgdk-win32-2.0-0.dll")
        (set 'GOBJECT "libgobject-2.0-0.dll"))
...
Title:
Post by: pjot on January 08, 2009, 03:35:16 AM
Oops my bad, that should be libglib-2.0-0.dll.



So: (import "libglib-2.0-0.dll" "g_malloc").



I updated the program, can you check again?



Regards
Title:
Post by: newBert on January 08, 2009, 03:48:04 AM
Quote from: "pjot"Oops my bad, that should be libglib-2.0-0.dll.



So: (import "libglib-2.0-0.dll" "g_malloc").



I updated the program, can you check again?



Regards


Yes, now it works ... Fine !

Thanks

;o)
Title: re
Post by: ptroev on January 08, 2009, 10:27:15 AM
this is.. good, thank you.