Dr.Disrespect Grandmaster Cheater
Reputation: 3
Joined: 17 Feb 2016 Posts: 526
|
Posted: Wed Feb 24, 2016 1:45 pm Post subject: How to attach an image to a form, not as background? |
|
|
How can I attach an image to a form? I want it to be somewhere on the form, but not as a background.
I have add the image file to CE, then I tried the following code, which did not work:
Code: |
pic1 = createImage(form1)
pic1.Stretch=true
pic1.setPosition(20,110)
local s = findTableFile('introduction.jpg').stream
pic1.Picture.loadFromStream(s)
|
The line "local s = ...." causes a problem, Something like "Attempting to index a nil value".
Thanks in advance.
Update:
I also tried panraven's "attachBackGround" function, it returns the same error message.
|
|