@@ -11,11 +11,11 @@ ;;====================================================================== ;; Test info panel ;;====================================================================== -(use format) +(use format fmt) (require-library iup) (import (prefix iup iup:)) (use canvas-draw) @@ -81,10 +81,14 @@ ))))) ;;====================================================================== ;; Test meta panel ;;====================================================================== + +(define (test-meta-panel-get-description testmeta) + (fmt #f (with-width 40 (wrap-lines (db:testmeta-get-description testmeta))))) + (define (test-meta-panel testmeta store-meta) (iup:frame #:title "Test Meta Data" ; #:expand "YES" (iup:hbox ; #:expand "YES" (apply iup:vbox ; #:expand "YES" @@ -111,12 +115,13 @@ (lambda (testmeta)(db:testmeta-get-reviewed testmeta))) (store-meta "tags" (iup:label (db:testmeta-get-tags testmeta) #:expand "HORIZONTAL") (lambda (testmeta)(db:testmeta-get-tags testmeta))) (store-meta "description" - (iup:label (db:testmeta-get-description testmeta) #:size "x50"); #:expand "HORIZONTAL") - (lambda (testmeta)(db:testmeta-get-description testmeta))) + (iup:label (test-meta-panel-get-description testmeta) #:size "x50"); #:expand "HORIZONTAL") + (lambda (testmeta) + (test-meta-panel-get-description testmeta))) ))))) ;;====================================================================== ;; Run info panel