[java] Quit button (WFC)
Im using WFC (Windows Fondation Classes)for my game.
Things are going well, but i got this small problem. When the player press the quit button (the x in thr corner) i want the program to ask thr players if he really want to quit (with a dialog box). But here my problems, even if he say no the game quit!
Can some here tell me how to do this!
WFC doesn''t use event listeners, it uses Microsoft''s own extension to Java called event references. I''ve tried to program with WFC and I got frustrated with it quite fast, so sorry can''t help you out Delisk.
I suggest you get your hands on JBuilder Foundation Edition (available for free from www.borland.com) and start learning JFC/Swing UI library. I think in the long run that will be a better alternative. At least there are tutorials on the web available for that.
I suggest you get your hands on JBuilder Foundation Edition (available for free from www.borland.com) and start learning JFC/Swing UI library. I think in the long run that will be a better alternative. At least there are tutorials on the web available for that.
-Pasi Keranen
Are you referring to MFC? I''ve never heard of WFC. MFC in and of itself is almost useless for game development. Its tricky to merge MFC and pure Win32 code together (although it can be done).
MFC _is_ however, extremely useful for throwing together tools, editors and various utilities. The learning curve is kind of steep, but that''s mostly because it relies heavily on the C++ paradigm, which I don''t think most (nonprofessional) programmers understand.
MFC _is_ however, extremely useful for throwing together tools, editors and various utilities. The learning curve is kind of steep, but that''s mostly because it relies heavily on the C++ paradigm, which I don''t think most (nonprofessional) programmers understand.
Volition, Inc.
daveb--
WFC is the MS version of JFC(Swing), or maybe the MS Java version of MFC... or whatever. In short, it''s a Microsoft specific GUI package. In Visual J++ you can use the form editor to build WFC apps visually, but not AWT/JFC.
WFC is the MS version of JFC(Swing), or maybe the MS Java version of MFC... or whatever. In short, it''s a Microsoft specific GUI package. In Visual J++ you can use the form editor to build WFC apps visually, but not AWT/JFC.
--- Official D Blog | Learning D | The One With D | D Bits
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement