Thanks all for responding.

I've got some answers afters spending some more hours with it.

It was not the name ( I had tried different names before )
It was not the code. self.MouseCursor works just fine.

I found some old cursors created in Resourceror back in the day. I  
tried those - no luck. Yet, I still have a compiled application that  
uses those and it works fine. The app was built with RB 5.5. So  
Instead of dragging the cursor files into the RB2007r1 project (which  
didn't work) I opened the 5.5. project in RB2007 and used 'copy &  
paste' to get the cursors into my new project.

And tada! Boom-Ching!!!! Now they worked.

Interestingly - when opening those working ones in the IDE (fat bits  
display) I noticed that they indicated the 'hotspot' of the cursor in  
a red outline - whereas the ones I dragged into the project did not.

So at this point I'm thinking that something is wrong with how RB  
2007 reads the resource files. At least on my MBP. Perhaps it's  
different on PPC. This would make some sense since the getCursor()  
didn't work for me either.

But there's some good news too!

The 'good' cursor did work on both Mac and Win. So RB does do  
automagic conversion for b/w 16px CURS resources. Big YAAAAY!

As a sidenote, projects compiled with the 'bad' cursor showed no  
change on Mac. It'd just show the standard pointer. On WIN however  
the cursor did change - to thin air. Yep that's right it dissapears.  
Something is alive in there...

And a final note: I compiled two apps - one with the bad and one with  
the good CURS. I opened the app package and compared the resources in  
hex mode - they were both exactly the same!!! No that is spooky.

I'll do some more testing later on PPC and see if it makes a  
difference. Could be that cursors saved by reszilla, etc. break  
somehow when you run in Rosetta.

Thanks,
Juergen





On Feb 23, 2007, at 6:53 AM, Maximilian Tyrtania wrote:

> I seem to remember having had a similiar problem. It went away as  
> soon as I
> did this:
>
> App.Mousecursor=MyCustomCursor
>
> (instead of self.Mousecursor= MyCustomCursor )
>
> I think it was just setting a windows or a controls cursor -  
> property that
> would fail.
>
> Hth,
>
>   Maximilian Tyrtania | [EMAIL PROTECTED]
>   fischerAppelt Kommunikation GmbH
>   Tucholskystr. 18 | D-10117 Berlin | Germany
>   Tel. ++49-30-726146-728 | Fax ++49-30-726146-710
>   www.fischerAppelt.de
>   Sitz der Gesellschaft: Hamburg
>   Standorte: Hamburg, Berlin, Düsseldorf, Frankfurt, München
>   Die Gesellschaft ist Teil des Everpublic Networks
>   Handelsregister: Amtsgericht Hamburg, HRB 49259
>   Geschäftsführer: Andreas Fischer-Appelt, Bernhard Fischer-Appelt
>
>   +++ Holmes Report kürt fischerAppelt zur "Deutschen Agentur des  
> Jahres
>   2006" +++
>
>
>
> -- 
>
>
>> Von: Juergen Schreck <[EMAIL PROTECTED]>
>> Antworten an: REALbasic NUG <[email protected]>
>> Datum: Thu, 22 Feb 2007 23:05:14 -0600
>> An: REALbasic NUG <[email protected]>
>> Betreff: Cursors nightmare... need moral support...
>>
>> Ok, so it's been awhile since I needed a custom cursor in a project.
>> Now it seems it's just not working. I develop on a MacBook Pro.
>>
>> First of all a line of code. I put this into a window's open handler:
>>
>> self.mousecursor=system.cursors.MagnifyLarger
>>
>> Run ...
>>
>> It works.
>>
>> Next I create a resource file using reszilla. It contains exactly one
>> CURS resource with the name 'rotate'.
>> I save that file as 'rotate'.
>> I drag it into the project.
>> I get a project item called 'rotate' that has an icon which looks
>> like my cursor. Yay!
>> I can even double click that thing and get fatbits view of it. Cool.
>>
>> I change the code to:
>>
>> self.mousecursor=rotate
>>
>> Run ... Drum roll please....
>>
>> I don't get a cursor change. Just stays at the standard pointer?
>>
>> So I build the App. Same thing.
>> I look at the package contents of the app. In the resources folder I
>> find a .rsrc file. I open it and in there is a CURS resource with my
>> cursor. But it has no name. I edit the resource file adding the name
>> back in. Run the app. No change.
>>
>> Back to the IDE
>>
>> I want to try the getCursor() method, even though I'll need this to
>> be x-plat eventually. The autocomplete hinting tells me I need to
>> pass an index - 0? 1?. Check the Language reference... It says to use
>> the resource ID. Makes more sense. So I try that. ID was 256.
>>
>> Run ... Nothing.
>>
>> Build... Nothing.
>>
>> I look at the resource file in the built app again. CURS resource
>> (without name again) has ID 168 now. So I change it to 256. Run the
>> app. Nothing.
>>
>> At this point I'm completely out of bullets.
>>
>> All I want is to create a cross-platform custom cursor. Is this just
>> plain broken in 2007r1???? And if I DO file a bug report - can
>> someone explain to me how it's supposed to work?
>>
>> i.e. I'm developing on mac. Will RB convert my cursor resources so
>> they'll work on windows too?
>> Or do I need to make separate .cur files on Win?
>> If I do, can I drag these .cur files in the Mac IDE an build for WIN?
>> Or will I need a win ide and a separate project?
>>
>> I'm lost. Someone pep me up, please.
>>
>> Thanks,
>> Juergen
>
>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>
>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to