Buttons in C++ (Allegro)

How do I creat a button in C++??

Page 1 of 1

8 Replies - 5183 Views - Last Post: 11 March 2009 - 05:42 PM Rate Topic: -----

#1 Glorfindal  Icon User is offline

  • Java Enthusiast
  • member icon

Reputation: 23
  • View blog
  • Posts: 538
  • Joined: 31-December 08

Buttons in C++ (Allegro)

Posted 09 March 2009 - 12:43 PM

I'm creating Battle game in C++. I gotton to display the cinamatic and a loading aswell as the main menu. Now how do I make an image that Allegro displays become a button that when left clicked draws something new on the screen?
Any help would be greatly appreciated! :D

Libraries:
winallegro.h

Is This A Good Question/Topic? 0
  • +

Replies To: Buttons in C++ (Allegro)

#2 Glorfindal  Icon User is offline

  • Java Enthusiast
  • member icon

Reputation: 23
  • View blog
  • Posts: 538
  • Joined: 31-December 08

Re: Buttons in C++ (Allegro)

Posted 09 March 2009 - 06:10 PM

Please help!
Was This Post Helpful? 0
  • +
  • -

#3 Hyper  Icon User is offline

  • Banned

Reputation: 108
  • View blog
  • Posts: 2,129
  • Joined: 15-October 08

Re: Buttons in C++ (Allegro)

Posted 09 March 2009 - 10:08 PM

Haha, Glorfindal, you're still working on that menu? :P

Have you tried searching Allegro's homepage or help files (www.allegro.cc)?
Was This Post Helpful? 0
  • +
  • -

#4 Glorfindal  Icon User is offline

  • Java Enthusiast
  • member icon

Reputation: 23
  • View blog
  • Posts: 538
  • Joined: 31-December 08

Re: Buttons in C++ (Allegro)

Posted 10 March 2009 - 03:09 PM

I don't mean that. How do I have the Computer detect if the left button is clicked on a certain image and then add an image to the screen. Just an example all the images can "example.bmp". Any help would be greatly appreciated! :)
Was This Post Helpful? 0
  • +
  • -

#5 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6063
  • View blog
  • Posts: 23,517
  • Joined: 23-August 08

Re: Buttons in C++ (Allegro)

Posted 10 March 2009 - 06:14 PM

Wouldn't an Allegro question be better suited to an Allegro forum?
Was This Post Helpful? 0
  • +
  • -

#6 Glorfindal  Icon User is offline

  • Java Enthusiast
  • member icon

Reputation: 23
  • View blog
  • Posts: 538
  • Joined: 31-December 08

Re: Buttons in C++ (Allegro)

Posted 10 March 2009 - 06:20 PM

Pleas could somebody help me?
Was This Post Helpful? 0
  • +
  • -

#7 Hyper  Icon User is offline

  • Banned

Reputation: 108
  • View blog
  • Posts: 2,129
  • Joined: 15-October 08

Re: Buttons in C++ (Allegro)

Posted 11 March 2009 - 06:56 AM

Have you tried searching Allegro's homepage or help files (www.allegro.cc)?
Was This Post Helpful? 0
  • +
  • -

#8 Glorfindal  Icon User is offline

  • Java Enthusiast
  • member icon

Reputation: 23
  • View blog
  • Posts: 538
  • Joined: 31-December 08

Re: Buttons in C++ (Allegro)

Posted 11 March 2009 - 05:40 PM

Yes. I could not find anything! So can someone help me please?
Was This Post Helpful? 0
  • +
  • -

#9 Hyper  Icon User is offline

  • Banned

Reputation: 108
  • View blog
  • Posts: 2,129
  • Joined: 15-October 08

Re: Buttons in C++ (Allegro)

Posted 11 March 2009 - 05:42 PM

I skimmed google, here's this (not sure if it's helpful):
http://www.allegro.c...2/575182#target

EDIT: Not to be rude but, like JacksOfAllTrades said, wouldn't Allegro questions be posted on an Allegro forum?

This post has been edited by Hyper: 11 March 2009 - 05:43 PM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1