beas script - Button visible

Phil Sparkes

Hi,

In windowevent open I've created buttons like this....

create button=name=ReceiptParts,text=Receipt Parts,width=330
create button=name=PartsNeeded,text=Parts Needed,width=330

Works well but now I'd like to set one of them to invisible  - I can't find the syntax for that anywhere. Any ideas?

 

Comments

1 comment

  • Comment author
    Martin Heigl

    Hi Phil

    // with follow method you can make it unvisible

    menu=disable=ReceiptParts

    // if outside of load event, you must redraw the buttons

    menu=redraw

    // to activate it

    menu=enable=ReceiptParts

    // and if needed:

    menu=redraw

    0

Please sign in to leave a comment.