Sorry Osvaldo, but we cannot help with your homework: http://www.freepascal.org/faq.var#HOMEWORK
The advice I would give any person who actually needs to create a form with a button is to use fpgui or lazarus or msegui. If you like textmode, you could use freevision. If you could come up with a compelling technical reason why none of the (excellent) existing solutions work, then it might be appropriate to engage in a discussion. However "it's prohibited for the assignment" is not a technical reason, it's an administrative one ;) thus it's outside the domain of reasonable topics for this mailing list. You might want to have a look at the graph unit, and/or the gdi32 and x11 stuff which AFAIK are used for windows/*nix cross-platform libraries like fpgui and msegui. Happily I have never had to examine that stuff because I use fpgui to make forms and buttons. Good luck with your class, though. ~David. On Tuesday 05 August 2008 6:51 am, Osvaldo Filho wrote: > Hi, i need a sample of an application with this: > > One form > One button with an event, the event: showmessage('Hello, my name > is: '+ button.name) > > The application to be need cross plataform for windows and linux and > not use gtk, gtk2, qt or fpGui. > > No lazarus code, please. > > This application is for an exemple in a course of programming. > > Thanks very much. > > > PS: Sorry my english. > _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal