On Wed, 12 Jul 2017, Sven Schreiber wrote:
Am 12.07.2017 um 15:45 schrieb Allin Cottrell:
> On Wed, 12 Jul 2017, Sven Schreiber wrote:
>> Is there a complete package that uses bundle-print successfully, and
>> preferably which isn't an add-on like gig etc.? So that I can compare and
>> spot my mistake.
>
> tobit_y is a small such package.
Hm, OK thanks. So the difference between tobit_y and my case is that
(1) tobit_y attaches to a model window instead of the main window,
(2) that the gui-main function of tobit_y (namely GUI_tobit_y) is menu-only
at the same time (where my gui-main function instead can also be used off
menu), and that
(3) the gui-main function of tobit_y doesn't take any arguments, whereas mine
does.
Should or could these differences play a role? Because otherwise so far I
didn't see where my mistake would be.
The gui-main function must be marked as "no-print" in order for the
bundle-print function to be invoked (otherwise we assume it takes care
of printing without any auto-assist). Gui-main does not have to
menu-only; it may take more than zero arguments, and may attach to a
main window menu. See the trivial "bunret" example in the Function
Package Guide (section 3.4.1).
Allin