Page 1 of 1
ModifyButton
Posted: Tue Jan 23, 2018 10:14 pm
by sashapont
In help I see ModifyButton -- modify button data / OBSOLETE
Are there any new function to change button position without it removing?
Re: ModifyButton
Posted: Wed Jan 24, 2018 6:24 pm
by airsoftsoftwair
You could create a layer button and then move the layer around and the button position will change too.
Re: ModifyButton
Posted: Wed Jan 24, 2018 7:04 pm
by sashapont
I don't understand clearly. Can you give same example?
I write
Code: Select all
CreateLayer(x,y,w,h,{Color = #WHITE, Name = Gadget1})
SelectLayer(Gadge1)
TextOut(4, 3, Text$)
MakeButton(1, #SIMPLEBUTTON, x, y, w, h, events)
EndSelect
And have error.
Re: ModifyButton
Posted: Wed Jan 24, 2018 7:34 pm
by airsoftsoftwair
You have to use #LAYERBUTTON. See
MakeButton().