Search found 4 matches

by alexr
Tue Sep 09, 2008 2:08 pm
Forum: newLISP Graphics & Sound
Topic: Event handlers in a different module than form definition?
Replies: 5
Views: 5449

Okay found it in /usr/share/newlisp/guiserver. I must have missed it in the docs.
by alexr
Tue Sep 09, 2008 1:50 pm
Forum: newLISP Graphics & Sound
Topic: Event handlers in a different module than form definition?
Replies: 5
Views: 5449

You may also want to look into the gs:tabbed-pane control. There is a demo about this in tabs-demo.lsp. These are nice when you need to switch beck and forth between different forms.
I'm running on OSX and just installed the latest (9.4.5). Where is tabs-demo.lsp?

Thanks
Alex
by alexr
Tue Sep 09, 2008 12:11 pm
Forum: newLISP Graphics & Sound
Topic: Event handlers in a different module than form definition?
Replies: 5
Views: 5449

Instead of making the other components dialogs, can I make them panels instead and add those to my application frame? Something like: ;;; run (define (run) (begin (gs:init) (gs:frame 'Main 200 200 320 480 "Main") (setq p1 (pane1 'app:got-event)) (setq p2 (pane2 'app:got-event)) (gs:add-to 'Main 'p1)...
by alexr
Tue Sep 09, 2008 7:22 am
Forum: newLISP Graphics & Sound
Topic: Event handlers in a different module than form definition?
Replies: 5
Views: 5449

Event handlers in a different module than form definition?

I am a newcomer to newlisp and am not sure how to break my code up in modules when it comes to gui forms. The app I'd like to write will need a few forms and I would like to save each form definition (hence calls to gs: functions) in its own file. Actions local to each form would be defined within t...