Thinking of professional output on paper let me search for this in newlisp.
But it seems not much native options.
So what are the options:
Using TCL-Extensions?
Generating HTML and lauch a browser?
Generating PDF and use Acro Reader?
Other?
Any thoughts or ideas?
Search found 1390 matches
- Tue Oct 28, 2003 8:20 am
- Forum: newLISP in the real world
- Topic: Options for paper output?
- Replies: 20
- Views: 12353
- Mon Oct 27, 2003 9:37 pm
- Forum: newLISP in the real world
- Topic: Bug in tk-args
- Replies: 2
- Views: 3180
Bug in tk-args
Instead of:
must be
Code: Select all
(define (tk-args)
(parse (tk "args" " ")))
Code: Select all
(define (tk-args)
(parse (tk "args") " "))
- Mon Oct 27, 2003 9:25 pm
- Forum: newLISP in the real world
- Topic: commandline arguments no lisp-files
- Replies: 0
- Views: 2957
commandline arguments no lisp-files
When you want to use commandline arguments in your lisp-processing it might be not good to try to load the parameter as lisp-files. So disable the following code at the end of the TCL-file. foreach arg $argv { NewlispEvaluate "(silent (load \"$arg\"))" } To access the commandline arguments from lisp...
- Mon Oct 27, 2003 9:07 pm
- Forum: newLISP in the real world
- Topic: Focus for about-window
- Replies: 1
- Views: 2432
Focus for about-window
The AboutBox should get the focus, so that hitting the ESC-key
trigger the <Escape> event. Just add the line like this example.
trigger the <Escape> event. Just add the line like this example.
Code: Select all
bind .about <Escape> "destroy .about"
focus .about
- Mon Oct 27, 2003 8:24 am
- Forum: newLISP in the real world
- Topic: custom window icon for wrapped app
- Replies: 0
- Views: 2998
custom window icon for wrapped app
With this code you can set your own custom-icon for the window and the taskbar. wm iconbitmap . /freewrap/MyIco.ico But it causes a little flicker, because you see a small TK-window appearing on startup. Is this the price for it? Also it does not replace the icon of the EXE. Is there a way to replac...
- Sun Oct 26, 2003 8:38 pm
- Forum: Anything else we might add?
- Topic: How to access a TK-variable from newlisp?
- Replies: 3
- Views: 4176
- Sun Oct 26, 2003 1:57 pm
- Forum: Anything else we might add?
- Topic: How to access a TK-variable from newlisp?
- Replies: 3
- Views: 4176
Thanks for posting all these improvements in the Tcl.Tk code. About setting variables in Tcl/Tk: I just try to avoid it and work with the return values from the 'tk' statement stored in LISP variables. To declare Tcl variables from newLISP, I think you would have to create a child interpreter. But ...
- Sat Oct 25, 2003 8:41 pm
- Forum: newLISP and the O.S.
- Topic: Window pos from config-file
- Replies: 5
- Views: 5330
Window pos from config-file
When you start newlisp several times it pop up on different locations. Not so nice. Modifying newlisp-tk.tcl helps: Add to global vars: set Ide(WinPosX) "+100" set Ide(WinPosY) "+50" Add to proc Setupconsole wm title . $IDEversion #Behind this line wm geometry . $Ide(WinPosX)$Ide(WinPosY) Then wrapp...
- Sat Oct 25, 2003 7:56 am
- Forum: Anything else we might add?
- Topic: command without paranthesis?
- Replies: 6
- Views: 5877
- Sat Oct 25, 2003 7:16 am
- Forum: Anything else we might add?
- Topic: command without paranthesis?
- Replies: 6
- Views: 5877
For a more general solution I do this: #In the global var-section set Ide(DirectConsoleCmd) {dir syms} set Ide(DirectLispCmd) {directory symbols} #in proc ProcessConsoleInput # if { $lastCommand == "dir" } { set lastCommand "(directory)" } # if { $lastCommand == "syms" } { set lastCommand "(symbols)...
- Sat Oct 25, 2003 6:38 am
- Forum: Anything else we might add?
- Topic: How to access a TK-variable from newlisp?
- Replies: 3
- Views: 4176
How to access a TK-variable from newlisp?
I want to access TK-variables > (tk "set test 123") "123" > (tk "set test") > When I do the second I get a message window 'can't read "test": no such variable'. On a native TCL-console it works in that way. It respond with the content of the variable. Would be usefull to access all the global vars '...
- Fri Oct 24, 2003 5:16 am
- Forum: Anything else we might add?
- Topic: command without paranthesis?
- Replies: 6
- Views: 5877
- Thu Oct 23, 2003 8:22 pm
- Forum: Anything else we might add?
- Topic: command without paranthesis?
- Replies: 6
- Views: 5877
After some thoughts about the problem, it should be possible just by modifying the TCL-code of the console. Just compare the input against a command-list and when the input-string is in the command-list, make a proper lisp-call out of it and send it to newlisp. So the define could stay as it is and ...
- Thu Oct 23, 2003 5:01 pm
- Forum: Anything else we might add?
- Topic: command without paranthesis?
- Replies: 6
- Views: 5877
command without paranthesis?
In autolisp you can define a lisp-command without paranthesis by make an defun with an "C:" before the lisp-function name. (defun C:Testfunc () (setq banana 1)) At the console-prompt you can type "Testfunc" and it's starts. Would it be possible to add such or similar option to newlisp. When we make ...
- Thu Oct 23, 2003 1:07 pm
- Forum: Anything else we might add?
- Topic: Console window in custom-application?
- Replies: 5
- Views: 5114
(context 'EDIT) (define (edit ) (tk "if {[winfo exists .ewin] == 1} {destroy .ewin}") (tk "toplevel .ewin") (tk "text .ewin.edit -width 60 -height 10") (tk "pack .ewin.edit") (tk "bind .ewin.edit <Return> {Newlisp {(silent (EDIT:getEditText))}}") (tk "update idletasks")) (define (getEditText ) (set...
- Thu Oct 23, 2003 6:09 am
- Forum: Anything else we might add?
- Topic: Console window in custom-application?
- Replies: 5
- Views: 5114
Thanks for the start. I had problems to get it to work. I think this was a problem with this makro from init.lsp (define-macro (edit _func) (save (string _func) _func) (! (string "/usr/bin/vi " _func)) (load (string _func))) So I rename the new edit function to "myedit" and it works as expected. Is ...
- Wed Oct 22, 2003 7:01 am
- Forum: Anything else we might add?
- Topic: Console window in custom-application?
- Replies: 5
- Views: 5114
Console window in custom-application?
A nice feature would be to intergrate a console window in our own TK-Frontend. Like a listener-object in common-lisp, it would allow to output a command-log and input lisp-direct calls. Yes, sounds like an autocad command-line (Teach an old horse somthing new). Would be an subset of the newlisp-TK m...
- Mon Oct 20, 2003 7:04 pm
- Forum: Anything else we might add?
- Topic: evaluating strings
- Replies: 2
- Views: 3613
- Mon Oct 20, 2003 5:16 pm
- Forum: newLISP and the O.S.
- Topic: load lisp-files from inside wrapped EXE
- Replies: 17
- Views: 14161
Hello Lutz, Thank you very much for your fast and great work. And to see how incredible small it is, is still unbelievebel. >Its good to hear how newLISP can solve real world problems. After the great developments in last month, I now believe that it able to do solve such problems. It only has to sh...
- Mon Oct 20, 2003 5:46 am
- Forum: newLISP and the O.S.
- Topic: load lisp-files from inside wrapped EXE
- Replies: 17
- Views: 14161
> .. I wonder what kind of application you are developing? It's not a new application, it will be a port of an autolisp-app running under autocad. Ths lisp-files comes from a oracle-database with a complete ERP-dataset for calculating sales orders. It is used in an autocad-oem app and is running for...
- Sat Oct 18, 2003 3:48 pm
- Forum: newLISP and the O.S.
- Topic: load lisp-files from inside wrapped EXE
- Replies: 17
- Views: 14161
I did a heavy wrapping test with a complete database with 16600 Lisp-Files from a 5.7 MB ZIP. Unzipped 11.8 MB on Disk (69.4 MB on NTFS because cluster size) Now my newlisp-tk.exe is 9.85 MB. >Is the complete wrapped EXE loaded into memory? Yes it seems so, memory load is about the difference higher...
- Fri Oct 17, 2003 6:49 pm
- Forum: newLISP and the O.S.
- Topic: Shared library interface to import 'C' functions? How?
- Replies: 5
- Views: 5376
- Fri Oct 17, 2003 6:44 pm
- Forum: newLISP and the O.S.
- Topic: Shared library interface to import 'C' functions? How?
- Replies: 5
- Views: 5376
I have a DLL which I have called from other enviroments: So I test the following: newLISP v7.2.3 Copyright (c) 2003 Lutz Mueller. All rights reserved. > (import "DllTest.dll" "TestFunc") TestFunc <3787A4> > (TestFunc "Parameterstring from newlisp") Then it hang up and want to sent the problem to MS....
- Fri Oct 17, 2003 6:11 pm
- Forum: newLISP and the O.S.
- Topic: Shared library interface to import 'C' functions? How?
- Replies: 5
- Views: 5376
- Fri Oct 17, 2003 10:59 am
- Forum: newLISP and the O.S.
- Topic: Shared library interface to import 'C' functions? How?
- Replies: 5
- Views: 5376
Shared library interface to import 'C' functions? How?
On the homepage is this feature listed:
Shared library interface to import 'C' functions
How is it done. I surfed the doku, but could not find a related command.
Did I read it right, that I can call a functions in a DLL and get a return value?
Shared library interface to import 'C' functions
How is it done. I surfed the doku, but could not find a related command.
Did I read it right, that I can call a functions in a DLL and get a return value?