Posted: Sun Dec 01, 2019 12:46 pm Post subject: Some problems about dragnow()
Without dragging the form, I can print the value normally, but after dragging the form, I can't print it. What's the reason。
Can I remove the wireframe of GroupBox (like:form.panel.BorderStyle=bsNone)
Code:
if f then f.destroy() end
f=createForm()
f.BorderStyle=bsNone
f.setPosition(800,100)
f.setSize(300,250)
Image=createImage(f)
Image.setSize(f.getSize())
GroupBox=createGroupBox(f)
GroupBox.left=20
GroupBox.top=10
GroupBox.setSize(150,150)
Label1=createLabel(GroupBox)
Label1.Font.Color=0xff
Label1.Cursor=-21
Label1.Caption='Print to value'
value=0
Label1.OnMouseDown=function()
Label1.Caption='Print to '..value
print(value)
value=value+1
end
Image.OnMouseDown=function()
f.dragNow()
end
GroupBox.OnMouseDown=Image.OnMouseDown
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum