Skip to content
This repository has been archived by the owner on Mar 30, 2022. It is now read-only.

Radio Buttons in 2D Matrix Do Not Render Titles Correctly #21

Open
mcdermj opened this issue Feb 22, 2010 · 1 comment
Open

Radio Buttons in 2D Matrix Do Not Render Titles Correctly #21

mcdermj opened this issue Feb 22, 2010 · 1 comment
Labels

Comments

@mcdermj
Copy link

mcdermj commented Feb 22, 2010

When using the procedure in Bug Report #7 to create a two dimensional matrix of radio buttons, only the first column of buttons renders the text correctly. The additional columns do not display any text at all when imagePosition is NSImageLeft, NSImageRight, or NSNoImage. You can see the text superimposed in weird ways when imagePosition is in NSImageBelow NSImageAbove and NSImageOverlaps. This suggests that the text frame for the control may not being calculated correctly when in a matrix. I noticed there is some code to fix up the y-plane coordinates, possibly there is an x-plane correction necessary as well.

HOW TO REPRODUCE:

Create a two-dimensional matrix of buttons (I'm using 3 columns, 4 rows). Change each button's image to NSRadioButton, and it's class to BGHUDButtonCell. Simulate the interface.

@timthedevguy
Copy link
Owner

Ah, good catch, I never tried doing multiple columns, oops. This is added.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants