Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRS Info widget #37

Closed
HuidaeCho opened this issue Jul 7, 2021 · 4 comments
Closed

CRS Info widget #37

HuidaeCho opened this issue Jul 7, 2021 · 4 comments
Labels
enhancement New feature or request

Comments

@HuidaeCho
Copy link
Owner

image

@ocsmit Is CRS Info too small for you? I hardcoded its height to 125, but I guess it's system-dependent, so I need to grow it a little bit.

Also, is there a way to add a small padding to the left of the info text other than adding a space to the text itself (ugly...)?

Also, as is CRS Info is not copyable. Is there a better widget type, like <textarea> that can be read-only?

@ocsmit
Copy link
Collaborator

ocsmit commented Jul 8, 2021

@ocsmit Is CRS Info too small for you? I hardcoded its height to 125, but I guess it's system-dependent, so I need to grow it a little bit.

CRS info is too small for me. Could be my system font style/size. Maybe a way to make it scale based of system text info. Scroll bar in TextCtrl widget (mentioned below) makes it less important though.

Also, is there a way to add a small padding to the left of the info text other than adding a space to the text itself (ugly...)?

The text padding / positioning is something I have been struggling to figure out because no matter what positioning or alignment I change, it stays the same. I really don't want to add spaces/tabs in front of the text. There has to be a way to some sort of offset or padding, but I havent been able to find it.

Also, as is CRS Info is not copyable. Is there a better widget type, like <textarea> that can be read-only?

I just changed the text to the TextCtrl widget in 1495d97 which adds selection and copying and the aforementioned scrollbar for the text.

ocsmit added a commit that referenced this issue Jul 8, 2021
@HuidaeCho
Copy link
Owner Author

You found TextCtrl at the same time as I did! SetMargins() of this control didn't solve padding. I don't know what this is for then. :(

@HuidaeCho
Copy link
Owner Author

Please try 9bf8c90 and let me know if the TextCtrl is the right size with no scrollbar.

@ocsmit
Copy link
Collaborator

ocsmit commented Jul 8, 2021

Please try 9bf8c90 and let me know if the TextCtrl is the right size with no scrollbar.

Works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants