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>
