generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Closing windows... (C++)

Previous Thread :: Next Thread 
littleAU999 is not online. littleAU999
Joined: 15 Jan 2011
Total Posts: 1375
02 Jul 2012 10:56 AM
Hi, I'm a beginner in C++ and am trying to figure out how to close a window.
I think it might have something to do with FindWindow() & DestroyWindow().
Could anyone help? Thanks, littleAU.
Report Abuse
thek00lkid is not online. thek00lkid
Joined: 18 Jun 2011
Total Posts: 2778
02 Jul 2012 10:59 AM
C++ is object orientated, correct?
Report Abuse
WhiteRain is not online. WhiteRain
Joined: 24 Apr 2010
Total Posts: 2723
02 Jul 2012 11:00 AM
exit(1);
Report Abuse
littleAU999 is not online. littleAU999
Joined: 15 Jan 2011
Total Posts: 1375
02 Jul 2012 11:05 AM
exit(1); wouldn't work... How would you find a open window and close it?
Report Abuse
thek00lkid is not online. thek00lkid
Joined: 18 Jun 2011
Total Posts: 2778
02 Jul 2012 11:14 AM
Window.Destroy() ?

I've never programmed in C++, but there should be a methodical reference on the internet of the object you're using.
Report Abuse
littleAU999 is not online. littleAU999
Joined: 15 Jan 2011
Total Posts: 1375
02 Jul 2012 11:28 AM
Window.Destroy() wouldnt work either.
Report Abuse
thek00lkid is not online. thek00lkid
Joined: 18 Jun 2011
Total Posts: 2778
02 Jul 2012 11:30 AM
*Facepalm*

I meant, check the library your using, check the object you're using, and then research it!
Report Abuse
littleAU999 is not online. littleAU999
Joined: 15 Jan 2011
Total Posts: 1375
02 Jul 2012 12:01 PM
Figured it out! Except DestroyWindow() isnt working...
Report Abuse
crazyman32 is not online. crazyman32
Joined: 13 Apr 2008
Total Posts: 18027
02 Jul 2012 12:28 PM
I'm more of a Java guy, but is there a Dispose method available?
Report Abuse
thek00lkid is not online. thek00lkid
Joined: 18 Jun 2011
Total Posts: 2778
02 Jul 2012 01:14 PM
^

I don't know C++ at all, yet I love programming in Java! The only problem is the fact that I don't know about any libraries, at all, except AWT and swing. By the way, would you rather use the Abstract Windowing Kit or Swing components in an applet?
Report Abuse
crazyman32 is not online. crazyman32
Joined: 13 Apr 2008
Total Posts: 18027
02 Jul 2012 02:40 PM
I would use Swing.
However I created my own GUI library based off of ROBLOX's GUI :P
Report Abuse
thecaptain97 is not online. thecaptain97
Joined: 17 Jun 2010
Total Posts: 4987
02 Jul 2012 02:43 PM
*No clue of C++ Scripting*

Uhh, You click the Red button with the White "X" in it.

=)
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
02 Jul 2012 02:49 PM
>However I created my own GUI library based off of ROBLOX's GUI :P

Oh, great idea I'm going to make this with sfml.

Like a class for button which contains the text and the frame and has clicking 'events'.
Report Abuse
thek00lkid is not online. thek00lkid
Joined: 18 Jun 2011
Total Posts: 2778
02 Jul 2012 03:31 PM
@Crazy, you imported them? 0_o
Report Abuse
crazyman32 is not online. crazyman32
Joined: 13 Apr 2008
Total Posts: 18027
02 Jul 2012 03:57 PM
No, I made it from scratch. I call it Aero2D. So far I've managed to make a fully working TicTacToe game. Doesn't sound very amazing, but it runs extremely well and it got me an internship with the devs at Nationwide Ins.
Report Abuse
thek00lkid is not online. thek00lkid
Joined: 18 Jun 2011
Total Posts: 2778
02 Jul 2012 04:03 PM
What libraries did you use to create that?! I've never made anything better than a simple Swing GUI in Java as every time I research it, my brain cannot handle different classes going every which way, it's mind-boggling! >_<
Report Abuse
cpextra360 is not online. cpextra360
Joined: 30 Jan 2010
Total Posts: 1973
02 Jul 2012 04:03 PM
i know how to crash windows through C++ but id get banned

[Siggy Deleted]
Report Abuse
crazyman32 is not online. crazyman32
Joined: 13 Apr 2008
Total Posts: 18027
02 Jul 2012 04:09 PM
I just used the standard built-in libraries. Nothing too complex. I used a JFrame in Swing to create the initial window though.
Report Abuse
thek00lkid is not online. thek00lkid
Joined: 18 Jun 2011
Total Posts: 2778
02 Jul 2012 04:14 PM
Ah, I was beginning to think that you did something ridiculous. =P
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image