Closed KonkeyDong closed 3 months ago
I'm fairly sure forms.setsize() would in fact work for individual components? There even seems to be specific support for the pictureBox.
^ And if that wasn't available, you could have used forms.setproperty
.
edit: We don't have documentation for what properties exist because it's just all of WinForms by reflection.
Thanks!
I didn't see where in the Lua Functions page what string values could be used for the forms.setproperty()
. I'll provide a list that I was able to find for anyone else that may have stumbled a similar problem while consulting Google:
"Text"
: The text displayed by the control."BackColor"
: The background color."ForeColor"
: The text color."Width"
: The width of the control."Height"
: The height of the control."Left"
: The X coordinate of the control."Top"
: The Y coordinate of the control. TextBox
has a Text
property, while a PictureBox
might not.
I was writing a minimap display for a Gameboy game and realized that there wasn't any way to resize form components such as a
pictureBox
. I was glancing at the code and noticed that there is a forms.setsize() method defined for resizing the entire form, but none for resizing any of the components.Because of this, I have no way to resize a form for scaling reasons once I call
forms.pictureBox()
on a form. I would think that the method signature would be something like:I think this would be a simple yet handy feature to have as it would allow for more dynamic forms for display purposes. Thoughts?