Drawing in a pictureBox on secondary Lua forms doesn't work #3778
Labels
re: Lua API/scripting
Relating to EmuHawk's Lua API (not the Lua Console)
Repro: Affects 2.9.1
Repro: Fixed/added in 2.10 dev
Summary
When a pictureBox is created with the handle of a form that is NOT the oldest form created in the Lua script, and then an attempt is made to draw on said pictureBox, the drawing is unsuccessful. The "oldest" form being the form that was created before all others with the exception of calling
forms.destroy()
on the oldest form causing the second-oldest form to take its place and so on.Repro
forms.newform()
forms.pictureBox()
for any/all of said forms (at least one of which being a form that is NOT the oldest form created).forms.drawLine()
orforms.drawText()
) for any/all of the pictureBoxes.Output
For each attempt to draw on a pictureBox that does NOT belong to the oldest form, the following is outputted to the Lua console:
Host env.
Screenshots
The text was updated successfully, but these errors were encountered: