Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Sun Aug 19, 2018 10:59 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 14 posts ] 
Author Message
 Post subject: Looking for a skilled C++/RB developer...
PostPosted: Mon Apr 13, 2009 3:27 pm 
Offline
User avatar

Joined: Thu Mar 05, 2009 1:03 pm
Posts: 1786
Location: USA
Hi!

Before I state my problem, I have a request to make of the forum moderators: please don't move this. :) I know it's unusual for a post that has nothing to do with plugins to be put in the plugins forum, but I badly need a skilled C++ developer and this is where I can find most of them... ;)

ok, on to the problem...

I have some C++ code that I need to use in order to finish an app for one of my friends - time is of the essence for them, so I really need to finish this quickly. However, I don't know C++ so this is pretty much Greek to me. Here's a thread with more detail: http://forums.realsoftware.com/viewtopic.php?f=1&t=27473

and here are the links to the C++ code.

http://developer.apple.com/samplecode/TextLinks/index.html

http://sdl.beuc.net/sdl.wiki/SDL_CreateCursor

and some resources:

http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSCursor_Class/Reference/Reference.html#//apple_ref/doc/uid/20000326

http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSCursor_Class/Reference/Reference.html#//apple_ref/occ/instm/NSCursor/initWithImage:hotSpot:

http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSImage_Class/Reference/Reference.html#//apple_ref/doc/c_ref/NSImage

http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html#//apple_ref/doc/c_ref/NSPoint

If someone could convert this to RB, I would be eternally grateful... :D

Thanks! :)

_________________
With great power comes great responsibility.
Learn something new every day, and the rest will take care of itself.
Life is a journey, not a destination. Enjoy the trip! :D


Top
 Profile  
Reply with quote  
 Post subject: Re: Looking for a skilled C++/RB developer...
PostPosted: Mon Apr 13, 2009 5:48 pm 
Offline
User avatar

Joined: Wed May 10, 2006 2:42 pm
Posts: 2985
Location: Germany
I can write plugins, RB and C++ code. But as far as I know RB resets the mouse cursor quite often, so a System call is no big help.

Greetings
Christian

_________________
See you in Orlando, Florida for Real World 2013
More details and registration here:
http://www.realsoftware.com/community/realworld.php


Top
 Profile  
Reply with quote  
 Post subject: Re: Looking for a skilled C++/RB developer...
PostPosted: Mon Apr 13, 2009 9:17 pm 
Offline
User avatar

Joined: Thu Mar 05, 2009 1:03 pm
Posts: 1786
Location: USA
MonkeybreadSoftware wrote:
I can write plugins, RB and C++ code. But as far as I know RB resets the mouse cursor quite often, so a System call is no big help.

Greetings
Christian

Could you please translate that C++ into RB? The cursor reset is no big deal to me - I can always use a slightly-dirty hack to get around it (nothing big really - just keep setting the custom cursor using a timer)...

Thank you! :D

_________________
With great power comes great responsibility.
Learn something new every day, and the rest will take care of itself.
Life is a journey, not a destination. Enjoy the trip! :D


Top
 Profile  
Reply with quote  
 Post subject: Re: Looking for a skilled C++/RB developer...
PostPosted: Tue Apr 14, 2009 5:24 am 
Offline
User avatar

Joined: Wed May 10, 2006 2:42 pm
Posts: 2985
Location: Germany
Translate what?

Greetings
Christian

_________________
See you in Orlando, Florida for Real World 2013
More details and registration here:
http://www.realsoftware.com/community/realworld.php


Top
 Profile  
Reply with quote  
 Post subject: Re: Looking for a skilled C++/RB developer...
PostPosted: Tue Apr 14, 2009 8:36 am 
Offline
User avatar

Joined: Thu Mar 05, 2009 1:03 pm
Posts: 1786
Location: USA
There's some C++ code in these links:

http://developer.apple.com/samplecode/TextLinks/index.html

http://sdl.beuc.net/sdl.wiki/SDL_CreateCursor

the code there is what I'm looking to translate - I've begun to understand most of it but still no dice in translation...

Thanks! :D

_________________
With great power comes great responsibility.
Learn something new every day, and the rest will take care of itself.
Life is a journey, not a destination. Enjoy the trip! :D


Top
 Profile  
Reply with quote  
 Post subject: Re: Looking for a skilled C++/RB developer...
PostPosted: Tue Apr 14, 2009 8:54 am 
Offline
User avatar

Joined: Wed May 10, 2006 2:42 pm
Posts: 2985
Location: Germany
No need to translate it.

Take a statictext or editfield, configure it to look like a link, change the cursor in the mouseenter/exit events and use showurl in the mouse down event.

Greetings
Christian

_________________
See you in Orlando, Florida for Real World 2013
More details and registration here:
http://www.realsoftware.com/community/realworld.php


Top
 Profile  
Reply with quote  
 Post subject: Re: Looking for a skilled C++/RB developer...
PostPosted: Tue Apr 14, 2009 3:16 pm 
Offline
User avatar

