Page 2 of 2

Re: WinBottler - Turn your Windows apps into Apple ones

PostPosted: Thu Feb 11, 2010 9:28 am
by Antonio Linares
Massimo,

We are going to review (hopefully today) how fast we can have those classes ready :-)

Re: WinBottler - Turn your Windows apps into Apple ones

PostPosted: Thu Feb 11, 2010 10:46 am
by Antonio Linares

Re: WinBottler - Turn your Windows apps into Apple ones

PostPosted: Thu Feb 11, 2010 10:58 am
by Massimo Linossi
Great news !!!
Give me a sign when Fivemac is ready for printing, and I'll place the order.
Thanks a lot.
Massimo.
P.S. One little question. In Windows, for making the dialogs, we use the Resource
Workshop. In Mac, what can we use ? And for the dialogs already made, is possible
to import them in the new system ?

Re: WinBottler - Turn your Windows apps into Apple ones

PostPosted: Thu Feb 11, 2010 11:33 pm
by Antonio Linares
It may be more complex than we thought but we already have some progress :-)

Code: Select all  Expand view

#include "FiveMac.ch"

function Main()

   PrinterSelect()

return nil
 

Image

Re: WinBottler - Turn your Windows apps into Apple ones

PostPosted: Thu Feb 11, 2010 11:42 pm
by Antonio Linares
Massimo,

OSX provides "Interface Builder" to draw the resources but they use a different format than the used in Windows.

Actually coordinates have to be copied "by hand" though we could have a tool in the future to do it automatically.

Re: WinBottler - Turn your Windows apps into Apple ones

PostPosted: Fri Feb 12, 2010 7:16 am
by Massimo Linossi
Wow, you're great !!!
Is there the possibility to start to develop with a beta release ?
Thanks a lot a many compliments for your work.
Fivemac is like LOST. Every moment there is surprise :lol: :lol: :lol:
Massimo.
P.S. If you give me some hints, I can help you to convert some classes to Fivemac.

Re: WinBottler - Turn your Windows apps into Apple ones

PostPosted: Sat Feb 13, 2010 12:37 pm
by Antonio Linares
Massimo,

Still a (long?) way to go, but we are already printing and OSX provides the preview automatically! :-)

TestPrn.prg
Code: Select all  Expand view
#include "FiveMac.ch"

function Main()

   PrinterSelect()

return nil

function PrinterPaint()

   DrawText( 50, 200, "Printing from FiveMac", CreateFont( "Arial", 20 ) )
   
return nil  
 

Image

Re: WinBottler - Turn your Windows apps into Apple ones

PostPosted: Sat Feb 13, 2010 6:00 pm
by Massimo Linossi
WOW :P :P :P
Another great step. Great work Antonio. I'll send you a beer.
Have a nice weekend.
Massimo.

Re: WinBottler - Turn your Windows apps into Apple ones

PostPosted: Sat Feb 13, 2010 6:39 pm
by Antonio Linares
Massimo,

Windows, OSX and Linux are quite different worlds when we compare their GUIs APIs.

So there is no a straight way to port Windows code to OSX (cocoa) code. In fact, we use FiveWin as a compatibility layer between all of them. FiveWin/FiveMac/FiveLinux set a compatibility wrapper that easier the work of the programmer, and also offers a cross platform learning as once you know how to code in FiveWin you are ready for FiveMac and FiveLinux too :-)

Re: WinBottler - Turn your Windows apps into Apple ones

PostPosted: Sun Feb 14, 2010 9:44 am
by Antonio Linares
Using colors:
Code: Select all  Expand view
#include "FiveMac.ch"

function Main()

   PrinterSelect()

return nil

function PrinterPaint()

   DrawText( 50, 150, "Printing from FiveMac", CreateFont( "Arial", 20 ), CLR_BLUE() )
   DrawText( 50, 200, "Printing from FiveMac", CreateFont( "Verdana", 20 ), CLR_GREEN() )
   DrawText( 50, 250, "Printing from FiveMac", CreateFont( "Times Roman", 20 ), CLR_RED() )
   
return nil  
 

Image

Re: WinBottler - Turn your Windows apps into Apple ones

PostPosted: Sun Feb 14, 2010 10:19 am
by Massimo Linossi
Are you working today ? Your wife will not be happy...
Have a nice day.
Massimo.
P.S. You're making an incredible work. Compliments :P :P :P

Re: WinBottler - Turn your Windows apps into Apple ones

PostPosted: Mon Apr 01, 2013 4:59 pm
by Antonio Linares
Another utility to run Windows apps on Mac OSX:

http://www.winonx.com/

I have not tested it myself yet. I think it may the same technology as WinBottler with the difference that WinOnx is a commercial product, but I may be wrong...