TreeView and table

Guiserver, GTK-server, OpenGL, PostScript,
HTML 5, MIDI, IDE
Locked
DMac
Posts: 1
Joined: Thu Jul 17, 2008 7:33 pm

TreeView and table

Post 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.

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post 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.

ptroev
Posts: 6
Joined: Sun Nov 16, 2008 2:47 am

good news?

Post by ptroev »

good news?

pjot
Posts: 733
Joined: Thu Feb 26, 2004 10:19 pm
Location: The Hague, The Netherlands
Contact:

Post 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

newBert
Posts: 156
Joined: Fri Oct 28, 2005 5:33 pm
Location: France

Post 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"))
... 
Last edited by newBert on Thu Jan 08, 2009 2:36 pm, edited 1 time in total.
BertrandnewLISP v.10.7.6 64-bit on Linux (Linux Mint 20.1)

pjot
Posts: 733
Joined: Thu Feb 26, 2004 10:19 pm
Location: The Hague, The Netherlands
Contact:

Post 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

newBert
Posts: 156
Joined: Fri Oct 28, 2005 5:33 pm
Location: France

Post 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)
BertrandnewLISP v.10.7.6 64-bit on Linux (Linux Mint 20.1)

ptroev
Posts: 6
Joined: Sun Nov 16, 2008 2:47 am

re

Post by ptroev »

this is.. good, thank you.

Locked