Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


[java] Quit button (WFC)


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
6 replies to this topic

#1 Delisk   Members   -  Reputation: 122

Like
Likes
Like

Posted 20 March 2000 - 04:44 AM

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!

Sponsor:

#2 Jim_Ross   Members   -  Reputation: 122

Like
Likes
Like

Posted 20 March 2000 - 04:08 PM

Do you have code to show? What does your event listener look like?

#3 javanerd   Members   -  Reputation: 122

Like
Likes
Like

Posted 20 March 2000 - 05:48 PM

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.

#4 Altmann   Members   -  Reputation: 122

Like
Likes
Like

Posted 21 March 2000 - 09:58 AM

I am curious. Why would anyone use WFC ?

#5 daveb   Members   -  Reputation: 122

Like
Likes
Like

Posted 21 March 2000 - 10:15 AM

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.

#6 Jim_Ross   Members   -  Reputation: 122

Like
Likes
Like

Posted 21 March 2000 - 10:24 AM

C++ has a paradigm? That''s news to me.

#7 Aldacron   GDNet+   -  Reputation: 3239

Like
Likes
Like

Posted 21 March 2000 - 02:08 PM

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.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS