Hello: Does ltk have file dialogs? I'm programming a little cbr viewer and I need them. I haven't found them on ltk.lisp. Thanks you.
-- Felip Alàez Nadal
On 5/7/06, Felip Alàez Nadal uu.nix.uu@gmail.com wrote:
Hello: Does ltk have file dialogs? I'm programming a little cbr viewer and I need them. I haven't found them on ltk.lisp. Thanks you.
try a command using callbackvalue and tk_getfile as the command producing the value.
ie, this is a case where Ltk does not have to do anything special, and instead the tcl/tk doc itself is your guide.
kt
On 5/7/06, Felip Alàez Nadal uu.nix.uu@gmail.com wrote:
Hello: Does ltk have file dialogs? I'm programming a little cbr viewer and I need them. I haven't found them on ltk.lisp. Thanks you.
It looks like Peter missed them in the manual. There are three relevant functions: get-open-file, get-save-file, and choose-directory. They all create modal dialogs that let the user select a file to open, save, or select a directory.
It looks like Peter missed them in the manual. There are three relevant functions: get-open-file, get-save-file, and choose-directory. They all create modal dialogs that let the user select a file to open, save, or select a directory.
Thanks you. They're just what I needed. I've released cl-cbr 003, a cbr viewer that uses ltk. It's at https://sourceforge.net/project/showfiles.php?group_id=145920
As you can see for the version number, it's just at the beginning, but works. It needs unrar and imagemagick. It's installable with asdf, but I don't know what to do to be installable via internet.
Bye!
_______________________________________________
ltk-user site list ltk-user@common-lisp.net http://common-lisp.net/mailman/listinfo/ltk-user
-- Felip Alàez Nadal