[reportlab-users] Strange rendering of radio buttons

Brijunas, Martynas Martynas.Brijunas at msci.com
Fri Oct 11 13:33:38 EDT 2024


Incidentally, I have found that the following combination renders nicely in Acrobat:

buttonStyle="cross", shape="square"

Martynas



Information Classification: GENERAL

From: Ben Hassell <ben at reportlab.com>
Sent: Friday, October 11, 2024 2:45 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,

I'll make a note of this in our bug tracker and if we have time to get to it we can reach out to you in future, thanks for showing us what it looks like on your system,

I haven't seen yet in person what you saw in screenshot 4 interestingly, definitely odd behaviour,

Kind Regards,
Ben Hassell


On Wed, 9 Oct 2024 at 17:37, Brijunas, Martynas <Martynas.Brijunas at msci.com<mailto:Martynas.Brijunas at msci.com>> wrote:
[ 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 01DB1C0C.127A6CC0]
[cid:image002.png at 01DB1C0C.127A6CC0]
[cid:image003.png at 01DB1C0C.127A6CC0]
[cid:image004.png at 01DB1C0C.127A6CC0]



Information Classification: GENERAL
From: Ben Hassell <ben at reportlab.com<mailto:ben at reportlab.com>>
Sent: Wednesday, October 9, 2024 12:46 PM
To: Brijunas, Martynas <Martynas.Brijunas at msci.com<mailto:Martynas.Brijunas at msci.com>>
Cc: reportlab-users <reportlab-users at lists2.reportlab.com<mailto:reportlab-users at lists2.reportlab.com>>; Andy Robinson <andy at reportlab.com<mailto: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<http://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/20241011/7007903a/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/20241011/7007903a/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 2651 bytes
Desc: image002.png
URL: <https://pairlist2.pair.net/pipermail/reportlab-users/attachments/20241011/7007903a/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 2432 bytes
Desc: image003.png
URL: <https://pairlist2.pair.net/pipermail/reportlab-users/attachments/20241011/7007903a/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.png
Type: image/png
Size: 7098 bytes
Desc: image004.png
URL: <https://pairlist2.pair.net/pipermail/reportlab-users/attachments/20241011/7007903a/attachment-0007.png>


More information about the reportlab-users mailing list