Joined: Thu Mar 05, 2009 1:03 pm
Posts: 1786
Location: USA
Unfortunately, that's not quite what I'm looking for - I'm trying to change the cursor to a pipette for a color-picking app. The reason I'm trying to translate that code is so I can use it as a template - instead of using an Editfield or StaticText with the hand cursor, I can modify the code to display a pipette cursor in a Canvas's MouseDown event and restore the cursor to the standard arrow on the Canvas's MouseUp. ;)

_________________
With great power comes great responsibility.
Learn something new every day, and the rest will take care of itself.
Life is a journey, not a destination. Enjoy the trip! :D


Top
 Profile  
Reply with quote  
 Post subject: Re: Looking for a skilled C++/RB developer...
PostPosted: Tue Apr 14, 2009 3:32 pm 
Offline
User avatar

Joined: Wed May 10, 2006 2:42 pm
Posts: 2985
Location: Germany
You need to learn how to import a cursor into a RB project and display it.

Greetings
Christian

_________________
See you in Orlando, Florida for Real World 2013
More details and registration here:
http://www.realsoftware.com/community/realworld.php


Top
 Profile  
Reply with quote  
 Post subject: Re: Looking for a skilled C++/RB developer...
PostPosted: Tue Apr 14, 2009 5:15 pm 
Offline
User avatar

Joined: Thu Mar 05, 2009 1:03 pm
Posts: 1786
Location: USA
MonkeybreadSoftware wrote:
You need to learn how to import a cursor into a RB project and display it.

Greetings
Christian

hmm... can't seem to get a .cur file into the RB project, and can't seem to find any documentation on changing the system cursor... can you elaborate a bit?

Thanks! :)

_________________
With great power comes great responsibility.
Learn something new every day, and the rest will take care of itself.
Life is a journey, not a destination. Enjoy the trip! :D


Top
 Profile  
Reply with quote  
 Post subject: Re: Looking for a skilled C++/RB developer...
PostPosted: Tue Apr 14, 2009 5:22 pm 
Offline
User avatar

Joined: Wed May 10, 2006 2:42 pm
Posts: 2985
Location: Germany
Ask REALsoftware.

Greetings
Christian

_________________
See you in Orlando, Florida for Real World 2013
More details and registration here:
http://www.realsoftware.com/community/realworld.php


Top
 Profile  
Reply with quote  
 Post subject: Re: Looking for a skilled C++/RB developer...
PostPosted: Tue Apr 14, 2009 5:23 pm 
Offline

Joined: Fri Sep 30, 2005 6:55 pm
Posts: 1522
All you need to do is set a cursor? To do that, you make a cursor, import it into REALbasic, then set it like you would any other cursor. Not sure what all this hubbub is about plugins and C++.

I wrote a program a while back that lets you create and edit cursors that can be used in REALbasic:
http://ivideoapp.com/realbasic/cursor_editor.zip

I think there's a bug in that the hot spot for the cursor has swapped x and y values, but you can work around that by moving the hot spot around in the editor until it appears in the right spot in REALbasic.

EDIT: By the way, the source code for the editor is long gone. Sorry.

_________________
Those who can, do. Those who can't, make excuses.


Top
 Profile  
Reply with quote  
 Post subject: Re: Looking for a skilled C++/RB developer...
PostPosted: Tue Apr 14, 2009 6:34 pm 
Offline
User avatar

Joined: Thu Mar 05, 2009 1:03 pm
Posts: 1786
Location: USA
imikedaman wrote:
All you need to do is set a cursor? To do that, you make a cursor, import it into REALbasic, then set it like you would any other cursor. Not sure what all this hubbub is about plugins and C++.

I wrote a program a while back that lets you create and edit cursors that can be used in REALbasic:
http://ivideoapp.com/realbasic/cursor_editor.zip

I think there's a bug in that the hot spot for the cursor has swapped x and y values, but you can work around that by moving the hot spot around in the editor until it appears in the right spot in REALbasic.

EDIT: By the way, the source code for the editor is long gone. Sorry.

Thanks for the app! I will begin using it immediately... :D
The hubbub about C++ was that I found some C++ code that would change the system cursor and I was trying to find someone who would translate that code into RB so I could use it. Looks like I can delete the links now... :)

EDIT: what platform is your app for? I tried it on my friend's Mac but the Mac didn't recognize it. Windows doesn't, and my Ubuntu VM doesn't either... :?

Thanks again! :D

_________________
With great power comes great responsibility.
Learn something new every day, and the rest will take care of itself.
Life is a journey, not a destination. Enjoy the trip! :D


Top
 Profile  
Reply with quote  
 Post subject: Re: Looking for a skilled C++/RB developer...
PostPosted: Tue Apr 14, 2009 6:41 pm 
Offline

Joined: Fri Sep 30, 2005 6:55 pm
Posts: 1522
It's a PPC Mac app. It works on Intel too.

_________________
Those who can, do. Those who can't, make excuses.


Top
 Profile  
Reply with quote  
 Post subject: Re: Looking for a skilled C++/RB developer...
PostPosted: Thu Apr 16, 2009 10:45 am 
Offline
User avatar

Joined: Thu Mar 05, 2009 1:03 pm
Posts: 1786
Location: USA
ok, thanks! :)
I will try it on my friend's Mac later today...

_________________
With great power comes great responsibility.
Learn something new every day, and the rest will take care of itself.
Life is a journey, not a destination. Enjoy the trip! :D


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group