ModifyButton

Discuss any general programming issues here

ModifyButton

Postby sashapont » Tue Jan 23, 2018 11:14 pm

In help I see ModifyButton -- modify button data / OBSOLETE

Are there any new function to change button position without it removing?
sashapont
 
Posts: 42
Joined: Thu Aug 03, 2017 2:49 pm

Re: ModifyButton

Postby airsoftsoftwair » Wed Jan 24, 2018 7:24 pm

You could create a layer button and then move the layer around and the button position will change too.
User avatar
airsoftsoftwair
 
Posts: 2337
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany

Re: ModifyButton

Postby sashapont » Wed Jan 24, 2018 8:04 pm

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.
sashapont
 
Posts: 42
Joined: Thu Aug 03, 2017 2:49 pm

Re: ModifyButton

Postby airsoftsoftwair » Wed Jan 24, 2018 8:34 pm

You have to use #LAYERBUTTON. See MakeButton().
User avatar
airsoftsoftwair
 
Posts: 2337
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany


Return to General programming

Who is online

Users browsing this forum: No registered users and 1 guest

cron