[reportlab-users] Strange rendering of radio buttons
Brijunas, Martynas
Martynas.Brijunas at msci.com
Wed Oct 9 12:37:23 EDT 2024
[ trimming the thread to stay within 100kB limit ]
Hi Ben,
A square radio button behaves better, when rendered in Adobe Acrobat on Windows. There is no change in size of the control during "hover" or "click" events. It does however combine a square and a circle in a single control. Some screenshots below. With regards to your other question ("... does the smaller circle not vanish when you click off leaving just the checked larger circle?"), there is small artifact left behind in the bottom left corner of the control (screenshot 4).
[cid:image001.png at 01DB1A70.55043500]
[cid:image003.png at 01DB1A70.CD76DCE0]
[cid:image004.png at 01DB1A70.CD76DCE0]
[cid:image002.png at 01DB1A71.E3D1DD90]
Information Classification: GENERAL
From: Ben Hassell <ben at reportlab.com>
Sent: Wednesday, October 9, 2024 12:46 PM
To: Brijunas, Martynas <Martynas.Brijunas at msci.com>
Cc: reportlab-users <reportlab-users at lists2.reportlab.com>; Andy Robinson <andy at reportlab.com>
Subject: Re: [reportlab-users] Strange rendering of radio buttons
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
Hello Martynas,
If the problem is specifically radio buttons you could try the square shaped ones by adding a parameter "shape" to the form.radio commands e.g.
form.radio(name='radio1', value='value2', x=110, y=600, size=12, shape='square')
>From what I've seen this doesn't have the same issues. Unfortunately this can depend on what tool is used to render the pdf.
Since you did match my experience however on windows + acrobat then does the smaller circle not vanish when you click off leaving just the checked larger circle?
Kind Regards,
Ben Hassell
________________________________
Information regarding MSCI's processing of personal data may be found at www.msci.com/privacy-pledge. This email message and any attachments are for the sole use of the intended recipients and may contain proprietary and/or confidential information which may be privileged or otherwise protected from disclosure. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not an intended recipient, please contact the sender by reply email and destroy the original message and any copies of the message as well as any attachments to the original message. Local registered entity information: https://www.msci.com/local-registered-entities
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist2.pair.net/pipermail/reportlab-users/attachments/20241009/1e65f616/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 2321 bytes
Desc: image001.png
URL: <https://pairlist2.pair.net/pipermail/reportlab-users/attachments/20241009/1e65f616/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 2651 bytes
Desc: image003.png
URL: <https://pairlist2.pair.net/pipermail/reportlab-users/attachments/20241009/1e65f616/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.png
Type: image/png
Size: 2432 bytes
Desc: image004.png
URL: <https://pairlist2.pair.net/pipermail/reportlab-users/attachments/20241009/1e65f616/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 7098 bytes
Desc: image002.png
URL: <https://pairlist2.pair.net/pipermail/reportlab-users/attachments/20241009/1e65f616/attachment-0007.png>
More information about the reportlab-users
mailing list