PROCESS-PRINTOUT trigger not available any more
Reinhard Mueller <[email protected]> Tue, 08 Mar 2011 18:56:31 +0100
| Newsgroups | gmane.comp.gnu.enterprise.general |
|---|---|
| Organization | GNU Enterprise |
| Message-ID | <1299606992.2901.112.camel@dublin> |
--===============0359194354==
Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-9DbWtj5tRLVMtdjvbGhc"
--=-9DbWtj5tRLVMtdjvbGhc
Content-Type: text/plain; charset="ISO-8859-15"
Content-Transfer-Encoding: quoted-printable
Hi, all,
I've just removed the PROCESS-PRINTOUT trigger from gnue-forms, because
* it didn't really work as intended anyway - the trigger had to be a
NAMED trigger of name=3D"process-printout" rather than a trigger or
type=3D"PROCESS-PRINTOUT"
* it is now possible to achieve exactly the same by hiding the normal
printout button in the form and adding a new button to the
__extra_toolbar__ with a custom function.
This is how you would do this:
<form>
<toolbar name=3D"tlb__extra_toolbar__">
<toolbutton name=3D"tlb_my_print" action=3D"act_my_print"/>
<toolbutton name=3D"separator"/>
</toolbar>
<trigger type=3D"ON-STARTUP">
form.tlb__main_toolbar__.tlb__rollback__.hidden =3D True
form.tlb__main_toolbar__.tlb__sep5__.hidden =3D True
</trigger>
<action name=3D"act_my_print" icon=3D"printout" label=3D"Custom printout"=
>
print "printing now"
</action>
</form>
You can even leave the form printout routine in and add the custom
printout as a second option, where I would certainly recommend to use
different icons for the two buttons :-)
Thanks,
Reinhard
--=-9DbWtj5tRLVMtdjvbGhc
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Dies ist ein digital signierter Nachrichtenteil
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iJwEAAECAAYFAk12bc8ACgkQKm/Tcod8puMAOgQAlQgPW9EpKZo52iz7d1Eo0MWQ
tYxTBbcbKbkie8JFmGr5hk9IqDdyYMqkxLd6+B0hrp5nciowFv04WeYJZzYcFnWF
4D+Hrnk4F0fl6zMdzqA/dUlGgBwMBv0AUyX/Imjs5l8WAscxEB79prV+u/fc0+kF
fR5sZvQP+nwbXeNxGnM=
=MpRf
-----END PGP SIGNATURE-----
--=-9DbWtj5tRLVMtdjvbGhc--
--===============0359194354==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnue
--===============0359194354==--