2019-05-14, 18:16
(2019-05-13, 21:32)Roman_V_M Wrote: Unfortunately, ControlList doesn't have a scrollbar.
Thanks for your reply. That's too bad, but I'll work around it.
I have some other layout questions if you have the time.
The reason I ask is because my controls look stretched or squashed to fill the whole cell. My only goal is to make it look clean and neat, I'm not trying to make a complex UI or use any advanced layout features. I'd also like for it to work across skins / resolutions. My needs are pretty straight forward. I need a text entry box, an int representing seconds (using a slider for this) and a multi-select list. I could use a series of three built-in dialogues but I'd like to make something more user friendly.
I could eventually figure it out with trial and error but I bet someone smarter has thought of better ways. Can you please confirm my understanding:
- It looks like the "cells" in the grid are spread evenly and the size is based on the geometry of the Dialogue that contains them. If that's so I can easily infer the cell size from that.
- The controls appear to stretch to fill the whole cell - padding (default x)
- If I understand correctly pad_x/y will shrink the control within the cell and I can use this to get it to a proper ratio so it doesn't look so wonky.
- I don't know the correct ratios for any of these controls. Is there a reference for this somewhere? I imagine a slider has a default fixed height. If so, is this the same across all skins and resolutions?
- Is there a way for controls not to stretch and maybe have them align on the top left of the cell (or any other kind of alignment, frankly)
Thanks for your patience and help! This is my first addon and first python project, and I last wrote code 10+ years ago... but I appreciate your help getting back on the bicycle