Page 1 of 1

TreeView and table

Posted: Thu Jul 17, 2008 9:12 pm
by DMac
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.

Posted: Fri Jul 18, 2008 1:34 pm
by Lutz
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.

good news?

Posted: Wed Jan 07, 2009 9:25 am
by ptroev
good news?

Posted: Wed Jan 07, 2009 10:33 pm
by pjot
Yes, good news: tables and treeviews are really easy in GTK... ;-)

Image

The code is here:

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

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

Peter

Posted: Thu Jan 08, 2009 10:53 am
by newBert
pjot wrote: 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):

Code: Select all

> "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 :

Code: Select all

# 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"))
... 

Posted: Thu Jan 08, 2009 11:35 am
by 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

Posted: Thu Jan 08, 2009 11:48 am
by newBert
pjot wrote: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)

re

Posted: Thu Jan 08, 2009 6:27 pm
by ptroev
this is.. good, thank you.