am trying to create a table using a scrolled-treeview, to contain students' performance but i have failed to add the specific columns (name, math-mark, comp-mark) to it.
I have tried the following code but it returns an error
;; test.lisp
(ql:quickload :ltk)
(in-package :ltk)
(with-ltk ()
(let* ((tree (make-instance 'scrolled-treeview :columns '(0 1 2)) ))
; Adding the heading to the column
(treeview-heading tree 0 "Name")
(treeview-heading tree 1 "Math")
(treeview-heading tree 2 "COMP")
; Adding record to the created table.
(treeview-insert tree :values '("Simon Due" "78" "60"))
(treeview-insert tree :values '("Kato Ronald" "80" "90"))
(pack tree)
)
)
i expected to return a scrolled-treeview with the two records. Below is the error i get when load test.lisp
Invalid initializattion argument: :columns
in call for class #<STANDARD-CLASS LTK:SCROLLED-TREEVIEW>