On 5-7-2011 3:28, Wolfgang Schuster wrote:
Am 05.07.2011 um 15:09 schrieb Cecil Westerhof:
2011/7/5 Wolfgang Schuster
One slight problem. The backgroundcolor is a rectangle en goes out of the rounded button.
Add “backgroundcorner=round”.
Overlooked it. Now added. But did not solve my problem. What I mend is that when I click on the button, the inversion is done for the rectangle. So the button is displayed correctly with rounded corners, but when clicking on the button, the inversion goes out of the button because the complete rectangle is inverted. I would like to have the part outside of the rounded button not inverted.
I don’t think this is supported but when you’re not satisfied with the result you can disable the visual effect with \setupinteraction[click=no].
Wolfgang: (1) uncomment the first \protect \endinput in scrn-fld.mkvi (2) fix the \appendtoks at the end of the file Then this seems to work (converted mkii code but untested): \setupinteraction[state=start] \definepushbutton [reset] \startuniqueMPgraphic{whatever}{color} fill fullcircle xysized (OverlayWidth,OverlayHeight) withcolor \MPvar{color} ; \stopuniqueMPgraphic \definepushsymbol [reset] [n] [\uniqueMPgraphic{whatever}{color=red}] \definepushsymbol [reset] [r] [\uniqueMPgraphic{whatever}{color=green}] \definepushsymbol [reset] [d] [\uniqueMPgraphic{whatever}{color=blue}] \starttext \startTEXpage \pushbutton [reset] [page(2)] \stopTEXpage \startTEXpage \pushbutton [reset] [page(1)] \stopTEXpage \stoptext ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------