TreeView and table

Started by DMac, July 17, 2008, 02:12:40 PM

Previous topic - Next topic

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

#1
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

#2
good news?

pjot

#3
Yes, good news: tables and treeviews are really easy in GTK... ;-)



http://www.turtle.dds.nl/newlisp/tables.jpg">



The code is here:



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



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



Peter

newBert

#4
Quote from: "pjot"
The code is here:



http://www.turtle.dds.nl/newlisp/tables.lsp">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"))
...
<r><I>>Bertrand<e></e></I> − <COLOR color=\"#808080\">><B>newLISP<e></e></B> v.10.7.6 64-bit <B>>on Linux<e></e></B> (<I>>Linux Mint 20.1<e></e></I>)<e></e></COLOR></r>

pjot

#5
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

#6
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)
<r><I>>Bertrand<e></e></I> − <COLOR color=\"#808080\">><B>newLISP<e></e></B> v.10.7.6 64-bit <B>>on Linux<e></e></B> (<I>>Linux Mint 20.1<e></e></I>)<e></e></COLOR></r>

ptroev

re
#7
this is.. good, thank you.