Page 1 of 1
[13 Nov 2009] Createpointer()
Posted: Sat Jun 13, 2020 5:32 pm
by Tarzin
Note: This is an archived post that was originally sent to the Hollywood mailing list on Fri, 13 Nov 2009 15:05:52 +0100
Hello,
I'm trying to create a new pointer but did not success. Here is my code (which is the same as in documentation):
Code: Select all
@DISPLAY {title="Match-It!", x=#CENTER, y=#CENTER, width=320, height=240, color = #GREEN}
@BRUSH 2, "pointeur3.png"
CreatePointer(1, #BRUSH, 2, 0, 0)
SetPointer(1)
waitleftmouse
I've tried with various pictures but at each time, I get a green screen, nothing else , no pointer. What is the problem?
Thanks
Tarzin
[14 Nov 2009] Re: Createpointer()
Posted: Sat Jun 13, 2020 5:32 pm
by airsoftsoftwair
Note: This is an archived post that was originally sent to the Hollywood mailing list on Sat, 14 Nov 2009 12:57:06 +0100
I've tried with various pictures but at each time, I get a green screen, nothing else , no pointer. What is the problem?
Does the PointerDemo example work on your system?
[16 Nov 2009] Re: Createpointer()
Posted: Sat Jun 13, 2020 5:32 pm
by Tarzin
Note: This is an archived post that was originally sent to the Hollywood mailing list on Mon, 16 Nov 2009 12:55:44 +0100
Hello Andreas
Does the PointerDemo example work on your system?
Yes PointerDemo runs on my system but I don't understand why my code (which is really similar to documentation) doesn't work. It's a code problem ou my pointeur3.png file which is wrong?
Thanks
Eric
[16 Nov 2009] Re: Createpointer()
Posted: Sat Jun 13, 2020 5:32 pm
by airsoftsoftwair
Note: This is an archived post that was originally sent to the Hollywood mailing list on Mon, 16 Nov 2009 22:24:11 +0100
Yes PointerDemo runs on my system but I don't understand why my code (which is really similar to documentation) doesn't work. It's a code problem ou my pointeur3.png file which is wrong?
The code looks ok. Send me your pointeur3.png and I'll have a look.
[17 Nov 2009] Re: Createpointer()
Posted: Sat Jun 13, 2020 5:32 pm
by Tarzin
Note: This is an archived post that was originally sent to the Hollywood mailing list on Tue, 17 Nov 2009 07:13:22 +0100
The code looks ok. Send me your pointeur3.png and I'll have a look.
Here it is! I've tried both of them without any result.
Thanks
Eric
[17 Nov 2009] Re: Createpointer()
Posted: Sat Jun 13, 2020 5:32 pm
by airsoftsoftwair
Note: This is an archived post that was originally sent to the Hollywood mailing list on Tue, 17 Nov 2009 22:55:13 +0100
Here it is! I've tried both of them without any result.
Ok, it seems there is a bug. Only pointer images with transparency seem to work under OS4. I'll fix this. To work around the bug, simply use an image with transparency/alpha channel. I didn't notice this bug because normally, all pointers use transparency