5.10b1 - a question about the new PostEvent() command

Just starting out? Need help? Post your questions and find answers here.
BorisTheOld
Enthusiast
Enthusiast
Posts: 542
Joined: Tue Apr 24, 2012 5:08 pm
Location: Ontario, Canada

5.10b1 - a question about the new PostEvent() command

Post by BorisTheOld »

Is there a range of numbers that can safely be used for user-defined Event Types? Up to 1000 numbers should be sufficient.

We want to be sure that our own event types don't conflict with the built-in PB event types.

Thanks
For ten years Caesar ruled with an iron hand, then with a wooden foot, and finally with a piece of string.
~ Spike Milligan
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: 5.10b1 - a question about the new PostEvent() command

Post by Fred »

You should use an event number higher than 65536 to be on the safe side. We will provide a #PB_Event_FirstUserEvent constant for that, so you can use it as an enumeration start.
BorisTheOld
Enthusiast
Enthusiast
Posts: 542
Joined: Tue Apr 24, 2012 5:08 pm
Location: Ontario, Canada

Re: 5.10b1 - a question about the new PostEvent() command

Post by BorisTheOld »

Thanks Fred, that would be perfect. In our testing we've been using a base of $FFFFF.

Keep up the good work, but remember, you don't have to work on Xmas day. :)
For ten years Caesar ruled with an iron hand, then with a wooden foot, and finally with a piece of string.
~ Spike Milligan
Post Reply