[16 Oct 2007] Makebutton and DoubleBuffer

Contains all messages from the Hollywood mailing list between 01/2006 and 08/2012
Locked
User avatar
lazi
Posts: 646
Joined: Thu Feb 24, 2011 11:08 pm

[16 Oct 2007] Makebutton and DoubleBuffer

Post by lazi »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Tue, 16 Oct 2007 02:23:24 +0100

Hi!

Tried to use MakeButton() on a double buffered screen and got the following error:

"A BGPic needs to be active while calling button functions!"

What does it mean? No way to using buttons with double buffer?
User avatar
airsoftsoftwair
Posts: 5833
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

[16 Oct 2007] Re: Makebutton and DoubleBuffer

Post by airsoftsoftwair »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Tue, 16 Oct 2007 22:31:55 +0200
Hi!

Tried to use MakeButton() on a double buffered screen and got the following error:

"A BGPic needs to be active while calling button functions!"

What does it mean? No way to using buttons with double buffer?
Currently not. Double buffer mode is not designed to handle buttons at the moment. You should implement them on your own using IsLeftMouse() and MouseX() and MouseY(). This should be no problem because double buffered scripts usually run at a fixed interval of some 25-50fps which is enough to see if the user clicked somewhere on the display.
Locked