Page 1 of 1

Button object

Posted: Sun Aug 13, 2017 5:39 pm
by jPV
I'm dealing with buttons a lot in certain programs, and I find it a bit difficult that I can't use HaveObject(#BUTTON...) to check if I have certain buttons. Buttons seem to disappear in some occasions, like when changing display/mode properties etc, and I've ended up to create them just in case again and again. On some program I also have to keep track of them in own table variable... while it would be easier if I could check if they exist and do things according it.

Re: Button object

Posted: Tue Aug 15, 2017 8:31 pm
by airsoftsoftwair
The problem is that buttons (like layers) are children of BGPics so they aren't global objects like brushes or BGPics. They shouldn't disappear unless you change the BGPic. If you have a code snippet which demonstrates the disappearance of buttons without BGPic changes, please post it and I'll examine it.