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 that form's file. Other actions would ideally be defined as passing control to some controller defined in the main file.
I tried the code below, but it fails and reports the following error:
- 'callback' is a newLISP built-int function reserved name, you cannot use that as a parameter name in the function form1:form1
- don't load guiserver.lsp a second time in form1.lsp , everytime you load guiserver.lsp you start a new application. Make the main application widnow a gs:frame and others gs:dialog.
Instead of making the other components dialogs, can I make them panels instead and add those to my application frame?
Yes, absolutely.
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.
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?